Skip to content
Discussion options

You must be logged in to vote

Hi @wss29 ,

You could simply listen for model root changes on the EditorContextService and trigger an update whenever the root changes:

    @inject(EditorContextService)
    protected editorContextService: EditorContextService;
    
    // listen for changes
    this.editorContextService.onModelRootChanged(newRoot => {
       // You update logic
    });

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wss29
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