@@ -6,20 +6,20 @@ import * as assert from "assert";
6
6
import Sinon from "sinon" ;
7
7
import { DebugAdapterNamedPipeServer , DebugConfiguration , DebugSession , Extension , ExtensionContext , Range , SourceBreakpoint , TextDocument , TextEditor , Uri , commands , debug , extensions , window , workspace } from "vscode" ;
8
8
import { Disposable } from "vscode-languageserver-protocol" ;
9
- import { DebugConfig , DebugSessionFeature , defaultDebugConfigurations } from "../../src/features/DebugSession" ;
9
+ import { DebugConfig , DebugSessionFeature , DebugConfigurations } from "../../src/features/DebugSession" ;
10
10
import { IPowerShellExtensionClient } from "../../src/features/ExternalApi" ;
11
11
import * as platform from "../../src/platform" ;
12
12
import { IPlatformDetails } from "../../src/platform" ;
13
13
import { IEditorServicesSessionDetails , IPowerShellVersionDetails , SessionManager , SessionStatus } from "../../src/session" ;
14
14
import * as utils from "../../src/utils" ;
15
15
import { BuildBinaryModuleMock , WaitEvent , ensureEditorServicesIsConnected , stubInterface , testLogger } from "../utils" ;
16
16
17
- const TEST_NUMBER = 7357 ; //7357 = TEST. Get it? :)
17
+ const TEST_NUMBER = 7357 ; // 7357 = TEST. Get it? :)
18
18
19
19
let defaultDebugConfig : DebugConfiguration ;
20
20
beforeEach ( ( ) => {
21
21
// This prevents state from creeping into the template between test runs
22
- defaultDebugConfig = structuredClone ( defaultDebugConfigurations [ DebugConfig . LaunchCurrentFile ] ) ;
22
+ defaultDebugConfig = structuredClone ( DebugConfigurations [ DebugConfig . LaunchCurrentFile ] ) ;
23
23
} ) ;
24
24
25
25
describe ( "DebugSessionFeature" , ( ) => {
@@ -81,7 +81,7 @@ describe("DebugSessionFeature", () => {
81
81
const actual = await createDebugSessionFeatureStub ( { } ) . resolveDebugConfiguration ( undefined , noRequestConfig ) ;
82
82
83
83
assert . equal ( actual ! . current_document , true ) ;
84
- assert . equal ( actual ! . request , defaultDebugConfigurations [ DebugConfig . LaunchCurrentFile ] . request ) ;
84
+ assert . equal ( actual ! . request , DebugConfigurations [ DebugConfig . LaunchCurrentFile ] . request ) ;
85
85
} ) ;
86
86
87
87
it ( "Errors if current file config was specified but no file is open in the editor" , async ( ) => {
@@ -450,7 +450,7 @@ describe("DebugSessionFeature E2E", () => {
450
450
} ) ;
451
451
} ) ;
452
452
453
- const config = defaultDebugConfigurations [ DebugConfig . InteractiveSession ] ;
453
+ const config = DebugConfigurations [ DebugConfig . InteractiveSession ] ;
454
454
assert . ok ( await debug . startDebugging ( undefined , config ) , "Debug session should start" ) ;
455
455
assert . equal ( ( await startDebugSession ) . name , config . name , "Debug session name should match when started" ) ;
456
456
@@ -482,7 +482,7 @@ describe("DebugSessionFeature E2E", () => {
482
482
} ) ;
483
483
484
484
it ( "Debugs a binary module script" , async ( ) => {
485
- const launchScriptConfig = structuredClone ( defaultDebugConfigurations [ DebugConfig . LaunchScript ] ) ;
485
+ const launchScriptConfig = structuredClone ( DebugConfigurations [ DebugConfig . LaunchScript ] ) ;
486
486
launchScriptConfig . script = Uri . joinPath ( binaryModulePath , "BinaryModuleTest.ps1" ) . fsPath ;
487
487
launchScriptConfig . attachDotnetDebugger = true ;
488
488
launchScriptConfig . createTemporaryIntegratedConsole = true ;
@@ -504,7 +504,7 @@ describe("DebugSessionFeature E2E", () => {
504
504
} ) ;
505
505
506
506
it ( "Stops at a binary module breakpoint" , async ( ) => {
507
- const launchScriptConfig = structuredClone ( defaultDebugConfigurations [ DebugConfig . LaunchCurrentFile ] ) ;
507
+ const launchScriptConfig = structuredClone ( DebugConfigurations [ DebugConfig . LaunchCurrentFile ] ) ;
508
508
launchScriptConfig . attachDotnetDebugger = true ;
509
509
launchScriptConfig . createTemporaryIntegratedConsole = true ;
510
510
const testScriptPath = Uri . joinPath ( binaryModulePath , "BinaryModuleTest.ps1" ) ;
0 commit comments