Skip to content

Commit 94bd729

Browse files
committed
Fix PowerShell#1060: .Workspace.NewFile doesn't work in VSC 1.18+
1 parent c10c792 commit 94bd729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/ExtensionCommands.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ export class ExtensionCommandsFeature implements IFeature {
354354
}
355355

356356
private newFile(): Thenable<EditorOperationResponse> {
357-
return vscode.workspace.openTextDocument('')
357+
return vscode.workspace.openTextDocument({ content: ''})
358358
.then(doc => vscode.window.showTextDocument(doc))
359359
.then(_ => EditorOperationResponse.Completed);
360360
}

0 commit comments

Comments
 (0)