We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f196674 commit 8e8313dCopy full SHA for 8e8313d
src/utils/editor.ts
@@ -2,8 +2,9 @@ import * as vscode from "vscode";
2
import * as os from "os";
3
4
import config from "../utils/config";
5
-import { VscWorkspaceLocation } from "./messages";
+import Messages, { VscWorkspaceLocation } from "./messages";
6
import path from "path";
7
+import { sendToFrontendWrapped } from "../commands/showPanel";
8
9
export class Editor {
10
editor?: vscode.TextEditor;
@@ -98,6 +99,13 @@ export class Editor {
98
99
uri,
100
new TextEncoder().encode(contents),
101
);
102
+ } else if (answer === undefined) {
103
+ // Modal cancelled
104
+ const message = Messages.Text(
105
+ self.workspaceLocation,
106
+ value.toString(),
107
+ );
108
+ sendToFrontendWrapped(message);
109
}
110
});
111
0 commit comments