clangd / vscode-clangd

Visual Studio Code extension for clangd
https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd
MIT License
631 stars 110 forks source link

multiple windows sdk installed will be confusion in parsing header files #476

Open heheda123123 opened 1 year ago

heheda123123 commented 1 year ago

The vscode.cpptools can specify windowsSdkVersion, but vscode-clangd can't specify windows sdk version. image

When I use vscode.clangd, multiple windows sdk are installed at the same time, there will be confusion in parsing header files. IPYCCQUX72(A9 3 ( 5KV67

If I only keep one Windows SDK, there will be no errors, indicating that the problem is caused by the inability of clangd to handle it correctly when installing multiple Windows SDKs at the same time. If vscode clangd can specify which version of Windows SDK to use as vscode.cpptools, it should be able to solve this problem

heheda123123 commented 1 year ago

some other editor also support specify windows sdk version https://www.ed-x.cc/ the ed-x editor also use clangd as backend. image