Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default defineConfig([globalIgnores([
"test-temp",
"vscode*.d.ts",
]), {
files: ["src/**"],
files: ["src/**/*.ts"],

plugins: {
"@typescript-eslint": tseslint.plugin,
Expand Down
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
Loading