Skip to content

Commit

Permalink
Use overload for #62806
Browse files Browse the repository at this point in the history
Use an overload instead of a conditional type to generate a compile error when using `vscode.previewHtml` command

Conditional types were breaking on our build machine
  • Loading branch information
mjbvz committed Nov 10, 2018
1 parent a3fa56b commit 98b8fdf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vs/vscode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5840,6 +5840,7 @@ declare module 'vscode' {
* the command handler function doesn't return anything.
*/
export function executeCommand<T>(command: string, ...rest: any[]): Thenable<T | undefined>;
export function executeCommand<T>(command: 'vscode.previewHtml', error: { '⚠️ The vscode.previewHtml command is deprecated and will be removed. Please switch to using the Webview Api': never }, ...rest: any[]): Thenable<T | undefined>;

/**
* Retrieve the list of all available commands. Commands starting an underscore are
Expand Down

0 comments on commit 98b8fdf

Please sign in to comment.