Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ### Configuration improvements for
customSnippets
:
- make `type` of customSnippets typed. Previously it was a string, now it a string enum. Number support is preserved. - add `executeCommand` to allow running arbitrary commands on snippet accept - ### improve builtin `useParam` snippet: 1. Now it will appear on top with Event icon, similar to other builtin js snippets. Most importantly it now appear higher score than `useParams` 2. Now it will expand to `const params = useParams() as { groupId: string }` instead of `const params = useParams<'groupId'>()`. You can look at the [react-router issue](remix-run/react-router#8498) for the motivation of this change. You can use `useParamMode` setting to switch to old behavior. ---- - allow to use captured group names from regexs of `when` in `body` of snippet - ### Introduce New Type of Snippets! - ### Typing Snippets - More in readme feat: ### New builtin snippets - `ed` -> `export default` (for js langs) - New snippets for markdown: - `ts` -> `` ```ts\n$1\n``` `` - `ts` -> `` ```ts\n$1\n``` `` - `codeblock` -> `` ```$1\n$2\n``` `` (fenced codeblock) - `dropdown` (fenced codeblock) fix: Fix a rare case when the same snippet with multiple locations where included multiple times fix: Allow to disable sortText applied by default snippet config
- Loading branch information