implements PLN-0137 (5/7) semantic-token-overlay

Keep the lexical token provider as the baseline. When hover resolution
names a symbol and an existing semantic key matches it, replace the
weaker identifier token. A failed resolution, a broken file, or a
symbol without an existing key keeps the provider token. No new
semantic key is added.
This commit is contained in:
2026-09-22 09:09:43 +01:00
parent 7629a73e0a
commit 202c785f94
7 changed files with 297 additions and 2 deletions
@@ -26,6 +26,12 @@ public interface FrontendLanguageService {
return List.of();
}
default List<FrontendSemanticToken> semanticTokens(
final FrontendDocumentRequest request,
final FrontendEditorialContext editorialContext) {
return semanticTokens(request);
}
default List<FrontendCompletionCandidate> completion(
final FrontendDocumentRequest request,
final int offset) {