Skip to content

Commit a50fca3

Browse files
committed
Clarify it's talking about the type never
1 parent d630142 commit a50fca3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/server/node/remoteTerminalChannel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export class RemoteTerminalChannel extends Disposable implements IServerChannel<
156156
case RemoteTerminalChannelRequest.AcceptDetachInstanceReply: return this._ptyHostService.acceptDetachInstanceReply.apply(this._ptyHostService, args);
157157
}
158158

159-
// @ts-expect-error Assert command is never to ensure all messages are handled
159+
// @ts-expect-error Assert command is the `never` type to ensure all messages are handled
160160
throw new Error(`IPC Command ${command} not found`);
161161
}
162162

@@ -177,7 +177,7 @@ export class RemoteTerminalChannel extends Disposable implements IServerChannel<
177177
case RemoteTerminalChannelEvent.OnDidChangeProperty: return this._ptyHostService.onDidChangeProperty;
178178
}
179179

180-
// @ts-expect-error Assert event is never to ensure all messages are handled
180+
// @ts-expect-error Assert event is the `never` type to ensure all messages are handled
181181
throw new Error(`IPC Command ${event} not found`);
182182
}
183183

0 commit comments

Comments
 (0)