1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-27 20:55:25 +00:00

fix(lib/vscode): fix lint errors

This commit is contained in:
Akash Satheesan 2021-04-14 18:58:41 +05:30
parent 093743e365
commit 9f256cd87a
No known key found for this signature in database
GPG Key ID: 93CBAADFEA703F8E
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -479,7 +479,7 @@ export class TerminalProviderChannel implements IServerChannel<RemoteAgentConnec
public constructor (private readonly logService: ILogService) {}
public listen(_: RemoteAgentConnectionContext, event: string, args: any): Event<any> {
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<RemoteAgentConnec
}
public call(context: RemoteAgentConnectionContext, command: string, args: any): Promise<any> {
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();