Skip to content

Commit

Permalink
References working inside Monaco Editor
Browse files Browse the repository at this point in the history
  • Loading branch information
leandroperezb committed Aug 25, 2020
1 parent 6bc3118 commit 14d657c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions com.make.equo.monaco/equo-monaco-editor/src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,22 @@ export class EquoMonacoEditor {
enabled: true
},
automaticLayout: true
}, { textModelService: {
createModelReference: function(uri: monaco.Uri) {
const textEditorModel = {
load() {
return Promise.resolve(textEditorModel)
},
dispose() {},
textEditorModel: monaco.editor.getModel(uri)
}
return Promise.resolve({
object: textEditorModel,
dispose() {}
})
},
registerTextModelContentProvider: () => ({ dispose: () => {} })
}
});

let ws = this.webSocket;
Expand Down

0 comments on commit 14d657c

Please sign in to comment.