-
Notifications
You must be signed in to change notification settings - Fork 37.6k
Closed
Description
- VS Code Version: 1.55
- OS Version: Windows 10
I am trying to get the coloring data of a js file. I tried the following:
Steps to Reproduce:
- Build a simple extension, add a new custom command:
-
const colorInfos = await commands.executeCommand('vscode.executeDocumentColorProvider', window.activeTextEditor.document.uri); console.debug(`file colorInfos:`, colorInfos);
- Open a
jsfile, and run the command. Observe: the result is empty. - Verify that everything is setup correctly
- I tried it multiple times, no luck.
- Calling
await commands.executeCommand('vscode.executeDocumentSymbolProvider', uri);right next to it returns the symbols as expected.
Does this issue occur when all extensions are disabled?: Yes
I would expect that it gives me all coloring information in the document, but it always returns an empty array.
What else?
I dug a bit deeper, and found that typescript-language-features (which I assume to provide the language server for JS and TS) to neither call provideDocumentColors nor registerColorProvider. Not sure if that is related? Maybe the colors are provided (and thus must be queried) in a different way?
Metadata
Metadata
Assignees
Labels
No labels