From 94bd72992edb5b74b307f3046ff9444f00d71ca8 Mon Sep 17 00:00:00 2001 From: "David Wilson (POWERSHELL)" Date: Wed, 25 Oct 2017 14:24:31 -0700 Subject: [PATCH] Fix #1060: .Workspace.NewFile doesn't work in VSC 1.18+ --- src/features/ExtensionCommands.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/ExtensionCommands.ts b/src/features/ExtensionCommands.ts index 91e8e1ea21..8cf49bcb76 100644 --- a/src/features/ExtensionCommands.ts +++ b/src/features/ExtensionCommands.ts @@ -354,7 +354,7 @@ export class ExtensionCommandsFeature implements IFeature { } private newFile(): Thenable { - return vscode.workspace.openTextDocument('') + return vscode.workspace.openTextDocument({ content: ''}) .then(doc => vscode.window.showTextDocument(doc)) .then(_ => EditorOperationResponse.Completed); }