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 importMap option to deno Initialization Options #3827

Merged
merged 9 commits into from
Jul 25, 2021

Conversation

creativenull
Copy link
Contributor

@creativenull creativenull commented Jul 19, 2021

This PR introduces the addition of importMap key used in the Deno LSP to be able to map URLs into module names. Import maps manual can be found here and the json file found in their tests use importMap as part of the InitializationOptions which can be found here.

By default, import_map.json file will be searched in the project root directory and be used, if found, and gives the user the choice to use another filename to identify the importMap file.

In addition to that, I've also added deno as a linter option for javascript, let me know if you'd like that as a separate PR instead.

For tests, I've added two different import map files (default and a user defined file) in the test/test-files/typescript directory.

Edit: I've removed deno as a linter for javascript for now, making a separate PR for it. This will just focus on adding importMap option to deno lsp initialization options.

Copy link
Contributor

@hsanson hsanson left a comment

Choose a reason for hiding this comment

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

Thanks. Looks good.

@hsanson hsanson merged commit 8c59199 into dense-analysis:master Jul 25, 2021
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