microsoft / microsoft/vscode-cpptools

Improve "Add configuration" behavior when not using the language service's "Build and debug active file"

Open
#8,169 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

debugger
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Bug type: Language Service

Describe the bug

  • OS and Version: Windows 11
  • VS Code Version: 1.60.1
  • C/C++ Extension Version: 1.6.0

If launch.json already exists and customers add a new configuration, the "program" and "MIDebuggerPath" properties are not automatically set:

image

image

When selecting a configuration for the first time, however, the configurations are "smarter"-- everything is automatically filled in and the customer shouldn't need to edit the properties/values. I believe these are coming from the cpptools Task Provider?

image

image

Can we always use the "smarter" configurations?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce this in VS Code on Windows with an existing launch.json, then add a new configuration and compare it with the first-time configuration flow. Trace the C/C++ extension's configuration and task-provider entry points to determine why program and MIDebuggerPath are omitted. Done means both properties are populated automatically in the added configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.