diff --git a/packages/language-service/src/lib/provider.ts b/packages/language-service/src/lib/provider.ts index 3f851b5ff..d82d89035 100644 --- a/packages/language-service/src/lib/provider.ts +++ b/packages/language-service/src/lib/provider.ts @@ -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); }