Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add project_root_callback for tsserver #2290

Merged
merged 4 commits into from
Feb 11, 2019
Merged

add project_root_callback for tsserver #2290

merged 4 commits into from
Feb 11, 2019

Conversation

dsifford
Copy link
Contributor

This PR simply adds in a project_root_callback for tsserver to make tsserver work as intended in projects that have nested tsconfig.json files.

I tested these changes in a repo I was having issues with and these changes resolved my problem.

Let me know if you need anything further.

Copy link
Member

@w0rp w0rp left a comment

Choose a reason for hiding this comment

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

Makes sense. The root is never sent to tsserver, but the string can be used for running separate instances. Add a test for this. Look at tests that use AssertLSPProject.

@dsifford
Copy link
Contributor Author

@w0rp Look those over when you get time and let me know if I did that correctly.

Thanks

@w0rp w0rp merged commit aca1edb into dense-analysis:master Feb 11, 2019
@w0rp
Copy link
Member

w0rp commented Feb 11, 2019

Cheers! 🍻

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.

None yet

2 participants