You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sounds like a good idea! Do you know which kind of features is provided by the eslint server? Is there more than diagnostics?
If it's only about diagnostic, I think it could be a separate bundle, that we could suggest as addition to JSDT later (and consume in BlueSky).
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.
Activity
mickaelistria commentedon Sep 15, 2017
Sounds like a good idea! Do you know which kind of features is provided by the eslint server? Is there more than diagnostics?
If it's only about diagnostic, I think it could be a separate bundle, that we could suggest as addition to JSDT later (and consume in BlueSky).
angelozerr commentedon Sep 15, 2017
Never played with it. But you can see feature support at https://github.com/Microsoft/vscode-eslint/blob/master/server/src/server.ts#L591
angelozerr commentedon Sep 15, 2017
For the moment vscode-eslint doesn't support --stdio
We must wait for microsoft/vscode-eslint#290
mniewrzal commentedon Sep 15, 2017
But does it have LSP support? Maybe it supports TCP/IP communication?
angelozerr commentedon Sep 15, 2017
According https://github.com/Microsoft/vscode-eslint/blob/master/server/src/server.ts#L289 it supports IPC
let connection = createConnection(ProposedFeatures.all, new IPCMessageReader(process), new IPCMessageWriter(process));I have tried to replace this code with
let connection = createConnection()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
resultPromise = connection.workspace.getConfiguration({ scopeUri: uri, section: '' }).then((settings: TextDocumentSettings) => {because connection.workspace is null (it's not a standars LSP connection).
mickaelistria commentedon Sep 15, 2017
mickaelistria commentedon Oct 3, 2018
We're now using typescript-language-server from Typefox/Theia. Is ESLint still useful with this language server?
angelozerr commentedon Oct 3, 2018
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.
mickaelistria commentedon May 15, 2019
I'm closing it in favor of #145