@@ -6,20 +6,20 @@ import * as assert from "assert";
66import Sinon from "sinon" ;
77import { DebugAdapterNamedPipeServer , DebugConfiguration , DebugSession , Extension , ExtensionContext , Range , SourceBreakpoint , TextDocument , TextEditor , Uri , commands , debug , extensions , window , workspace } from "vscode" ;
88import { Disposable } from "vscode-languageserver-protocol" ;
9- import { DebugConfig , DebugSessionFeature , defaultDebugConfigurations } from "../../src/features/DebugSession" ;
9+ import { DebugConfig , DebugSessionFeature , DebugConfigurations } from "../../src/features/DebugSession" ;
1010import { IPowerShellExtensionClient } from "../../src/features/ExternalApi" ;
1111import * as platform from "../../src/platform" ;
1212import { IPlatformDetails } from "../../src/platform" ;
1313import { IEditorServicesSessionDetails , IPowerShellVersionDetails , SessionManager , SessionStatus } from "../../src/session" ;
1414import * as utils from "../../src/utils" ;
1515import { BuildBinaryModuleMock , WaitEvent , ensureEditorServicesIsConnected , stubInterface , testLogger } from "../utils" ;
1616
17- const TEST_NUMBER = 7357 ; //7357 = TEST. Get it? :)
17+ const TEST_NUMBER = 7357 ; // 7357 = TEST. Get it? :)
1818
1919let defaultDebugConfig : DebugConfiguration ;
2020beforeEach ( ( ) => {
2121 // This prevents state from creeping into the template between test runs
22- defaultDebugConfig = structuredClone ( defaultDebugConfigurations [ DebugConfig . LaunchCurrentFile ] ) ;
22+ defaultDebugConfig = structuredClone ( DebugConfigurations [ DebugConfig . LaunchCurrentFile ] ) ;
2323} ) ;
2424
2525describe ( "DebugSessionFeature" , ( ) => {
@@ -81,7 +81,7 @@ describe("DebugSessionFeature", () => {
8181 const actual = await createDebugSessionFeatureStub ( { } ) . resolveDebugConfiguration ( undefined , noRequestConfig ) ;
8282
8383 assert . equal ( actual ! . current_document , true ) ;
84- assert . equal ( actual ! . request , defaultDebugConfigurations [ DebugConfig . LaunchCurrentFile ] . request ) ;
84+ assert . equal ( actual ! . request , DebugConfigurations [ DebugConfig . LaunchCurrentFile ] . request ) ;
8585 } ) ;
8686
8787 it ( "Errors if current file config was specified but no file is open in the editor" , async ( ) => {
@@ -450,7 +450,7 @@ describe("DebugSessionFeature E2E", () => {
450450 } ) ;
451451 } ) ;
452452
453- const config = defaultDebugConfigurations [ DebugConfig . InteractiveSession ] ;
453+ const config = DebugConfigurations [ DebugConfig . InteractiveSession ] ;
454454 assert . ok ( await debug . startDebugging ( undefined , config ) , "Debug session should start" ) ;
455455 assert . equal ( ( await startDebugSession ) . name , config . name , "Debug session name should match when started" ) ;
456456
@@ -482,7 +482,7 @@ describe("DebugSessionFeature E2E", () => {
482482 } ) ;
483483
484484 it ( "Debugs a binary module script" , async ( ) => {
485- const launchScriptConfig = structuredClone ( defaultDebugConfigurations [ DebugConfig . LaunchScript ] ) ;
485+ const launchScriptConfig = structuredClone ( DebugConfigurations [ DebugConfig . LaunchScript ] ) ;
486486 launchScriptConfig . script = Uri . joinPath ( binaryModulePath , "BinaryModuleTest.ps1" ) . fsPath ;
487487 launchScriptConfig . attachDotnetDebugger = true ;
488488 launchScriptConfig . createTemporaryIntegratedConsole = true ;
@@ -504,7 +504,7 @@ describe("DebugSessionFeature E2E", () => {
504504 } ) ;
505505
506506 it ( "Stops at a binary module breakpoint" , async ( ) => {
507- const launchScriptConfig = structuredClone ( defaultDebugConfigurations [ DebugConfig . LaunchCurrentFile ] ) ;
507+ const launchScriptConfig = structuredClone ( DebugConfigurations [ DebugConfig . LaunchCurrentFile ] ) ;
508508 launchScriptConfig . attachDotnetDebugger = true ;
509509 launchScriptConfig . createTemporaryIntegratedConsole = true ;
510510 const testScriptPath = Uri . joinPath ( binaryModulePath , "BinaryModuleTest.ps1" ) ;
0 commit comments