diff --git a/src/format/RuboCop.ts b/src/format/RuboCop.ts index 7a48f16c6..b16a36906 100644 --- a/src/format/RuboCop.ts +++ b/src/format/RuboCop.ts @@ -42,7 +42,9 @@ export class AutoCorrect { const ext: string = process.platform === 'win32' ? '.bat' : ''; if (vscode.workspace.getConfiguration('ruby').useBundler) { - return [`bundle${ext}`, 'exec', 'rubocop']; + const pathToBundler: string = + vscode.workspace.getConfiguration('ruby').pathToBundler || 'bundle'; + return [`${pathToBundler}${ext}`, 'exec', 'rubocop']; } return [`rubocop${ext}`];