We switched from TSLint to ESLint, but we don't currently provide any kind of support for the latter within Theia applications. We should see at making the VS Code extension work.
Navigate Theia's code base and remove any eslint-disable comment to see that errors are not reported from a Theia application. It works on VS Code using the ESLint extension.
OS and Theia version: Ubuntu 16.04 - Theia 0.14
https://github.com/microsoft/vscode-eslint/commit/8586a674f681b017b096f1769fe585aa520c905c this commit is last compatible with Theia, it could be good to package it, publish to Github and add to theia plugins
@kaiyue0329 @Anasshahidd21
I published a .vsix for us to consume.
We'd need to properly test to see if it provides the appropriate information.
One can follow how builtin plugins are added to the examples and add this entry as well.
@vince-fugnitto hmm, the plugin you distributed outputs the following:
The language client requires VS Code version ^1.41.0 but received version 1.38.0
edit: It seems to work when I override the VSCODE_API_VERSION env var to 1.41.0 馃帀
@vince-fugnitto hmm, the plugin you distributed outputs the following:
The language client requires VS Code version ^1.41.0 but received version 1.38.0
I noticed that when initially tried out the plugin following #6897
edit: It seems to work when I override the
VSCODE_API_VERSIONenv var to1.41.0馃帀
Great, hopefully it's just a sanity check performed by plugins, I wonder when we should actually bump our version. I also wonder if we should look for a version that is compatible with ours at the moment. I would not want devs to have to pass the API version through the cli when starting the app so they can get eslint markers.
@marechal-p @vince-fugnitto bumping up VSCODE_API_VERSION is fine as well
It might be best to simply add a commit on our fork and update the plugin's package.json to declare using ^1.38.0 since it seems to work... I think the API check is done on Theia's side, not the plugin.
https://github.com/eclipse-theia/theia/pull/6924 bumps up vscode api version already
I think the API check is done on Theia's side, not the plugin.
api check is done by vscode-languageclient: https://github.com/microsoft/vscode-languageserver-node/blob/4c0963d6fdfd657044092c5d4db61a87b54471ef/client/src/main.ts#L195
It's been bumped already :)
https://github.com/eclipse-theia/theia/pull/6924/files#diff-66cd2825aa616ad9a26b1f62e1b21e5bR22
Most helpful comment
api check is done by vscode-languageclient: https://github.com/microsoft/vscode-languageserver-node/blob/4c0963d6fdfd657044092c5d4db61a87b54471ef/client/src/main.ts#L195