@cInclude
does not complete C functions when build.zig
is in a subdirectory
#146
Labels
lsp
Issue with language server integration
When
build.zig
is in a subdirectory, the included C functions are not completed.Example directory structure:
In build.zig, add
test.h is
In main.zig, add
Then, the C function (here
some_func
) is not completed followingc.
.The following content is output to the Zig Language Server output of VS Code.
I tried changing the
zig.buildFilePath
option of the extension to${workspaceFolder}/build/build.zig
, but it had no effect.Everything works fine when I put
build.zig
in the root directory of the workspace.Version info:
OS: Windows 11
Zig: 0.11.0
Zls: 0.11.0
The text was updated successfully, but these errors were encountered: