Azure / Azure/bicep

File named `DUMMY` appears when accepting a code fix

Open
#17,037 1 comment 1 reaction 0 assignees View on GitHub
devdiv
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

1. Open a new file in VSCode (`Ctrl+N`). Do not save it.
2. Set the language to Bicep (`Ctrl+Shift+P` - Change Language Mode)
3. Enter the following:
```bicep
var test = {
foo: 'string' /* foo */
}
```
4. Put the cursor on `'string'`, and press `Ctrl+.`
5. Accept the "Extract variable" suggestion
6. DUMMY:
![Image](https://github.com/user-attachments/assets/5e09c5de-f75f-40bb-a73c-cfb1007b834e)

It's not very nice of VSCode to insult my intelligence 😢

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in a new unsaved VSCode file using Bicep, then trigger the Ctrl+. “Extract variable” suggestion on the shown expression. Trace the code-fix path responsible for the generated file name; done means accepting the fix no longer creates or displays a file named “DUMMY”.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.