Skip to content

Commit 0c2756b

Browse files
authored
Merge pull request #28 from glennsarti/add-docs
Update README with Language Server information
2 parents de1da12 + 9b75d40 commit 0c2756b

File tree

2 files changed

+64
-23
lines changed

2 files changed

+64
-23
lines changed

README.md

Lines changed: 64 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,96 @@
1-
# puppet-vscode
1+
<!--
2+
TODO: Need correct marketplace ID
3+
[![Version](https://vsmarketplacebadge.apphb.com/version/jpogran.Puppet.svg)](https://marketplace.visualstudio.com/items?itemName=jpogran.Puppet)
4+
[![Installs](https://vsmarketplacebadge.apphb.com/installs-short/jpogran.Puppet.svg)](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
215

316
## Features
417

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+
![Example of features](docs/assets/language_server.gif)
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.
641

742
- Puppet DSL
8-
- Puppet grammar
43+
- Puppet Grammar
944

10-
\!\[syntax\]\(images/syntax.png\)
45+
### Code Snippets
1146

12-
## Snippet support
47+
As part of IntelliSense and Snippets, you can quickly create blocks of code
1348

14-
\!\[feature X\]\(images/snippets.png\)
49+
### Puppet Resource
1550

16-
## Puppet Linting support
51+
You can import existing resources directly using `puppet resource`
1752

18-
On document save, puppet-lint will be run on the open file.
53+
1. Open the command palette (`Ctrl+Shift+P`)
1954

20-
\!\[feature X\]\(images/puppet-lint.png\)
55+
2. Type `puppet resource` and press enter
2156

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
2368

24-
- puppet-lint installed and available on the PATH or path to binary set in extension settings.
2569

2670
## Extension Settings
2771

28-
This extension contributes the following settings:
72+
Coming!
2973

30-
* `puppetLint.enable`: enable/disable this extension
31-
* `puppetLint.path`: set to the path to puppet-lint
74+
<!-- TODO -->
3275

3376
## Known Issues
3477

3578
None yet.
3679

3780
## Release Notes
3881

39-
**Note** Not released yet. WIP
40-
41-
- syntax
42-
- grammar
43-
- linter
82+
**Note** Not released yet. Work in Progress
4483

45-
### 0.0.1
84+
### 0.0.3
4685

47-
Initial release of the puppet extension.
86+
Puppet Parser validate linter added
4887

4988
### 0.0.2
5089

5190
Puppet Resource and Puppet Module commands.
5291

53-
### 0.0.3
92+
### 0.0.1
93+
94+
Initial release of the puppet extension.
95+
5496

55-
Puppet Parser validate linter added

docs/assets/language_server.gif

1010 KB
Loading

0 commit comments

Comments
 (0)