refactor: rename resolve method to resolveProcesses for clarity (#248371)

This commit is contained in:
Benjamin Pasero 2025-05-08 09:57:42 +02:00 committed by GitHub
parent 25bd0b1222
commit befc2d4a50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 4 deletions

View File

@ -33,14 +33,17 @@ export const IProcessService = createDecorator<IProcessService>('processService'
export interface IResolvedProcessInformation {
readonly pidToNames: [number, string][];
readonly processes: { name: string; rootProcess: ProcessItem | IRemoteDiagnosticError }[];
readonly processes: {
readonly name: string;
readonly rootProcess: ProcessItem | IRemoteDiagnosticError;
}[];
}
export interface IProcessService {
readonly _serviceBrand: undefined;
resolve(): Promise<IResolvedProcessInformation>;
resolveProcesses(): Promise<IResolvedProcessInformation>;
getSystemStatus(): Promise<string>;
getSystemInfo(): Promise<SystemInfo>;

View File

@ -23,7 +23,7 @@ export class ProcessMainService implements IProcessService {
) {
}
async resolve(): Promise<IResolvedProcessInformation> {
async resolveProcesses(): Promise<IResolvedProcessInformation> {
const mainProcessInfo = await this.diagnosticsMainService.getMainDiagnostics();
const pidToNames: [number, string][] = [];

View File

@ -496,7 +496,7 @@ export class ProcessExplorerControl extends Disposable {
}
private async update(): Promise<void> {
const { processes, pidToNames } = await this.processService.resolve();
const { processes, pidToNames } = await this.processService.resolveProcesses();
this.model.update(processes, pidToNames);