Skip to content

Commit cd4059c

Browse files
committed
(GH-489) Add documentation for changing puppet version
This commit updates the README with information on how to use the new setting to set the Puppet Version used by the Language Server.
1 parent b23be9a commit cd4059c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,18 @@ To use a custom install path for the PDK, set the `puppet.installDirectory` sett
377377
}
378378
```
379379

380+
The PDK has many versions of Puppet which can be used. Set the `puppet.editorService.puppet.version` setting to the version you would like to use, for example, if you wanted to use version 5.4.0, then set the configuration to:
381+
382+
```json
383+
{
384+
"puppet.editorService.puppet.version":"5.4.0"
385+
}
386+
```
387+
388+
You can also change the version from the status bar in Visual Studio Code. Click on the Puppet version text in the status bar and then select which Puppet version you would like to use. Note that this will require Visual Studio Code to be restarted to take effect.
389+
390+
![changing_puppet_version](https://raw.githubusercontent.com/lingua-pupuli/puppet-vscode/master/docs/assets/change-puppet-version.gif)
391+
380392
### Configure extension to use Puppet-Agent
381393

382394
To ensure that the extension uses the Puppet-Agent, set the `puppet.installType` setting to the `puppet` value like so:
313 KB
Loading

0 commit comments

Comments
 (0)