From 98b8fdfb96be512f4f3f493f7eacbe17b1f53c07 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Fri, 9 Nov 2018 16:40:29 -0800 Subject: [PATCH] Use overload for #62806 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 --- src/vs/vscode.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vs/vscode.d.ts b/src/vs/vscode.d.ts index 40c420b664931..8e3d52f467dd4 100644 --- a/src/vs/vscode.d.ts +++ b/src/vs/vscode.d.ts @@ -5840,6 +5840,7 @@ declare module 'vscode' { * the command handler function doesn't return anything. */ export function executeCommand(command: string, ...rest: any[]): Thenable; + export function executeCommand(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; /** * Retrieve the list of all available commands. Commands starting an underscore are