Skip to content

Code Lens provider registration error after switching tsdk location #2369

@andrewbranch

Description

@andrewbranch

Extension Version

0.20251212.1

VS Code Version

1.108.0-insider (Universal)

Operating system Version

macOS

Steps to reproduce

  1. Open a TS file in VS Code
  2. In your user preferences JSON, add or remove the typescript.native-preview.tsdk option pointing to your local tsgo build to make VS Code switch between the local build and its bundled build
  3. In the TS file, run the Restart Language Server command

Issue

An error "command 'typescript.native-preview.codeLens.showLocations' already exists" appears, and then you’re left with two instances of the client running!

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: EditorRelated to the LSP server, editor experience

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions