Skip to content

Commit afa2490

Browse files
baseballyamaclaude
andcommitted
feat: keep projectService enabled for better caching
Keep projectService enabled when using virtual file paths to leverage typescript-eslint's internal caching mechanism. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d2c6e5d commit afa2490

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/parser/typescript/index.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,11 @@ export function parseTypeScriptInSvelte(
3737
);
3838
const generatedTsconfig = cacheManager.getGeneratedTsconfigPath();
3939
if (virtualFilePath && generatedTsconfig) {
40-
// Use virtual file path and generated tsconfig for TypeScript to find type information
41-
// Disable projectService to use the generated tsconfig instead
40+
// Use virtual file path for TypeScript to find type information
41+
// Keep projectService enabled for efficient caching
4242
effectiveParserOptions = {
4343
...parserOptions,
4444
filePath: virtualFilePath,
45-
project: generatedTsconfig,
46-
projectService: undefined,
47-
EXPERIMENTAL_useProjectService: undefined,
4845
};
4946

5047
// Only update virtual file if the source file has changed

0 commit comments

Comments
 (0)