From f24fcc2b1e503ee5043bce8a57b182dbfad4f135 Mon Sep 17 00:00:00 2001 From: Lee Cannon Date: Thu, 23 Mar 2023 17:28:42 +0000 Subject: [PATCH] disable cimport resolution (#1091) --- src/DocumentStore.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/DocumentStore.zig b/src/DocumentStore.zig index 2de9817..ee90de1 100644 --- a/src/DocumentStore.zig +++ b/src/DocumentStore.zig @@ -955,6 +955,10 @@ pub fn resolveCImport(self: *DocumentStore, handle: Handle, node: Ast.Node.Index if (!std.process.can_spawn) return null; + // FIXME: Re-enable cimport resolution once https://github.com/ziglang/zig/issues/15025 is resolved + // Tracking issue: https://github.com/zigtools/zls/issues/1080 + if (true) return null; + const index = std.mem.indexOfScalar(Ast.Node.Index, handle.cimports.items(.node), node) orelse return null; const hash: Hash = handle.cimports.items(.hash)[index];