Can't open tab with new file using `:new {file}`
Open
Nobody has claimed this yet.
area/commandline
kind/enhancement
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Describe the bug
When using :new command the new tab opens an Untitled
To Reproduce
Let's say we are in a folder with two files, selecting one of them just type :new otherfilename
Expected behavior
Open the requested tab
Screenshots(GIF)

Environment:
{
"messages": [],
"activationTimes": {
"codeLoadingTime": 25,
"activateCallTime": 1,
"activateResolvedTime": 2,
"activationReason": {
"startup": true,
"extensionId": {
"value": "vscodevim.vim",
"_lower": "vscodevim.vim"
},
"activationEvent": "*"
}
},
"runtimeErrors": []
}
- Extension Version:
1.17.2 - OS Version:
Windows_NT x64 10.0.19042 - VSCode version:
1.51.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in VS Code by opening a folder with two files and running :new otherfilename from the extension. Trace the handling of the :new command and verify that the requested file opens in the new tab instead of an Untitled tab.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100