Skip to content

Commit

Permalink
Remove unused static
Browse files Browse the repository at this point in the history
  • Loading branch information
ajthinking committed Jan 15, 2025
1 parent e627a0e commit e5a4af0
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions packages/ds-ext/src/DiagramEditorProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,6 @@ export class DiagramEditorProvider implements vscode.CustomEditorProvider<Diagra
private observerStorage!: ObserverStorage;
private config: DataStoryConfig;

public static register(context: vscode.ExtensionContext): vscode.Disposable {
const provider = new DiagramEditorProvider(context);

return vscode.window.registerCustomEditorProvider(
'ds-ext.diagramEditor',
provider,
{
webviewOptions: {
retainContextWhenHidden: true, // Keep the webview loaded when not visible
},
supportsMultipleEditorsPerDocument: false,
}
);
}

async dispose(): Promise<void> {
await this.observerStorage.close();
}
Expand Down

0 comments on commit e5a4af0

Please sign in to comment.