Skip to content

Commit 4383b3a

Browse files
authored
Set createTempIntCon when creating launch config for Pester test (#1209)
* Set createTempIntCon when createing launch config for Pester test Fixes #1208 * Change temp console window title prefix from [DBG] to [TEMP]
1 parent 4914f65 commit 4383b3a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/features/PesterTests.ts

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import vscode = require("vscode");
77
import Window = vscode.window;
88
import { IFeature, LanguageClient } from "../feature";
99
import { SessionManager } from "../session";
10+
import Settings = require("../settings");
1011
import utils = require("../utils");
1112

1213
export class PesterTestsFeature implements IFeature {
@@ -33,6 +34,7 @@ export class PesterTestsFeature implements IFeature {
3334
private launchTests(uriString, runInDebugger, describeBlockName?) {
3435
const uri = vscode.Uri.parse(uriString);
3536
const currentDocument = vscode.window.activeTextEditor.document;
37+
const settings = Settings.load();
3638

3739
const launchConfig = {
3840
request: "launch",
@@ -47,6 +49,7 @@ export class PesterTestsFeature implements IFeature {
4749
],
4850
internalConsoleOptions: "neverOpen",
4951
noDebug: !runInDebugger,
52+
createTemporaryIntegratedConsole: settings.debugging.createTemporaryIntegratedConsole,
5053
cwd:
5154
currentDocument.isUntitled
5255
? vscode.workspace.rootPath

src/session.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export class SessionManager implements Middleware {
235235
this.debugSessionProcess =
236236
new PowerShellProcess(
237237
this.powerShellExePath,
238-
"[DBG] PowerShell Integrated Console",
238+
"[TEMP] PowerShell Integrated Console",
239239
this.log,
240240
this.editorServicesArgs + "-DebugServiceOnly ",
241241
sessionPath,

0 commit comments

Comments
 (0)