Skip to content

Commit

Permalink
Fix PowerShell#1060: .Workspace.NewFile doesn't work in VSC 1.18+
Browse files Browse the repository at this point in the history
  • Loading branch information
daviwil committed Oct 25, 2017
1 parent c10c792 commit ccebc4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/ExtensionCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ export class ExtensionCommandsFeature implements IFeature {
}

private newFile(): Thenable<EditorOperationResponse> {
return vscode.workspace.openTextDocument('')
return vscode.workspace.openTextDocument({ content: ''})
.then(doc => vscode.window.showTextDocument(doc))
.then(_ => EditorOperationResponse.Completed);
}
Expand Down

0 comments on commit ccebc4d

Please sign in to comment.