LSP-css icon indicating copy to clipboard operation
LSP-css copied to clipboard

Remote stylesheets

Open rwols opened this issue 4 years ago • 1 comments

Here's a fun challenge. How would one get the setting css.remoteStyleSheets to work? It is mentioned in this stackoverflow question: https://stackoverflow.com/questions/35213941/how-to-add-intellisense-to-visual-studio-code-for-bootstrap

rwols avatar May 30 '21 21:05 rwols

Is that from official VSCode's CSS language server?

  • I can't find remoteStyleSheets from the whole VSCode codebase https://github.com/microsoft/vscode/search?q=remoteStyleSheets

    But interestingly, I can't find it ecmel/vscode-html-css from https://github.com/ecmel/vscode-html-css/search?q=remoteStyleSheets either

  • CSS server settings has no remoteStyleSheets https://github.com/microsoft/vscode/blob/main/extensions/css-language-features/package.json

  • HTML server settings has no remoteStyleSheets https://github.com/microsoft/vscode/blob/main/extensions/html-language-features/package.json


Update

Ah, in the SO thread, someone said

You need to change "css.remoteStyleSheets" to >> "css.styleSheets" and it will work – StudioX Jan 5 at 10:13

But it then looks like it's the plugin doing it itself, rather than the CSS server does it.

  • https://github.com/ecmel/vscode-html-css/blob/43bdcef6fe0678fb7e3e6629c38c7d37b82d885b/src/completion.ts#L60-L62
  • https://github.com/ecmel/vscode-html-css/blob/43bdcef6fe0678fb7e3e6629c38c7d37b82d885b/src/completion.ts#L132-L143

jfcherng avatar May 30 '21 23:05 jfcherng