From cc70a9e85e7883e064648b4fa80e7ca14b53e588 Mon Sep 17 00:00:00 2001 From: Sophio Japharidze Date: Thu, 5 Dec 2024 14:21:17 +0100 Subject: [PATCH] Use latest language server --- scripts/dependencies.json | 2 +- src/fileSystem/fileSystemServiceImpl.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/dependencies.json b/scripts/dependencies.json index 407249c42..1dabfaf7a 100644 --- a/scripts/dependencies.json +++ b/scripts/dependencies.json @@ -2,7 +2,7 @@ { "groupId": "org.sonarsource.sonarlint.ls", "artifactId": "sonarlint-language-server", - "version": "3.13.1.75732", + "version": "3.13.1.75733", "output": "server/sonarlint-ls.jar" }, { diff --git a/src/fileSystem/fileSystemServiceImpl.ts b/src/fileSystem/fileSystemServiceImpl.ts index 7252f1055..67f31dbd3 100644 --- a/src/fileSystem/fileSystemServiceImpl.ts +++ b/src/fileSystem/fileSystemServiceImpl.ts @@ -15,6 +15,7 @@ import { FileSystemSubscriber } from './fileSystemSubscriber'; export class FileSystemServiceImpl implements FileSystemService { private static _instance: FileSystemServiceImpl; + // .sonarlint folder is handled separately; We are not interested in other folders; private static readonly EXCLUDED_FOLDER_NAMES : string[] = ['.sonarlint', '.git', 'node_modules', '.DS_Store'] listeners= []; @@ -44,7 +45,6 @@ export class FileSystemServiceImpl implements FileSystemService { // Call the listeners; Only pass Uri of configScope, not child directories this.listeners.forEach(listener => listener.onFile(configScopeUri.toString(), name, fullFileUri)); } - // .sonarlint folder is already handled separately, skipping it in recursive crawl if (type === vscode.FileType.Directory && !FileSystemServiceImpl.EXCLUDED_FOLDER_NAMES.includes(name)) { await this.listFilesRecursively(configScopeUri, fullFileUri); }