Skip to content

Commit 393241f

Browse files
authored
Merge pull request #471 from Coding/fix-debug-breakpoint-err
fix model
2 parents 51d18ac + 5954ff9 commit 393241f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/components/MonacoEditor/state.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ class EditorInfo {
7070
monaco.editor.getModel(monaco.Uri.parse(this.uri).toString()) ||
7171
monaco.editor.createModel(this.content || '', this.languageMode, monaco.Uri.parse(this.uri))
7272
this.uri = model.uri._formatted
73+
74+
this.model = model
75+
7376
const monacoEditor = monaco.editor.create(
7477
this.monacoElement,
7578
{

0 commit comments

Comments
 (0)