Open yy0931 opened 1 year ago
I noticed that I should have added "onLanguage:test-lang" to activationEvents, so I updated the code and the zip file, but the issue still persists.
I have similar issue with custom editor. The use case is the next:
Prerequisite
.meow
). .meow
. Steps to reproduce
1.meow
and 2nd is custom editor for the 1.meow
. provideDocumentSemanticTokens
is not called. Editing this file does not call provideDocumentSemanticTokens
as well
I've been developing a VSCode extension to syntax highlight a language using semantic highlight, and I've noticed that
vscode.DocumentSemanticTokensProvider.provideDocumentSemanticTokens
is never called for the untitled document created byvscode.window.showTextDocument(await vscode.workspace.openTextDocument(...))
if the created untitled document is the first document created after opening a window.The issue does not exist in VSCode v1.60-v1.75 but it does exist in v1.76-1.81 (current version).
Here is a minimal reproducible code. A .vsix file is also included in it. semantic-highlight-test-2.zip
extension.js
package.json
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
Screencast:
recording.webm