From 9f256cd87abcf95c1c4f3213392a7fdbdf0e34d8 Mon Sep 17 00:00:00 2001 From: Akash Satheesan Date: Wed, 14 Apr 2021 18:58:41 +0530 Subject: [PATCH] fix(lib/vscode): fix lint errors --- .../vs/platform/extensionManagement/node/extensionsScanner.ts | 4 ++-- lib/vscode/src/vs/server/node/channel.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/vscode/src/vs/platform/extensionManagement/node/extensionsScanner.ts b/lib/vscode/src/vs/platform/extensionManagement/node/extensionsScanner.ts index c2c3f228..b59301aa 100644 --- a/lib/vscode/src/vs/platform/extensionManagement/node/extensionsScanner.ts +++ b/lib/vscode/src/vs/platform/extensionManagement/node/extensionsScanner.ts @@ -279,12 +279,12 @@ export class ExtensionsScanner extends Disposable { /* * NOTE@coder: use fileService.resolve() like upstream does, * but simply ignore directories that do not exist. (upstream does not) - * + * * Used to (<1.54) use pfs.readdir. */ const stat = await this.fileService.resolve(URI.file(dir)) .catch((error) => { - if (!(error instanceof FileOperationError && error.fileOperationResult == FileOperationResult.FILE_NOT_FOUND)) { + if (!(error instanceof FileOperationError && error.fileOperationResult === FileOperationResult.FILE_NOT_FOUND)) { throw error; } return undefined; diff --git a/lib/vscode/src/vs/server/node/channel.ts b/lib/vscode/src/vs/server/node/channel.ts index 5a7fa8e7..34e5b347 100644 --- a/lib/vscode/src/vs/server/node/channel.ts +++ b/lib/vscode/src/vs/server/node/channel.ts @@ -479,7 +479,7 @@ export class TerminalProviderChannel implements IServerChannel { - logger.trace('TerminalProviderChannel:listen', field("event", event), field("args", args)); + logger.trace('TerminalProviderChannel:listen', field('event', event), field('args', args)); switch (event) { case '$onPtyHostExitEvent': return Event.None; // TODO @@ -506,7 +506,7 @@ export class TerminalProviderChannel implements IServerChannel { - logger.trace('TerminalProviderChannel:call', field("command", command), field("args", args)); + logger.trace('TerminalProviderChannel:call', field('command', command), field('args', args)); switch (command) { case '$restartPtyHost': return this.restartPtyHost();