Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Import/sync snippets from vscode #19

Open
mchugh19 opened this issue Jun 8, 2020 · 0 comments
Open

Import/sync snippets from vscode #19

mchugh19 opened this issue Jun 8, 2020 · 0 comments

Comments

@mchugh19
Copy link

mchugh19 commented Jun 8, 2020

In korekontrol/vscode-saltstack#6 and a few subsequent PRs, snippets were added to the saltstack VSCode extension.

The json snippets were generated from salt, so they include all potential state names. These json snippets could be converted to sublime's format, or the generator scripts could be used to do the same task for sublime.

The vast majority of the snippets do not contain any state specific handling and just autocomplete the potential state function names. But the generator script only ensures that state names are added, so any customizations there in are retained. Thus, the workflow is that the generation script can be run for any new saltstack release to capture any state additions. If there are any customizations desired, they can be manually edited into the json snippets (see file.manage)

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