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 cjs and js-ts-mode in lsp-javascript #4121

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

DCsunset
Copy link
Contributor

@DCsunset DCsunset commented Aug 3, 2023

Node.js supports the .cjs extension to treat a file as CommonJS module.

This PR will make lsp-mode activate the language server properly.
It also adds the js-ts-mode to the mode list, which is a js tree-sitter mode in Emacs 29.

@github-actions github-actions bot added the client One or more of lsp-mode language clients label Aug 3, 2023
@DCsunset
Copy link
Contributor Author

Any update on this PR?

Copy link
Member

@jcs090218 jcs090218 left a comment

Choose a reason for hiding this comment

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

LGTM!

@DCsunset
Copy link
Contributor Author

The CI fails due to some weird reasons (Can’t find library pfuture-autoloads.el). Do I need to do anything to fix it?

@jcs090218
Copy link
Member

No, you can ignore these errors. One is from the upstream Windows snapshot. The other one has been fixed in the master branch (rebase can solve this).

@yyoncho yyoncho merged commit f8ed844 into emacs-lsp:master Aug 23, 2023
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client One or more of lsp-mode language clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants