Skip to content

Commit

Permalink
chore: fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
KazariEX committed Mar 1, 2025
1 parent b003625 commit 0f1af8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/typescript-plugin/lib/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,12 @@ function getDefinitionAndBoundSpan(
return (fileName, position) => {
const result = getDefinitionAndBoundSpan(fileName, position);
if (!result?.definitions?.length) {
return;
return result;
}

const program = languageService.getProgram()!;
const definitions = new Set<ts.DefinitionInfo>(result.definitions);
const skipedDefinitions: ts.DefinitionInfo[] = [];
const skippedDefinitions: ts.DefinitionInfo[] = [];

for (const definition of result.definitions) {
if (!definition.fileName.endsWith('.ts')) {
Expand All @@ -176,7 +176,7 @@ function getDefinitionAndBoundSpan(
visit(sourceFile, definition, sourceFile);
}

for (const definition of skipedDefinitions) {
for (const definition of skippedDefinitions) {
definitions.delete(definition);
}

Expand Down Expand Up @@ -224,7 +224,7 @@ function getDefinitionAndBoundSpan(
for (const definition of res.definitions) {
definitions.add(definition);
}
skipedDefinitions.push(originalDefinition);
skippedDefinitions.push(originalDefinition);
}
}
}
Expand Down

0 comments on commit 0f1af8c

Please sign in to comment.