Skip to content

Commit

Permalink
Merge pull request #368 from ajthinking/fixes2
Browse files Browse the repository at this point in the history
Remove unused static
  • Loading branch information
ajthinking authored Jan 15, 2025
2 parents 2a42923 + e5a4af0 commit 86bb395
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 86bb395

Please sign in to comment.