mirror of https://github.com/microsoft/vscode.git
refactor: rename resolve method to resolveProcesses for clarity (#248371)
This commit is contained in:
parent
25bd0b1222
commit
befc2d4a50
|
@ -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>;
|
||||
|
|
|
@ -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][] = [];
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue