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

feat(lsp): support import maps #8683

Merged
merged 3 commits into from
Dec 9, 2020
Merged

Conversation

kitsonk
Copy link
Contributor

@kitsonk kitsonk commented Dec 9, 2020

Supports specifying an import map in the configuration of a language server client and having that applied to the workspace.

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

Is there a way to add a small test to demo this feature?

@kitsonk
Copy link
Contributor Author

kitsonk commented Dec 9, 2020

Is there a way to add a small test to demo this feature?

Doing an integration test would be difficult/complicated. I have added a unit test though which demonstrates when the option is set during startup, that the import map file gets read and is available in the lsp's state object.

@kitsonk kitsonk requested a review from ry December 9, 2020 11:56
Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

LGTM

@kitsonk kitsonk merged commit 95a6698 into denoland:master Dec 9, 2020
@kitsonk kitsonk mentioned this pull request Dec 22, 2020
43 tasks
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