vscode-elixir-ls icon indicating copy to clipboard operation
vscode-elixir-ls copied to clipboard

.elixir_ls folder in project

Open jhaddow opened this issue 8 years ago • 4 comments

Is the .elixir_ls folder needed in the project? Can it be saved somewhere else? I don't want those files tracked by git, and it'd be nice if I can avoid having to put the folder in .gitignore

jhaddow avatar Jan 10 '18 23:01 jhaddow

I would suggest adding it to your git exclude file (found at .git/info/exclude). It works exactly like .gitignore except it's not itself tracked in your git repo, so you can use it for whichever things you don't want to track but are really only specific to you.

If you don't want to mess with it manually, there are extensions for adding things to exclude from the file context menu, such as: jcmordan.mark-as-excluded. I use boukichi.git-exclude which has a command that lets you open the exclude file.

GoNZooo avatar Jan 22 '18 19:01 GoNZooo

The folder is needed by the incremental Dialyzer.

I kept forgetting to add it to .gitignore and I've been bitten by node_modules not being in some standard .gitignore files so I just added it to my global git config, which works great.

So in my global ~/.gitconfig I have:

[core]
    excludesfile = /Users/tepple/.gitignore.global

My .gitignore.global file is formatted like a normal .gitignore file, so I have entries like so:

.DS_Store
node_modules/
.elixir_ls/

tmepple avatar Jan 22 '18 20:01 tmepple

These are both great suggestions. Thanks!

jhaddow avatar Jan 22 '18 21:01 jhaddow

My recommendation is to add .elixir_ls to your global gitignore file. It's pretty common for IDEs to save config data to your project directory -- VS Code has .vscode, IDEA has .idea, etc, and this is the usual solution.

JakeBecker avatar Jan 24 '18 21:01 JakeBecker