Skip to content

[Feature Request]: Automatic "clangd: Restart language server" after build when using ESP-Clang (VSC-1787) #1702

@littleboot

Description

@littleboot

I'm using vscode ESP IDF with clangd.
There is one problem though after each build I have to manually restart the cland language server because it is shows errors / warnings, which is tedious.
I do this by running the command: clangd: Restart language server which fixes the include / other errors.

Proposed solution:
include automatic restart of clangd server after build command when the idf project is configured with clangd.

Reproduce:
open example idf project hello-world;
Configure for use with ESP-Clang (ESP-IDF: Configure project for ESP-Clang);
Notice errors / warnings about missing includes;
Restart Clangd server to fix the errors / warnings (clangd: Restart language server)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions