There was an error while loading. Please reload this page.
1 parent 1ac9125 commit 8b98239Copy full SHA for 8b98239
src/CodeEditor/CodeMirror.svelte
@@ -34,13 +34,12 @@
34
import searchDoc from "../SearchProgram.js";
35
36
const { ipcRenderer } = require("electron");
37
-
+
38
import {
39
editorCache,
40
codeMirrorEditor,
41
currentTabFilePath,
42
} from "../DataStore/SvelteStormDataStore";
43
-import { lang } from "moment";
44
45
export let value;
46
export let language;
@@ -154,7 +153,7 @@ import { lang } from "moment";
154
153
}
155
});
156
157
- afterUpdate(async (): Promise<void> => { // this runs 3x when a file is opened
+ afterUpdate(async (): Promise<void> => {
158
if (!noUpdate && !showToolTripTransition) {
159
if (codeMirrorEditor) {
160
// retrieve code from DirectoryStore.js and store cached code of the tab that the user clicked on
0 commit comments