Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setting 'editor.suggest.showSnippets'=false disables snippets in button "Add Configuration..." of launch.json #12059

Closed
godgnidoc opened this issue Mar 5, 2024 · 3 comments · Fixed by #12080
Assignees
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. quick fix tasks/build/debug An issue relating to tasks.json (e.g. build issues) verified Bug has been reproduced
Projects
Milestone

Comments

@godgnidoc
Copy link

Environment

  • OS and version: Ubuntu 22.04.4 LTS
  • VS Code: 1.87.0
  • C/C++ extension: v1.19.5
  • OS and version of remote machine (if applicable):
  • GDB / LLDB version: 12.1

Bug Summary and Steps to Reproduce

Bug Summary:

Since I set the setting editor.suggest.showSnippets=false, I cannot find following items in the hint box:

  • C/C++: (gdb) Attach
  • C/C++: (gdb) Launch
  • C/C++: (gdb) Pipe Attach
  • C/C++ (gdb) Pipe Launch

Steps to reproduce:

  1. Create a workspace with some cpp source file.
  2. Open one of them, hit the hot key f5 to try to start debug.
  3. There's no launch.json, follow the instruction to create one, and open the editor for it.
  4. Hit "Add Configuration..." button on the bottom right corner.
  5. Look for items listed above, none of then appears.

Debugger Configurations

not yet

Debugger Logs

not yet

Other Extensions

No response

Additional Information

No response

@sean-mcmanus sean-mcmanus self-assigned this Mar 8, 2024
@sean-mcmanus sean-mcmanus added tasks/build/debug An issue relating to tasks.json (e.g. build issues) verified Bug has been reproduced bug quick fix labels Mar 8, 2024
@sean-mcmanus sean-mcmanus added this to the 1.20 milestone Mar 8, 2024
@sean-mcmanus sean-mcmanus added this to Triage in 1.20 via automation Mar 8, 2024
@sean-mcmanus sean-mcmanus moved this from Triage to Pull Request in 1.20 Mar 8, 2024
@sean-mcmanus sean-mcmanus modified the milestones: 1.20, 1.20.0 Mar 8, 2024
@sean-mcmanus
Copy link
Collaborator

@godgnidoc We have a fix pending at #12080, but you can also work around this via using

    "editor.suggest.showSnippets": false,
    "[jsonc]": {
        "editor.suggest.showSnippets": true
    }

which will enable snippets for the launch.json file.

@godgnidoc
Copy link
Author

@sean-mcmanus

Such an amazing architecture, appreciate your bug fix and temporary solution.

1.20 automation moved this from Pull Request to Done Mar 11, 2024
@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label Mar 25, 2024
@sean-mcmanus
Copy link
Collaborator

@github-actions github-actions bot locked and limited conversation to collaborators Apr 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. quick fix tasks/build/debug An issue relating to tasks.json (e.g. build issues) verified Bug has been reproduced
Projects
No open projects
1.20
Done
Development

Successfully merging a pull request may close this issue.

2 participants