We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96b3767 commit 5644bd1Copy full SHA for 5644bd1
1 file changed
lua/java-core/ls/servers/jdtls/init.lua
@@ -104,6 +104,15 @@ function M.get_root_finder(root_markers)
104
if root then
105
log.debug('root of ' .. file_name .. ' is ' .. root)
106
return root
107
+ else
108
+ local fallback_dir = vim.fn.getcwd()
109
+ log.debug(
110
+ "couldn't find root of "
111
+ .. file_name
112
+ .. ' using fallback dir '
113
+ .. fallback_dir
114
+ )
115
+ return fallback_dir
116
end
117
118
0 commit comments