We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 271eec9 commit 096d8f8Copy full SHA for 096d8f8
lua/flutter-tools/lsp/init.lua
@@ -181,6 +181,8 @@ end
181
182
--- Checks if buffer path is valid for attaching LSP
183
local function is_valid_path(buffer_path)
184
+ if buffer_path == "" then return false end
185
+
186
local start_index, _, uri_prefix = buffer_path:find("^(%w+://).*")
187
-- Do not attach LSP if file URI prefix is not file.
188
-- For example LSP will not be attached for diffview:// or fugitive:// buffers.
0 commit comments