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

Remove console.debug statements #541

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/providers/validationProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ export async function doValidate(

const settings = await context.documentSettings.get(textDocument.uri);
if (!settings.validation.enabled) {
console.log("Validation disabled");

// this is done to remove the cache as well
const blankDiagnostics = new Map<string, Diagnostic[]>();
blankDiagnostics.set(textDocument.uri, []);
Expand All @@ -58,10 +56,8 @@ export async function doValidate(
const lintAvailability = await commandRunner.getExecutablePath(
lintExecutable,
);
console.debug("Path for lint: ", lintAvailability);

if (lintAvailability) {
console.debug("Validating using ansible-lint");
diagnosticsByFile = await context.ansibleLint.doValidate(textDocument);
} else {
connection?.window.showErrorMessage(
Expand All @@ -72,15 +68,11 @@ export async function doValidate(

// validate using ansible-playbook --syntax-check
else {
console.debug("Validating using ansible syntax-check");

if (isPlaybook(textDocument)) {
console.debug("playbook file");
diagnosticsByFile = await context.ansiblePlaybook.doValidate(
textDocument,
);
} else {
console.debug("non-playbook file");
diagnosticsByFile = new Map<string, Diagnostic[]>();
}
}
Expand Down