gf empties target file
See original GitHub issueBUG REPORT
What happened: Use gf
and it seems to delete the file and create a new file on top every time.
What did you expect to happen: I would go to the file if it exists and if it doesn’t create the file.
How to reproduce it (as minimally and precisely as possible):
Create two files:
somefile.js
import hi from './hello'
and in hello.js
place any content.
hover over “hello” and type “gf”. It will empty the contents of hello.js.
- Extension (VsCodeVim) version: 0.11.0
- VSCode version: 1.20.1 & 1.21-insiders
- OS version: OSX High Sierra
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Empty Targets (GNU make)
The purpose of the empty target file is to record, with its last-modification time, when the rule's recipe was last executed. It does...
Read more >How to skip target from getting updated in Makefile
If there is an update in dependencies (time stamp), the target should be updated. But at any case (though dependency does not exist),...
Read more >No target provided, or empty target list · Issue #31 - GitHub
I'm following the procedure and my scans keep failing with "No target provided, or empty target list" error. Repro steps (on kali linux): ......
Read more >When to use target="_blank" | CSS-Tricks
Anchor links1 may have a target attribute which controls what happens when that link is clicked. One of the possible values of that ......
Read more >Restoring Specific Files and Folders - User Guide for VMware ...
When you restore specific files, you can extract file versions not only from the backup repository, but also from the archive repository. For ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ack, it’s a regression from https://github.com/VSCodeVim/Vim/pull/2392/. Re-reading the code, there’s a case where we overwrite the file 😦
❤️ Thank you!