Add completion, browser integration, and workspace improvements

This commit is contained in:
Knotty Wyvern
2026-10-07 11:25:17 -07:00
parent dd9fc64676
commit a8b1defb9d
86 changed files with 3524 additions and 203 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ export class ContributionRegistry {
return this.entries.get(key)?.value as Contributions[K] | undefined;
}
register<K extends keyof Contributions>(owner: string, key: K, value: Contributions[K]): () => void {
if (key !== "terminal" && key !== "tableFormulas") throw new Error("Unknown plugin contribution.");
if (key !== "terminal" && key !== "tableFormulas" && key !== "browser") throw new Error("Unknown plugin contribution.");
if (this.entries.has(key)) throw new Error(`Contribution already registered: ${key}`);
const entry = { owner, value };
this.entries.set(key, entry); this.emit();