From bc772ec603621e80cce5fff9e97e376c0d03a87a Mon Sep 17 00:00:00 2001 From: "Sean M. Collins" Date: Tue, 10 Jan 2023 15:16:29 -0500 Subject: [PATCH 1/2] Remove console.debug statements This is related to #540 --- src/providers/validationProvider.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/providers/validationProvider.ts b/src/providers/validationProvider.ts index 36e0daf3..1d556956 100644 --- a/src/providers/validationProvider.ts +++ b/src/providers/validationProvider.ts @@ -39,7 +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(); @@ -58,10 +57,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( @@ -72,15 +69,12 @@ 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(); } } From e53ac13be6b646f754d26df527e89740a8cf4f0c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 10 Jan 2023 20:17:57 +0000 Subject: [PATCH 2/2] chore: auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/providers/validationProvider.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/providers/validationProvider.ts b/src/providers/validationProvider.ts index 1d556956..df4f9ce3 100644 --- a/src/providers/validationProvider.ts +++ b/src/providers/validationProvider.ts @@ -39,7 +39,6 @@ export async function doValidate( const settings = await context.documentSettings.get(textDocument.uri); if (!settings.validation.enabled) { - // this is done to remove the cache as well const blankDiagnostics = new Map(); blankDiagnostics.set(textDocument.uri, []); @@ -69,7 +68,6 @@ export async function doValidate( // validate using ansible-playbook --syntax-check else { - if (isPlaybook(textDocument)) { diagnosticsByFile = await context.ansiblePlaybook.doValidate( textDocument,