Skip to content

Commit 67217db

Browse files
committed
fix reindex
1 parent 0bf0fa2 commit 67217db

File tree

1 file changed

+8
-0
lines changed
  • crates/emmylua_code_analysis/src

1 file changed

+8
-0
lines changed

crates/emmylua_code_analysis/src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,14 @@ impl EmmyLuaAnalysis {
241241
// 获取所有当前在VFS中的文件
242242
let vfs = self.compilation.get_db().get_vfs();
243243
for file_id in vfs.get_all_file_ids() {
244+
if self
245+
.compilation
246+
.get_db()
247+
.get_module_index()
248+
.is_std(&file_id)
249+
{
250+
continue;
251+
}
244252
if let Some(path) = vfs.get_file_path(&file_id) {
245253
if !path.exists() {
246254
if let Some(uri) = file_path_to_uri(path) {

0 commit comments

Comments
 (0)