Skip to content

feat: support client-provided header files in language server#48

Open
tequdev wants to merge 1 commit intoXahau:masterfrom
tequdev:lsp-client-header-support
Open

feat: support client-provided header files in language server#48
tequdev wants to merge 1 commit intoXahau:masterfrom
tequdev:lsp-client-header-support

Conversation

@tequdev
Copy link
Copy Markdown
Member

@tequdev tequdev commented Mar 24, 2026

Each WebSocket connection now gets an isolated workspace under /tmp with dynamically generated compile_flags.txt and .clangd config, allowing clangd to resolve #include directives for both client-sent .h files and default hook headers.

  • Add per-connection workspace with LSP message interception
  • Generate compile_flags.txt with -I paths for workspace and hook headers
  • Generate .clangd config with AccessibleDirectories per workspace
  • Suppress verbose LSP trace logs with --log=error
  • Update docker/.clangd to allow /tmp and /app/clang/includes access

Each WebSocket connection now gets an isolated workspace
under /tmp with dynamically generated compile_flags.txt and .clangd
config, allowing clangd to resolve #include directives for both
client-sent .h files and default hook headers.

- Add per-connection workspace with LSP message interception
- Generate compile_flags.txt with -I paths for workspace and hook headers
- Generate .clangd config with AccessibleDirectories per workspace
- Suppress verbose LSP trace logs with --log=error
- Update docker/.clangd to allow /tmp and /app/clang/includes access
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant