|
1 | | -# puppet-vscode |
| 1 | +<!-- |
| 2 | +TODO: Need correct marketplace ID |
| 3 | +[](https://marketplace.visualstudio.com/items?itemName=jpogran.Puppet) |
| 4 | +[](https://marketplace.visualstudio.com/items?itemName=jpogran.Puppet) |
| 5 | +--> |
| 6 | + |
| 7 | +# Puppet Language Support for Visual Studio Code |
| 8 | + |
| 9 | +This extension provides Puppet Language support for [Visual Studio Code](https://code.visualstudio.com/) |
| 10 | + |
| 11 | +## Platform support |
| 12 | + |
| 13 | +- Microsoft Windows |
| 14 | +- MacOSX |
2 | 15 |
|
3 | 16 | ## Features |
4 | 17 |
|
5 | | -## Syntax Highlighting |
| 18 | +- [Syntax highlighting](#Syntax_Highlighting) |
| 19 | +- [Code snippets](#Code_snippets) |
| 20 | +- IntelliSense for resources, parameters and more |
| 21 | +- Import from `puppet resource` directly into manifests |
| 22 | +- Node graph preview |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | +## Requirements |
| 27 | + |
| 28 | +- Puppet Agent |
| 29 | + |
| 30 | +[Windows](https://docs.puppet.com/puppet/4.10/install_windows.html) |
| 31 | + |
| 32 | +[MacOSX](https://docs.puppet.com/puppet/4.10/install_osx.html) |
| 33 | + |
| 34 | +[Linux](https://docs.puppet.com/puppet/4.10/install_linux.html) |
| 35 | + |
| 36 | +## Feature information |
| 37 | + |
| 38 | +### Syntax Highlighting |
| 39 | + |
| 40 | +Syntax highlighting uses [puppet-lint](https://github.com/rodjek/puppet-lint) and displays the results as you type, within VSCode. |
6 | 41 |
|
7 | 42 | - Puppet DSL |
8 | | -- Puppet grammar |
| 43 | +- Puppet Grammar |
9 | 44 |
|
10 | | -\!\[syntax\]\(images/syntax.png\) |
| 45 | +### Code Snippets |
11 | 46 |
|
12 | | -## Snippet support |
| 47 | +As part of IntelliSense and Snippets, you can quickly create blocks of code |
13 | 48 |
|
14 | | -\!\[feature X\]\(images/snippets.png\) |
| 49 | +### Puppet Resource |
15 | 50 |
|
16 | | -## Puppet Linting support |
| 51 | +You can import existing resources directly using `puppet resource` |
17 | 52 |
|
18 | | -On document save, puppet-lint will be run on the open file. |
| 53 | +1. Open the command palette (`Ctrl+Shift+P`) |
19 | 54 |
|
20 | | -\!\[feature X\]\(images/puppet-lint.png\) |
| 55 | +2. Type `puppet resource` and press enter |
21 | 56 |
|
22 | | -## Requirements |
| 57 | +3. Enter the resource type you want to import, for example `user` |
| 58 | + |
| 59 | +### Node Graph preview |
| 60 | + |
| 61 | +You can preview the [node graph](https://puppet.com/blog/visualize-your-infrastructure-models) of a manifest while you edit your Puppet Code. |
| 62 | + |
| 63 | +1. Open the command palette (`Ctrl+Shift+P`) |
| 64 | + |
| 65 | +2. Type `puppet open node`.. and press enter |
| 66 | + |
| 67 | +The node graph will appear next to the manifest |
23 | 68 |
|
24 | | -- puppet-lint installed and available on the PATH or path to binary set in extension settings. |
25 | 69 |
|
26 | 70 | ## Extension Settings |
27 | 71 |
|
28 | | -This extension contributes the following settings: |
| 72 | +Coming! |
29 | 73 |
|
30 | | -* `puppetLint.enable`: enable/disable this extension |
31 | | -* `puppetLint.path`: set to the path to puppet-lint |
| 74 | +<!-- TODO --> |
32 | 75 |
|
33 | 76 | ## Known Issues |
34 | 77 |
|
35 | 78 | None yet. |
36 | 79 |
|
37 | 80 | ## Release Notes |
38 | 81 |
|
39 | | -**Note** Not released yet. WIP |
40 | | - |
41 | | -- syntax |
42 | | -- grammar |
43 | | -- linter |
| 82 | +**Note** Not released yet. Work in Progress |
44 | 83 |
|
45 | | -### 0.0.1 |
| 84 | +### 0.0.3 |
46 | 85 |
|
47 | | -Initial release of the puppet extension. |
| 86 | +Puppet Parser validate linter added |
48 | 87 |
|
49 | 88 | ### 0.0.2 |
50 | 89 |
|
51 | 90 | Puppet Resource and Puppet Module commands. |
52 | 91 |
|
53 | | -### 0.0.3 |
| 92 | +### 0.0.1 |
| 93 | + |
| 94 | +Initial release of the puppet extension. |
| 95 | + |
54 | 96 |
|
55 | | -Puppet Parser validate linter added |
|
0 commit comments