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

Linting Inside of a JS String #5

Open
dannyfritz opened this issue Oct 4, 2017 · 3 comments
Open

Linting Inside of a JS String #5

dannyfritz opened this issue Oct 4, 2017 · 3 comments
Labels
enhancement lsp-client Client side of language server protocol question

Comments

@dannyfritz
Copy link

ide-css lets me modify the scopes it can operate in. Is there a way to get it to operate within a template literal of JS? The syntax highlighting already works, just need to know if there is a scope I can tell ide-css to look at to make this work.
atom_2017-10-04_14-49-42

@liuderchi
Copy link
Owner

@dannyfritz

TL;DR;
Currently ide-css CAN NOT do css linting (or other parsing) in file of JS-grammar because
it operates according to ONLY the Root Scope of the file.


To get more info you may do Editor: Log Cursor Scope command with cursor on css codes;
you will see list of scopes starting from root scope (grammar of the file) to children scopes.

ide-css cares ONLY about root scope while syntax highlighting cares about different children scopes line by line.

@liuderchi liuderchi added the lsp-client Client side of language server protocol label Oct 6, 2017
@dannyfritz
Copy link
Author

My understanding is that this is currently a limitation of vscode-css-languageserver-bin. Is that correct?

@liuderchi
Copy link
Owner

My understanding is that this is currently a limitation of vscode-css-languageserver-bin. Is that correct?

Yes. Vscode-css-languageserver-bin parses WHOLE file with only css syntax knowledge.
IMO this feature may be an extension for javascript-typescript-langserver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement lsp-client Client side of language server protocol question
Projects
None yet
Development

No branches or pull requests

2 participants