feat(language-server): understand the api binding attribute

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
ClintchizandClaude Opus 5 committed 2026-08-20 16:49:06 +05:30
1 parent cd0dffa87d
commit 29febb2e0c
4 files changed
+187 -3

No files matched your search

+5
View File
@@ -26,6 +26,7 @@ import {
htmlHover,
htmlLinkedEditingRanges,
htmlTagComplete,
isApiAttributeValuePosition,
mergeCompletions,
} from "./html-service.ts";
import { clearHtmlRegionCache } from "./html-regions.ts";
@@ -288,6 +289,10 @@ async function handle(message: JsonRpc): Promise<void> {
result(message.id, apiCallCompletions(document.text));
break;
}
if (document && isApiAttributeValuePosition(document, params.position)) {
result(message.id, apiCallCompletions(document.text));
break;
}
const wrnexus = [...completionItems(), ...workspaceCompletionItems(workspaceRoot)];
const html = document ? htmlCompletions(document, params.position) : [];
result(message.id, html.length ? mergeCompletions(wrnexus, html) : wrnexus);