mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-03 07:44:02 +01:00
Clarify it's talking about the type never
This commit is contained in:
@@ -156,7 +156,7 @@ export class RemoteTerminalChannel extends Disposable implements IServerChannel<
|
||||
case RemoteTerminalChannelRequest.AcceptDetachInstanceReply: return this._ptyHostService.acceptDetachInstanceReply.apply(this._ptyHostService, args);
|
||||
}
|
||||
|
||||
// @ts-expect-error Assert command is never to ensure all messages are handled
|
||||
// @ts-expect-error Assert command is the `never` type to ensure all messages are handled
|
||||
throw new Error(`IPC Command ${command} not found`);
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ export class RemoteTerminalChannel extends Disposable implements IServerChannel<
|
||||
case RemoteTerminalChannelEvent.OnDidChangeProperty: return this._ptyHostService.onDidChangeProperty;
|
||||
}
|
||||
|
||||
// @ts-expect-error Assert event is never to ensure all messages are handled
|
||||
// @ts-expect-error Assert event is the `never` type to ensure all messages are handled
|
||||
throw new Error(`IPC Command ${event} not found`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user