emacs-lsp/lsp-java

test.java is not part of any project

Opened this issue · 0 comments

I'm new to emacs and I tried to setup lsp for java. The setup process seems to work well, but whenever I open any generic .java file I get a prompt:

test.java is not part of any project

i ==> Import project root /home/maksatr/Documents/
I ==> Import project by selecting root directory interactively
. ==> Import project at current directory /home/maksatr/Documents/
d ==> Do not ask again for the current project by adding /home/maksatr/Documents/ to lsp-session-folders-blocklist
D ==> Do not ask again for the current project by selecting ignore path interactively
n ==> Do nothing: ask again when opening other files from the current project

Select action:

is there a way to set it up so that it works with generic files as well and not only in huge projects?