We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0d47a8 commit 7ab6cc5Copy full SHA for 7ab6cc5
src/goExplorer.ts
@@ -82,6 +82,9 @@ export class GoExplorerProvider implements vscode.TreeDataProvider<vscode.TreeIt
82
83
private async open(item: EnvTreeItem) {
84
if (typeof item.file === 'undefined') return;
85
+ const edit = new vscode.WorkspaceEdit();
86
+ edit.createFile(item.file, { ignoreIfExists: true });
87
+ await vscode.workspace.applyEdit(edit);
88
const doc = await vscode.workspace.openTextDocument(item.file);
89
await vscode.window.showTextDocument(doc);
90
}
0 commit comments