[VSCode extension] Don't create "lock files" in the user's project folders
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 15
### What happened
NetBeans creates files named `.LCK~` in my project folders. I don't know the purpose of those lock files, but I doubt VS Code or other tools will recognize/respect those lock files. And if this is solely for NetBeans' internals, I'd expect it to create those lock files in its own private extension storage somewhere, not in my project folders.
### How to reproduce
Opening a `pom.xml` file should be sufficient to get an accompanying `.LCKpom.xml~` to appear.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Windows 11
### JDK
openjdk 20-ea+22-1594 from https://jdk.java.net/20/
### Apache NetBeans packaging
Apache VSNetBeans for VSCode
### Anything else
Previously reported as [NETBEANS-5402](https://issues.apache.org/jira/browse/NETBEANS-5402)
FWIW, a quick search reveals that the code related to lock files is in the package [`org.netbeans.modules.masterfs.filebasedfs.fileobjects`](https://github.com/apache/netbeans/blob/master/platform/masterfs/src/org/netbeans/modules/masterfs/filebasedfs/fileobjects/).

### Are you willing to submit a pull request?
Yes
### Code of Conduct
Yes
Contributor guide
Assessment
This issue has not been assessed yet.