From PowerShell/vscode-powershell#2135.
- VSCode Version: 1.37.0
- OS Version: Windows_NT x64 10.0.17763
Steps to Reproduce:
See
.
Does this issue occur when all extensions are disabled?: No -- need an extension for a CodeLens
We've been looking into this on the PowerShell extension side, but see this message in the logs:
{
"jsonrpc": "2.0",
"id": 8,
"method": "textDocument/codeAction",
"params": {
"textDocument": {
"uri": "file:///c%3A/Users/Keith/.vscode/extensions/ms-vscode.powershell-2019.5.0/examples/2135_Repro.Tests.ps1"
},
"range": {
"start": {
"line": 2,
"character": 8
},
"end": {
"line": 2,
"character": 1.7976931348623157E+308
}
},
"context": {
"diagnostics": []
}
}
}
This value for range.end.character causes the extension to crash, but there's not much sane we can do with it. It's equal to Number.MAX_VALUE in JS.
From PowerShell/vscode-powershell#2135.
Steps to Reproduce:
See
.
Does this issue occur when all extensions are disabled?: No -- need an extension for a CodeLens
We've been looking into this on the PowerShell extension side, but see this message in the logs:
{ "jsonrpc": "2.0", "id": 8, "method": "textDocument/codeAction", "params": { "textDocument": { "uri": "file:///c%3A/Users/Keith/.vscode/extensions/ms-vscode.powershell-2019.5.0/examples/2135_Repro.Tests.ps1" }, "range": { "start": { "line": 2, "character": 8 }, "end": { "line": 2, "character": 1.7976931348623157E+308 } }, "context": { "diagnostics": [] } } }This value for
range.end.charactercauses the extension to crash, but there's not much sane we can do with it. It's equal toNumber.MAX_VALUEin JS.