microsoft / microsoft/monaco-editor
[Feature Request] Provide API to leave snippet mode
Open
@jrieken is already working on this.
Since Mar 10, 2023.
feature-request
- Dominant language
- JavaScript
- Stars
- 46.8k
- Forks
- 4.1k
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 1
Description
Context
- This issue is not a bug report. (please use a different template for reporting a bug)
- This issue is not a duplicate of an existing issue. (please use the search to find existing issues)
Description
I'd like to ask for an API that allows leaving snippet mode.
Right now I'm resorting to something as:
const snippetController: any = editor.getContribution("snippetController2");
if (snippetController) {
snippetController.cancel();
}
But this seems very hacky...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.