Skip to content

Commit 0e191e3

Browse files
committed
Use workspaceState instead of globalState.
The args are remembered across VSCode invocations but at least each workspace has its own args remembered. That actually might be a feature.
1 parent b528275 commit 0e191e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/features/DebugSession.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export class SpecifyScriptArgsFeature implements IFeature {
149149
}
150150

151151
if (this.emptyInputBoxBugFixed) {
152-
let prevArgs = this.context.globalState.get(powerShellDbgScriptArgsKey, '');
152+
let prevArgs = this.context.workspaceState.get(powerShellDbgScriptArgsKey, '');
153153
if (prevArgs.length > 0) {
154154
options.value = prevArgs;
155155
}
@@ -159,7 +159,7 @@ export class SpecifyScriptArgsFeature implements IFeature {
159159
// When user cancel's the input box (by pressing Esc), the text value is undefined.
160160
if (text !== undefined) {
161161
if (this.emptyInputBoxBugFixed) {
162-
this.context.globalState.update(powerShellDbgScriptArgsKey, text);
162+
this.context.workspaceState.update(powerShellDbgScriptArgsKey, text);
163163
}
164164
return new Array(text);
165165
}

0 commit comments

Comments
 (0)