Skip to content

Commit

Permalink
remove un-needed realpath call in LSP provider
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrav committed May 30, 2024
1 parent 49d9934 commit 9c16ec5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/language-service/src/lib/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1455,13 +1455,11 @@ export function getRefs(
return [];
}

const stylesheets: string[] = fs
.findFilesSync(stylable.projectRoot, {
filterFile: (fileDesc: IFileSystemDescriptor) => {
return fileDesc.name.endsWith('.st.css');
},
})
.map((stylesheetPath) => fs.realpathSync.native(stylesheetPath));
const stylesheets: string[] = fs.findFilesSync(stylable.projectRoot, {
filterFile: (fileDesc: IFileSystemDescriptor) => {
return fileDesc.name.endsWith('.st.css');
},
});

return newFindRefs(symb.word, symb.meta, callingMeta, stylesheets, stylable, position);
}
Expand Down

0 comments on commit 9c16ec5

Please sign in to comment.