Skip to content
Snippets Groups Projects
Commit 507aafb4 authored by Smit, P.J.M. (Peter, Student M-CS)'s avatar Smit, P.J.M. (Peter, Student M-CS)
Browse files

now dotview requests are canceled when the window is closed

parent ad73f445
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ import { client, clientReady, disposalQueue, extensionUri, resultHandlers } from
import * as fs from "fs";
import { ParameterDefinitions, getNonce, ResultNotification, ParameterDefinition } from './utils';
import { CancellationTokenSource } from 'vscode';
import { ParameterInformation } from 'vscode';
export namespace DotViewer {
......@@ -107,6 +108,9 @@ export namespace DotViewer {
this.panel.onDidDispose(() => {
vscode.commands.executeCommand('setContext', 'modest:dotViewFocused', false);
LiveDotView.liveDotViews.delete(this.fileUri);
if (this.lastRunToken) {
client?.sendRequest("modest/cancelRun", { runToken: this.lastRunToken });
}
});
this.panel.onDidChangeViewState(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment