Skip to content

Conversation

@johnnycheng0210
Copy link

@johnnycheng0210 johnnycheng0210 commented Nov 5, 2025

Follow up more up to date rebase of this #1636.

Address the feat request in this ticket, by allowing custom configs to be passed to the tsgo LSP.

Copy link
Member

@DanielRosenwasser DanielRosenwasser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We haven't discussed this more broadly, but custom config specification has been a long-standing request with a lot of interest. The scope of implementing could grow a bit from what's here if we need something beyond a naive restart, but maybe this is good to start. I'll let others weigh in.

this.outputChannel.appendLine(`Resolved to ${this.exe.path}`);

// Get pprofDir
// Get pprofDir
Copy link
Member

@DanielRosenwasser DanielRosenwasser Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switch this and every other TS line back to spaces

{
...this.clientOptions,
initializationOptions: {
customConfigFileName,
Copy link
Member

@DanielRosenwasser DanielRosenwasser Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than be part of initialization, we think this sort of thing would belong more on user preferences (see here.

Whether we just say "you need to restart the server" or we track this sort of thing on the server in some way is a bigger question.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @DanielRosenwasser i've just made the changes to have it be included in user preferences and have tested it works - could you take another look please

@DanielRosenwasser DanielRosenwasser changed the title more up to date Support for custom configurations Nov 5, 2025
@jakebailey
Copy link
Member

I'm not sure what happened with your PRs, but can you keep the one you intend us to look at open and keep pushing to that one?

@johnnycheng0210
Copy link
Author

ah sorry - i was rebasing PR's - i will close the previous PR and use this one instead

@johnnycheng0210 johnnycheng0210 force-pushed the johnnyxc-tsgo-rebased-all-config branch 2 times, most recently from 56c19c5 to 7b164ac Compare January 6, 2026 05:12
@johnnycheng0210 johnnycheng0210 force-pushed the johnnyxc-tsgo-rebased-all-config branch from 7b164ac to 52ffc8e Compare January 6, 2026 05:20
@johnnycheng0210 johnnycheng0210 marked this pull request as ready for review January 6, 2026 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants