Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
Use config variable in getExecutablePath in place of hardcoded string
Browse files Browse the repository at this point in the history
  • Loading branch information
priyamsahoo committed Sep 15, 2021
1 parent 0371222 commit d02ffe6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/providers/validationProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export async function doValidate(
} else {
// full validation with ansible-lint or ansible syntax-check (if ansible-lint is not installed or disabled)

const lintAvailability = await getExecutablePath('ansible-lint');
const settings = await context.documentSettings.get(textDocument.uri);

const lintAvailability = await getExecutablePath(settings.ansibleLint.path);
console.debug('Path for lint: ', lintAvailability);

if (lintAvailability) {
Expand Down

0 comments on commit d02ffe6

Please sign in to comment.