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 6223759 commit 728a96cCopy full SHA for 728a96c
lua/flutter-tools/lsp/init.lua
@@ -169,7 +169,8 @@ function M.get_project_root_dir()
169
local conf = require("flutter-tools.config")
170
local current_buffer_path = path.current_buffer_path()
171
local root_path = lsp_utils.is_valid_path(current_buffer_path)
172
- and path.find_root(conf.root_patterns, current_buffer_path)
+ and path.find_root(conf.root_patterns, current_buffer_path)
173
+ or nil
174
175
if root_path ~= nil then return root_path end
176
0 commit comments