Skip to content

Commit 04f5cc2

Browse files
Update src/services/codefixes/importFixes.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e52bfc4 commit 04f5cc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/services/codefixes/importFixes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@ function getNewImportFixes(
12771277
return undefined;
12781278
}
12791279
if (!importedSymbolHasValueMeaning && usagePosition !== undefined) {
1280-
const scriptKind = 'scriptKind' in sourceFile
1280+
const scriptKind = isFullSourceFile(sourceFile)
12811281
? sourceFile.scriptKind
12821282
: host.getScriptKind?.(sourceFile.fileName);
12831283
const isJs = scriptKind !== undefined

0 commit comments

Comments
 (0)