Skip to content

Commit 3abc2a5

Browse files
committed
(GH-353) Revert back to puppetAgentDir setting
This restores the original setting name for the installation directory where the extension can find the source files for the language server to function. This allows us to ship a small release before we ship a larger release with breaking changes later.
1 parent 3678f95 commit 3abc2a5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@
276276
"agent"
277277
]
278278
},
279-
"puppet.installDirectory": {
279+
"puppet.puppetAgentDir": {
280280
"type": "string",
281281
"default": null,
282282
"description": "The fully qualified path to the Puppet agent install directory. For example: 'C:\\Program Files\\Puppet Labs\\Puppet' or '/opt/puppetlabs/puppet'"

src/configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export class ConnectionConfiguration implements IConnectionConfiguration {
3737
}
3838

3939
get puppetBaseDir(): string {
40-
if (this.config['installDirectory'] !== null) {
41-
return this.config['installDirectory'];
40+
if (this.config['puppetAgentDir'] !== null) {
41+
return this.config['puppetAgentDir'];
4242
}
4343

4444
let programFiles = PathResolver.getprogramFiles();

0 commit comments

Comments
 (0)