clangd / vscode-clangd

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

A bug about the "Show Code Actions" #614

Closed BrikeX closed 1 month ago

BrikeX commented 2 months ago

A blue lightbulb appears when clangd detects an issue and a preferred quick fix is available. But the blue bulb won't go away after the issue is fixed.

System information Clangd version : 17.0.3 clangd extension version: 0.1.28 Operating system: Linux Mint 21.3 VS Code: March 2024 (version 1.88)

BrikeX commented 2 months ago

Screenshot from 2024-04-07 01-32-20 Screenshot from 2024-04-07 01-32-33

HighCommander4 commented 2 months ago

I can't reproduce this, but based on the symptoms it seems more likely to be an issue with the editor (vscode) itself rather than the vscode-clangd plugin.

emrekovanci commented 2 months ago

I'm having the same problem too.

System information: Clangd version : 18.1.2 clangd extension version: 0.1.28 Operating system: Windows 11 Pro(Version: 23H2, OS build: 22631.3527) VS Code: 1.88.1

How to reproduce:

Example: Main.cpp

#include <iostream>

int main()
{

    return 0;
}

1: Add std::vector<int> v; above return 0; image

2: Move the cursor: image

3: Use quick actions shortcut(CTRL + .) image

4: Press enter then, image

image

Another note: If i click on the lightbuld on step 3 instead of using the shortcut, there seems to be no problem.

BrikeX commented 2 months ago

@emrekovanci This bug is reported at here: https://github.com/microsoft/vscode/issues/209762

emrekovanci commented 2 months ago

Thanks for the info. I added the minimal steps to reproduce; maybe it will help.