We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3fb8ffb + 3835679 commit 2ca9344Copy full SHA for 2ca9344
client/src/connection.ts
@@ -209,7 +209,13 @@ export class ConnectionManager implements IConnectionManager {
209
break;
210
default:
211
myOutputChannel.appendLine('Starting language server')
212
- cmd = 'ruby'
+
213
+ // Try and find the puppet-agent ruby
214
+ let rubyPath: string = '/opt/puppetlabs/puppet/bin/ruby';
215
+ if (fs.existsSync(rubyPath)) { cmd = rubyPath }
216
217
+ // Default to ruby on the path
218
+ if (cmd == undefined) { cmd = 'ruby' }
219
options = {
220
shell: true,
221
env: process.env,
0 commit comments