ManuelGil / vscode-nestjs-generator

Generate NestJS files from the command palette or explorer context menu (right click). It also provides a terminal to start the server in different modes (dev, debug, prod). It is based on the NestJS CLI.
https://marketplace.visualstudio.com/items?itemName=imgildev.vscode-nestjs-generator
MIT License
3 stars 1 forks source link

Can't edit files permission denied. #3

Open dmiric opened 2 months ago

dmiric commented 2 months ago

When I generate a file with extension I can't edit or delete it.

OS: Windows

ManuelGil commented 2 months ago

Hi,

I have performed several tests locally and I have not been able to replicate the failure you mention.

dmiric commented 2 months ago

All I did was install the plugin and generated a class. I had to start vscode as admin in order to delete it.

On Sun, 14 Jul 2024, 23:07 Manuel Gil @imgildev, @.***> wrote:

Hi,

I have performed several tests locally and I have not been able to replicate the failure you mention.

— Reply to this email directly, view it on GitHub https://github.com/ManuelGil/vscode-nestjs-generator/issues/3#issuecomment-2227482908, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIS56G43JX6MWQGTIQPAG3ZMLSCRAVCNFSM6AAAAABK27MSUKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRXGQ4DEOJQHA . You are receiving this because you authored the thread.Message ID: @.***>

ManuelGil commented 2 months ago

The function used to create and write the contents of a file checks the write permissions. In case of not having the permissions, an error will be displayed. You can see this in the code.

I would recommend you to try with another extension like NestJS Files to check if this also happens with another extension. If so, we would be talking about compatibility with VSCode, or failing that, with Windows.

I wouldn't really want to get to the Windows support stay as the support process I am providing is free and only covers the scope of the extension.