-
Notifications
You must be signed in to change notification settings - Fork 70
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
Integrate eslint language server #49
Comments
Sounds like a good idea! Do you know which kind of features is provided by the eslint server? Is there more than diagnostics? |
Never played with it. But you can see feature support at https://github.com/Microsoft/vscode-eslint/blob/master/server/src/server.ts#L591 |
For the moment vscode-eslint doesn't support --stdio We must wait for microsoft/vscode-eslint#290 |
But does it have LSP support? Maybe it supports TCP/IP communication? |
According https://github.com/Microsoft/vscode-eslint/blob/master/server/src/server.ts#L289 it supports IPC
I have tried to replace this code with
like JSON, CSS Language server does (it search for instance if stdio is in the args), but it failed at https://github.com/Microsoft/vscode-eslint/blob/master/server/src/server.ts#L303
|
LSP4E doesn't require stdio and can work with any stream. However, AFAIK,
there is no good Java client for IPC that would allow to easily build a
stream.
|
We're now using typescript-language-server from Typefox/Theia. Is ESLint still useful with this language server? |
Typefox/Theia can support tslint by using the plugin https://github.com/angelozerr/tslint-language-service So you can define lint rules with tslint. Some user could prefer ESLint which works only with JS if I remember. |
I'm closing it in favor of #145 |
ESLint is very used in JavaScript word. It seems that VSCode provides an eslint language server https://github.com/Microsoft/vscode-eslint/blob/master/server/src/server.ts
I think it should be interesting to integrate it but activate with some condition like:
In other words:
The text was updated successfully, but these errors were encountered: