Skip to content

How to properly dispose the editor after creating with initializeMonacoService? #439

Closed Answered by CGNonofr
chiaolinghong asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, ok there are many things here

Hi, I am using the provided demo project in this repository and running into the error of Error: Services are already initialized at checkServicesNotInitialized... when toggling between routes on a single-page application.

initializeMonacoService can only be called once. If you want to re-initialize it with other parameters, you need to refresh the page first

The demo then passes the openNewCodeEditor into ...getViewsServiceOverride(openNewCodeEditor, undefined) as the openEditorFallback option. Maybe I am not undersatnding how this works, but on my copy of the demo example, it does not seem to trigger the fallback?

When using the view service over…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@chiaolinghong
Comment options

@CGNonofr
Comment options

@chiaolinghong
Comment options

Answer selected by chiaolinghong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants