Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonlyu123 committed Jan 4, 2024
1 parent 29d34db commit 0329297
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion packages/language-server/src/plugins/typescript/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ async function createLanguageService(
const inProgram = project
.getCurrentProgram()
?.getSourceFiles()
.some((sf: ts.SourceFile) => sf.fileName.includes(dir));
.some((file) => file.fileName.includes(dir));

if (inProgram) {
host.getModuleSpecifierCache?.().clear();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,4 @@ export function createProject(
}

return project;

function ensureTrailDirSeparator(path: string) {
return path.endsWith('/') ? path : path + '/';
}
}

0 comments on commit 0329297

Please sign in to comment.