Expecting:
Which should be the same as making a new .html file with the content.
On first initialize, the symbols returned would be undefined instead of Symbol[].
Concerned snippet of code:
async provideDocumentSymbols(document, token, next) {
console.log("doing symbol!");
let result = undefined;
// FIXME: [1] result is undefined for a long time, perhaps HTML Language Service isn't started yet?
// FIXME: [2] HTML document symbol provided are greatly missing!
result = await commands.executeCommand<DocumentSymbol[]>(
'vscode.executeDocumentSymbolProvider',
vdocUri(document),
);
console.debug(result);
return result;
},
When executing document symbol command with virtual document:
There was only 3 symbols detected and returned.
Expecting: Which should be the same as making a new
.html
file with the content.On first initialize, the symbols returned would be
undefined
instead ofSymbol[]
.Concerned snippet of code: