Skip to content

Untitled document changing language from powershell crashes extension #1676

Closed
@corbob

Description

@corbob

Issue Description

When Untitled documents are set to PowerShell for a language, and then you change the language on one to another language (have tested with xml, sql, and batch) the PowerShell extension crashes.

When setting the default language to Plain Text, and then changing the file type to PowerShell and off of PowerShell it still crashes.

The one scenario where I can consistently get it to not crash:

  1. Launch vscode fresh
  2. before opening any files open the PowerShell Command Explorer
  3. Wait for it to load
  4. Open new untitled file
  5. Change the file language to PowerShell
  6. Change the file language to another language

I cannot fathom the reason for it not crashing here...

Attached Logs

1546304255-2ff2cd90-e2df-4afd-b137-6f33758ff4241546304149403.zip

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.17763
VSCode 1.31.0-insider
PowerShell Extension Version 1.10.2

PowerShell Information

Name Value
PSVersion 5.1.17763.134
PSEdition Desktop
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.17763.134
BuildVersion 10.0.17763.134
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand)
Extension Author Version
bracket-pair-colorizer CoenraadS 1.0.61
cpptools ms-vscode 0.21.0-insiders
csharp ms-vscode 1.17.1
debugger-for-chrome msjsdiag 4.11.1
EditorConfig EditorConfig 0.12.6
gc-excelviewer GrapeCity 2.1.26
githistory donjayamanne 0.4.4
gitignore michelemelluso 1.0.1
gitlens eamodio 9.2.4
indent-rainbow oderwat 7.2.4
PowerShell ms-vscode 1.10.2
theme-cobalt2 wesbos 2.1.6
theme-solarized-minimal jibsen 1.2.1
tslint eg2 1.0.42
vsc-material-theme Equinusocio 2.6.3
vscode-markdownlint DavidAnson 0.22.0
vscode-npm-script eg2 0.3.5
vscode-react-native vsmobile 0.7.0
vsliveshare ms-vsliveshare 0.3.1071
xml DotJoshJohnson 2.4.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions