From 27f5552d2e2f8a2d037d590afc273a3b0ecc16c6 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 27 Nov 2026 16:17:24 -0500 Subject: [PATCH] Fix eslint configuration - Fix the configuration according to uiradev's comments [here](https://github.com/redhat-developer/vscode-java/pull/4581#issue-6636158536) - Address linting errors now that the configuration works Signed-off-by: David Thompson --- eslint.config.mjs | 2 +- src/extension.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 7eaef9353..a7823958b 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -24,7 +24,7 @@ export default defineConfig([globalIgnores([ "test-temp", "vscode*.d.ts", ]), { - files: ["src/**"], + files: ["src/**/*.ts"], plugins: { "@typescript-eslint": tseslint.plugin, diff --git a/src/extension.ts b/src/extension.ts index 67d9e0207..2445a02e5 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -1421,10 +1421,10 @@ export function escapeSnippetLiterals(value: string): string { * when it is made in a document other than the active one. * Any command the action already has is passed along and run first. */ -function addRevealCommand(client: LanguageClient, codeAction: CodeAction, lspEdit: { documentChanges?: any[], changes?: { [uri: string]: any[] } } | undefined): CodeAction { +function addRevealCommand(client: LanguageClient, codeAction: CodeAction, lspEdit: { documentChanges?: any[]; changes?: { [uri: string]: any[] } } | undefined): CodeAction { if (lspEdit && codeAction.command?.command !== Commands.REVEAL_EDIT) { // Taken from the raw edit because WorkspaceEdit.entries() doesn't include snippet edits - let target: { uri: string, range: any } | undefined; + let target: { uri: string; range: any } | undefined; for (const docChange of lspEdit.documentChanges ?? []) { if ("textDocument" in docChange && docChange.edits.length > 0) { target = { uri: docChange.textDocument.uri, range: docChange.edits[0].range };