disable cimport resolution (#1091)

This commit is contained in:
Lee Cannon 2023-03-23 17:28:42 +00:00 committed by GitHub
parent 1e733a8782
commit f24fcc2b1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -955,6 +955,10 @@ pub fn resolveCImport(self: *DocumentStore, handle: Handle, node: Ast.Node.Index
if (!std.process.can_spawn) return null; 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 index = std.mem.indexOfScalar(Ast.Node.Index, handle.cimports.items(.node), node) orelse return null;
const hash: Hash = handle.cimports.items(.hash)[index]; const hash: Hash = handle.cimports.items(.hash)[index];