korekontrol / vscode-saltstack Goto Github PK
View Code? Open in Web Editor NEWSaltStack extension for Microsoft Visual Studio Code
Home Page: https://www.korekontrol.eu/
License: MIT License
SaltStack extension for Microsoft Visual Studio Code
Home Page: https://www.korekontrol.eu/
License: MIT License
Hi is it possible to make it compatible with VS code 1.18 instead of 1.19? Or are there breaking changes?
Hi, @cbosdo and myself have hacked an experimental Language Server for SaltStack SLS during this year's hackweek at @SUSE. The project is still in a very early state (see: https://github.com/dcermak/salt-lsp) but we were wondering whether you'd be interested in collaborating in the future?
I think that it could be definitely beneficial for us to join our efforts here, resulting in less duplicated efforts. What do you all think?
This expression
{% do network2host[interfacedetails['network']].update({current_host:{'ip':interfacedetails['ip'],'mac':interfacedetails['mac']}}) %}
is wrongly recognized as a variable. Therefore the problem message:
Jinja variables should have spaces before and after: '{{ var_name }}' salt-lint(206)
does not apply and should not be displayed.
network2host and current_host are dicts
Since Jinja is rendered by Salt first, I think it should be highlighted above all else even if it is inside of a string. It can be quite annoying to lose your highlighting just because your Jinja is inside a string even though the renderer does not treat it as a string.
Hi,
I'm running into an installation issue with v0.0.8 on the following vscode setup
Version: 1.54.3
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Linux x64 5.8.0-48-generic snap
Ubuntu 20.04 LTS 64-bit
The extension doesn't get loaded after installation, even after window reload and vscode restart. The issue manifests through the lack of color/syntax highlighting and no salt related auto completion suggestions when pressing ctrl+space (just the default vscode text suggestions). I first thought this might be due to conflict with Better Jinja and salt-lint extensions but still had the same issue after uninstalling them.
The workaround for now has been
This seems to load the extension properly. Perhaps there is a way to reload the extension directly through the command palette?
Either way, minor issue but thought I'd mention it.
Best regards
Open VSX is the open-source VS Code extension registry that is used by default in VSCodium. Currently the korekontrol.saltstack
extension isn't available.
As a temporary solution I've openend a pull requrest to automate the release of the latest version open-vsx/publish-extensions#64.
Can I issue a few feature requests
For example, the following functional requirements
Refer to the link
https://github.com/VSChina/vscode-ansible
https://plugins.jetbrains.com/plugin/7792-yaml-ansible-support
I don't think it would be too hard to add autocompletion, such that, when I type, say, file.
, I get a dropdown that contains exists
, managed
, symlink
, etc. This could also be implemented as snippets instead.
It would be nice if this could lint SLS files with roaldnefs/salt-lint for you
When typing {%
the auto completion seems to give me a completion of {%%}}
(placing my cursor in the centre of the %'s)
Unfortunately, this is not syntactically valid Jinja2
Thanks for the great extension! I noticed a couple instances where the JINJA highlighting is wrong:
{% set Stuff = "/tmp/baz.json" %}
example:
file.managed:
- name: /tmp/foo.json {# {{ Stuff }} #}
# {% set Stuff = "/tmp/baz.json" %}
example:
file.managed:
- name: {{ Stuff }}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.