Skip to content

Commit 1c693d3

Browse files
committed
Fix unrelated bug in PowerShell.NewProjectFromTemplate
1 parent 1a31f5f commit 1c693d3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/features/NewFileOrProject.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ export class NewFileOrProjectFeature extends LanguageClientConsumer {
1616
super();
1717
this.command =
1818
vscode.commands.registerCommand("PowerShell.NewProjectFromTemplate", async () => {
19-
2019
if (!this.languageClient && !this.waitingForClientToken) {
21-
2220
// If PowerShell isn't finished loading yet, show a loading message
2321
// until the LanguageClient is passed on to us
2422
this.waitingForClientToken = new vscode.CancellationTokenSource();
@@ -131,8 +129,7 @@ export class NewFileOrProjectFeature extends LanguageClientConsumer {
131129
});
132130

133131
if (destinationPath !== undefined) {
134-
// Show the PowerShell session output in case an error occurred
135-
await vscode.commands.executeCommand("PowerShell.ShowSessionOutput");
132+
await vscode.commands.executeCommand("PowerShell.ShowSessionConsole");
136133

137134
const result = await this.languageClient?.sendRequest(
138135
NewProjectFromTemplateRequestType,

0 commit comments

Comments
 (0)