Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Addin a snippet from code doesn't update the model #135

Closed
iJungleboy opened this issue Jan 17, 2016 · 1 comment
Closed

Addin a snippet from code doesn't update the model #135

iJungleboy opened this issue Jan 17, 2016 · 1 comment

Comments

@iJungleboy
Copy link

I have code which adds a snippet from a snippet catalog like this

        vm.addSnippet = function addSnippet(snippet) {
            var snippetManager = ace.require("ace/snippets").snippetManager;
            snippetManager.insertSnippet(vm.editor, snippet);
            vm.editor.focus();
        };

But if this is the last / only interaction, the view-model seems to not know about it. If I leave the added snippet and type around, the model is updated.

Possibly related to #133

@iJungleboy
Copy link
Author

As it seems to be related to #133, I'll close this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant