Add completion, browser integration, and workspace improvements
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user