You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support multiple SemanticTokensProvider per document selector #212650
Currently there is very basic support for multiple semantic tokens provider for the same language. The first provider that computed some tokens is used. (See #135580). This feature was also requested in #135599 but didn't look like anything got pushed to fix it...
However, in reality, tokens from multiple semantic token providers need to be taken into account. For example Java annotations in the case of Spring can have JPQL, HQL or native SQL queries depending on annotation parameters and JARs on the classpath. Seems that best approach for such use case in Semantic Tokens. However, since JDT LS also has SemanticTokensProvider any Spring specific SemanticTokenProvider would conflict with the JDT LS provider.
Reacted by Alexandru Dima, Udayani Vaka, Karthik Sankaranarayanan, Oliver Drotbohm, Oren Azad, Anthony Dahanne, Jayden Pearse, Eric Bottard, Karine Pires, nickzhums and 18 more
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
I have noticed that a few semantic token providers for the same language where only one provides non-null results isn't working so not sure if this #135602 works as expected or maybe I misunderstood something...
Are there any updates on this? I think it may be relevant to angular semantic highlighting angular/vscode-ng-language-service#2197 (I'm also trying to get semantic highlighting of signals working)
Activity
vscodenpa commentedon Jun 4, 2024
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
vscodenpa commentedon Jun 8, 2024
🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
BoykoAlex commentedon Jun 10, 2024
I have noticed that a few semantic token providers for the same language where only one provides non-null results isn't working so not sure if this #135602 works as expected or maybe I misunderstood something...
I took semantic-tokens-sample from https://github.com/BoykoAlex/vscode-extension-samples. Added:
In the
activate(...)function of theextension.tsWhere the
JavaSemanticTokensProvider:Also changed activation on event in
package.json:After all this i see that JDT LS provided semantic tokens are not present.
(See https://github.com/BoykoAlex/vscode-extension-samples/tree/multi-semantic-token-providers and don't forget to install Java extension pack or RedHat Java extension)
forivall commentedon Jul 28, 2025
Are there any updates on this? I think it may be relevant to angular semantic highlighting angular/vscode-ng-language-service#2197 (I'm also trying to get semantic highlighting of signals working)