-
Notifications
You must be signed in to change notification settings - Fork 517
Description
PowerShell Integrated Console does not appear at all. When I hit F5 to run random .ps1 script, I got error "Couldn't find a debug adapter descriptor for debug type 'PowerShell' (extension might have failed to activate)".
I can't get PS extension logs due to error: "command 'PowerShell.GenerateBugReport' not found".
I tried to reinstall VS Code, to reinstall the PS extension, to install the preview version of the extension.
I have two user accounts on my PC - 1) admin and 2) non-admin user. And I'm getting issues only when I run VS code as an administrator.
Of course, I tried replacing all admin VSCode settings with non-admin user settings - that didn't work.
launch.json:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Launch Current File",
"script": "${file}",
"args": [],
"cwd": "${file}"
},
{
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Launch Current File in Temporary Console",
"script": "${file}",
"args": [],
"cwd": "${file}",
"createTemporaryIntegratedConsole": true
},
{
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Launch Current File w/Args Prompt",
"script": "${file}",
"args": [
"${command:SpecifyScriptArgs}"
],
"cwd": "${file}"
},
{
"type": "PowerShell",
"request": "attach",
"name": "PowerShell Attach to Host Process",
"processId": "${command:PickPSHostProcess}",
"runspaceId": 1
},
{
"type": "PowerShell",
"request": "launch",
"name": "PowerShell Interactive Session",
"cwd": ""
}
]
}
code -v
1.47.2
17299e413d5590b14ab0340ea477cdd86ff13daf
x64
code --list-extensions --show-versions
aeschli.vscode-css-formatter@1.0.1
luggage66.VBScript@0.0.2
ms-vscode.powershell@2020.6.0
zehfernando.theme-actual-obsidian@2.1.0
$PSVersionTable
Name Value
PSVersion 5.1.18362.752
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.18362.752
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1