Remote stylesheets
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
Is that from official VSCode's CSS language server?
-
I can't find
remoteStyleSheetsfrom the whole VSCode codebase https://github.com/microsoft/vscode/search?q=remoteStyleSheetsBut interestingly, I can't find it
ecmel/vscode-html-cssfrom https://github.com/ecmel/vscode-html-css/search?q=remoteStyleSheets either -
CSS server settings has no
remoteStyleSheetshttps://github.com/microsoft/vscode/blob/main/extensions/css-language-features/package.json -
HTML server settings has no
remoteStyleSheetshttps://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