Skip to content

textDocument/codeAction request has end character set as 1.7976931348623157E+308 #80288

@rjmholt

Description

@rjmholt

From PowerShell/vscode-powershell#2135.

  • VSCode Version: 1.37.0
  • OS Version: Windows_NT x64 10.0.17763

Steps to Reproduce:

See GIF.

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.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-code-actionsEditor inplace actions (Ctrl + .)help wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions