Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1917544

Browse files
Change debugger type field back to "PowerShell" from powershell (#1773)
* Change debugger type field back to "PowerShell" from poweshell This allows the debugger to start but not sure why powershell doesn't work. That said, the previous change meant that users would have to update their launch.json to change the type to "powershell". But even when I do that, the debugger still doesn't launch. So I'm a bit puzzled. But this gets the debugger working again on master. Also fixed some warnings in session.ts. * Update package-lock.json name field to match package.json
1 parent 7f7e322 commit 1917544

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

‎package-lock.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
],
308308
"debuggers": [
309309
{
310-
"type": "powershell",
310+
"type": "PowerShell",
311311
"label": "PowerShell",
312312
"enableBreakpointsFor": {
313313
"languageIds": [
@@ -329,7 +329,7 @@
329329
"description": "Launch current file (in active editor window) under debugger",
330330
"body": {
331331
"name": "PowerShell Launch Current File",
332-
"type": "powershell",
332+
"type": "PowerShell",
333333
"request": "launch",
334334
"script": "^\"\\${file}\"",
335335
"args": [],
@@ -341,7 +341,7 @@
341341
"description": "Launch current file (in active editor window) under debugger in a temporary Integrated Console.",
342342
"body": {
343343
"name": "PowerShell Launch Current File in Temporary Console",
344-
"type": "powershell",
344+
"type": "PowerShell",
345345
"request": "launch",
346346
"script": "^\"\\${file}\"",
347347
"args": [],
@@ -354,7 +354,7 @@
354354
"description": "Launch current file (in active editor window) under debugger, prompting first for script arguments",
355355
"body": {
356356
"name": "PowerShell Launch Current File w/Args Prompt",
357-
"type": "powershell",
357+
"type": "PowerShell",
358358
"request": "launch",
359359
"script": "^\"\\${file}\"",
360360
"args": [
@@ -368,7 +368,7 @@
368368
"description": "Launch specified script or path to script under debugger",
369369
"body": {
370370
"name": "PowerShell Launch ${Script}",
371-
"type": "powershell",
371+
"type": "PowerShell",
372372
"request": "launch",
373373
"script": "^\"\\${workspaceFolder}/${Script}\"",
374374
"args": [],
@@ -380,7 +380,7 @@
380380
"description": "Invokes Pester tests under debugger",
381381
"body": {
382382
"name": "PowerShell Pester Tests",
383-
"type": "powershell",
383+
"type": "PowerShell",
384384
"request": "launch",
385385
"script": "Invoke-Pester",
386386
"args": [],
@@ -392,7 +392,7 @@
392392
"description": "Open host process picker to select process to attach debugger to",
393393
"body": {
394394
"name": "PowerShell Attach to Host Process",
395-
"type": "powershell",
395+
"type": "PowerShell",
396396
"request": "attach",
397397
"processId": "^\"\\${command:PickPSHostProcess}\"",
398398
"runspaceId": 1
@@ -403,7 +403,7 @@
403403
"description": "Start interactive session (Debug Console) under debugger",
404404
"body": {
405405
"name": "PowerShell Interactive Session",
406-
"type": "powershell",
406+
"type": "PowerShell",
407407
"request": "launch",
408408
"cwd": ""
409409
}

‎src/session.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,9 @@ export class SessionManager implements Middleware {
411411
if (!this.suppressRestartPrompt &&
412412
(settings.useX86Host !== this.sessionSettings.useX86Host ||
413413
settings.powerShellExePath.toLowerCase() !== this.sessionSettings.powerShellExePath.toLowerCase() ||
414-
settings.developer.powerShellExePath.toLowerCase() !==
415-
this.sessionSettings.developer.powerShellExePath.toLowerCase() ||
414+
(settings.developer.powerShellExePath ? settings.developer.powerShellExePath.toLowerCase() : null) !==
415+
(this.sessionSettings.developer.powerShellExePath
416+
? this.sessionSettings.developer.powerShellExePath.toLowerCase() : null) ||
416417
settings.developer.editorServicesLogLevel.toLowerCase() !==
417418
this.sessionSettings.developer.editorServicesLogLevel.toLowerCase() ||
418419
settings.developer.bundledModulesPath.toLowerCase() !==

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /