mirror of https://git.tuxpa.in/a/code-server.git
fix(lib/vscode): fix lint errors
This commit is contained in:
parent
093743e365
commit
9f256cd87a
|
@ -284,7 +284,7 @@ export class ExtensionsScanner extends Disposable {
|
||||||
*/
|
*/
|
||||||
const stat = await this.fileService.resolve(URI.file(dir))
|
const stat = await this.fileService.resolve(URI.file(dir))
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
if (!(error instanceof FileOperationError && error.fileOperationResult == FileOperationResult.FILE_NOT_FOUND)) {
|
if (!(error instanceof FileOperationError && error.fileOperationResult === FileOperationResult.FILE_NOT_FOUND)) {
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
|
|
|
@ -479,7 +479,7 @@ export class TerminalProviderChannel implements IServerChannel<RemoteAgentConnec
|
||||||
public constructor (private readonly logService: ILogService) {}
|
public constructor (private readonly logService: ILogService) {}
|
||||||
|
|
||||||
public listen(_: RemoteAgentConnectionContext, event: string, args: any): Event<any> {
|
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) {
|
switch (event) {
|
||||||
case '$onPtyHostExitEvent': return Event.None; // TODO
|
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> {
|
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) {
|
switch (command) {
|
||||||
case '$restartPtyHost': return this.restartPtyHost();
|
case '$restartPtyHost': return this.restartPtyHost();
|
||||||
|
|
Loading…
Reference in New Issue