We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 926dc43 commit 13fa269Copy full SHA for 13fa269
package.json
@@ -26,7 +26,6 @@
26
"url": "https://github.com/PowerShell/vscode-powershell.git"
27
},
28
"activationEvents": [
29
- "onDebugInitialConfigurations",
30
"onDebugResolve:PowerShell",
31
"onLanguage:powershell",
32
"onCommand:PowerShell.NewProjectFromTemplate",
src/features/DebugSession.ts
@@ -153,13 +153,9 @@ export class DebugSessionFeature extends LanguageClientConsumer
153
_folder: WorkspaceFolder | undefined,
154
config: DebugConfiguration,
155
_token?: CancellationToken): Promise<DebugConfiguration> {
156
- // Make sure there is a session running before attempting to debug/run a program
157
- // TODO: Perhaps this should just wait until it's running or aborted.
+
158
if (this.sessionManager.getSessionStatus() !== SessionStatus.Running) {
159
- const msg = "Cannot debug or run a PowerShell script until the PowerShell session has started. " +
160
- "Wait for the PowerShell session to finish starting and try again.";
161
- vscode.window.showWarningMessage(msg);
162
- return undefined;
+ await this.sessionManager.start();
163
}
164
165
// Starting a debug session can be done when there is no document open e.g. attach to PS host process
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments