mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
Strict null cehck extHostApiCommands
This commit is contained in:
@@ -241,11 +241,7 @@ export class CommandsConverter {
|
||||
return result;
|
||||
}
|
||||
|
||||
fromInternal(command: modes.Command | undefined): vscode.Command | undefined {
|
||||
|
||||
if (!command) {
|
||||
return undefined;
|
||||
}
|
||||
fromInternal(command: modes.Command): vscode.Command {
|
||||
|
||||
const id = ObjectIdentifier.of(command);
|
||||
if (typeof id === 'number') {
|
||||
|
||||
Reference in New Issue
Block a user