typescript-go icon indicating copy to clipboard operation
typescript-go copied to clipboard

Code Lens provider registration error after switching tsdk location

Open andrewbranch opened this issue 2 weeks ago • 0 comments

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

andrewbranch avatar Dec 12 '25 21:12 andrewbranch