We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5947eca commit b5c43fdCopy full SHA for b5c43fd
src/DocumentStore.zig
@@ -1346,6 +1346,10 @@ fn createAndStoreDocument(
1346
};
1347
errdefer new_handle.deinit();
1348
1349
+ if (supports_build_system and isBuildFile(uri) and !isInStd(uri)) {
1350
+ _ = self.getOrLoadBuildFile(uri);
1351
+ }
1352
+
1353
self.lock.lock();
1354
defer self.lock.unlock();
1355
@@ -1375,10 +1379,6 @@ fn createAndStoreDocument(
1375
1379
gop.value_ptr.*.* = new_handle;
1376
1380
}
1377
1381
1378
- if (supports_build_system and isBuildFile(uri) and !isInStd(uri)) {
- _ = self.getOrLoadBuildFile(uri);
- }
-
1382
return gop.value_ptr.*;
1383
1384
0 commit comments