Fix custom tsgo path: read from js/ts.tsdk.path unified setting#3765
Draft
Fix custom tsgo path: read from js/ts.tsdk.path unified setting#3765
js/ts.tsdk.path unified setting#3765Conversation
The getExe() function only read from `typescript.native-preview.tsdk` but ignored the unified `js/ts.tsdk.path` setting. This caused the extension to always use the bundled tsgo binary even when a custom path was configured via the unified setting. Now getExe() checks `js/ts.tsdk.path` first (with precedence), then falls back to `typescript.native-preview.tsdk`, following the same unified config pattern used elsewhere in the extension. Agent-Logs-Url: https://github.com/microsoft/typescript-go/sessions/3d3ea93c-c6f0-4010-9ed2-f62800d93aed Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/typescript-go/sessions/3d3ea93c-c6f0-4010-9ed2-f62800d93aed Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix custom tsgo path being ignored
Fix custom tsgo path: read from May 8, 2026
js/ts.tsdk.path unified setting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
getExe()only read fromtypescript.native-preview.tsdk, ignoring the unifiedjs/ts.tsdk.pathsetting. Users configuring a custom tsgo binary via the unified setting would always get the bundled binary instead.getExplicitTsdkPath()helper that checksjs/ts.tsdk.pathfirst, then falls back totypescript.native-preview.tsdkinspect()to distinguish workspace-level vs global-level values, preserving the existing workspace trust gatereadUnifiedConfigandgetExplicitUseTsgoelsewhere in the extension