From a0444911eb9f1c301d73609915237b404f569342 Mon Sep 17 00:00:00 2001 From: worksofliam Date: Mon, 29 Jan 2024 23:57:08 -0500 Subject: [PATCH] Replace custom test command with API call --- extension/client/src/linter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/client/src/linter.ts b/extension/client/src/linter.ts index 2f25251d..277979a6 100644 --- a/extension/client/src/linter.ts +++ b/extension/client/src/linter.ts @@ -95,7 +95,7 @@ export function initialise(context: ExtensionContext) { const config = instance.getConfig(); if (config.homeDirectory) { configPath = path.posix.join(config.homeDirectory, `.vscode`, `rpglint.json`) - exists = (await connection.sendCommand({ command: `test -e ${configPath}` })).code === 0; + exists = await content.testStreamFile(configPath, `r`); } break; }