We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3fb068 commit 6aae711Copy full SHA for 6aae711
src/features/DebugSession.ts
@@ -247,7 +247,7 @@ export class DebugSessionFeature extends LanguageClientConsumer
247
vscode.window.showErrorMessage("Debugging untitled files in a temporary console is not supported.");
248
return undefined;
249
}
250
- } else {
+ } else if (config.script) {
251
const ext = path.extname(config.script).toLowerCase();
252
if (!(ext === ".ps1" || ext === ".psm1")) {
253
vscode.window.showErrorMessage(`PowerShell does not support debugging this file type: '${path.basename(config.script)}'`);
0 commit comments