diff --git a/src/extension.ts b/src/extension.ts index 87c7fd3..737058d 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -49,7 +49,6 @@ export async function activate(context: ExtensionContext): Promise { // diagnostics (errors and warnings) const diagnostics = languages.createDiagnosticCollection("renpy"); context.subscriptions.push(diagnostics); - subscribeToDocumentChanges(context, diagnostics); // A TextDocument was saved context.subscriptions.push( @@ -135,14 +134,6 @@ export async function activate(context: ExtensionContext): Promise { }); context.subscriptions.push(migrateOldFilesCommand); - // custom command - refresh diagnostics - const refreshDiagnosticsCommand = commands.registerCommand("renpy.refreshDiagnostics", () => { - if (window.activeTextEditor) { - refreshDiagnostics(window.activeTextEditor.document, diagnostics); - } - }); - context.subscriptions.push(refreshDiagnosticsCommand); - // custom command - toggle token debug view let isShowingTokenDebugView = false; const toggleTokenDebugViewCommand = commands.registerCommand("renpy.toggleTokenDebugView", async () => {