Open hannesne opened 4 years ago
Hi @hannesne That's a great feedback! We will consider this in next major release as a breaking change. Before that, please define Azurite location in Visual Studio settings.
@XiaoningLiu can you enable the use of variables such as ${workspaceFolder} for the Azure: Location setting? Currently I have to hard code it absolutely for each workspace.
It's actually really weird that the default behaviour is to output in the current working directory, but then there's no easy way to append a path to it without hardcoding the full directory path.
My suggestion is to make it accept both absolute and relative paths. And yes, make the default to be .azurite
making the extension to put all files inside the current working directory / .azurite folder as suggested by the issue opener.
That's a valid ask and tracked on our radar. In the same time, feel free to send out PR which will speed up.
Two more things that should perhaps be addressed as part of this:
$TMPDIR/.azurite
on macOSThe feature request is also mentioned in https://github.com/Azure/Azurite/issues/962
I took a stab at pulling together a PR to address this, as it was bugging me to pollute my git working directory with so many files. Hopefully this is acceptable and can be merged soon, but certainly open to feedback.
Just chiming in. Love Azurite, but it's not pleasant how it pollutes the working directory. Would love it to align more closely with VS Code and drop it's files into a ./azurite
subfolder. Any movement on PR #1061 please?
That's a valid ask and tracked on our radar. In the same time, feel free to send out PR which will speed up.
@XiaoningLiu how do you mean a PR will speed it up if you just ignore it for 10 months? You asked for a PR, so how about you either accept it, or tell the author what needs to be changed?
Thanks for ping. Please refer to https://github.com/Azure/Azurite/pull/1061#issuecomment-1188852899
Which service(blob, file, queue, table) does this issue concern?
NA
Which version of the Azurite was used?
v3
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
NA
What's the Node.js version?
NA
What problem was encountered?
The default lcoaiton for azurite to create it's files is the current working directory when invoked from the vscode extension. This creates a bunch of files and folders, excessively polluting the workspace. It would be better to create a .azurite directory in the current directory and put all the required files in there. This folder can then be added to .gitignore and other ignore files. It is not convenient to have to set the location to a fixed directory to reference a subfolder in the current working directory.
Steps to reproduce the issue?
NA
Have you found a mitigation/solution?
NA