Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

add project_root_callback for tsserver#2290

Merged
w0rp merged 4 commits intodense-analysis:masterdense-analysis/ale:masterfrom
dsifford:dsifford-tsserver-project-rootCopy head branch name to clipboard
Feb 11, 2019
Merged

add project_root_callback for tsserver#2290
w0rp merged 4 commits intodense-analysis:masterdense-analysis/ale:masterfrom
dsifford:dsifford-tsserver-project-rootCopy head branch name to clipboard

Conversation

@dsifford
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

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

Thanks

Comment thread test/command_callback/test_javascript_tsserver_command_callback.vader Outdated
@w0rp w0rp merged commit aca1edb into dense-analysis:master Feb 11, 2019
@w0rp
Copy link
Copy Markdown
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.