Skip to content

Commit 1787090

Browse files
committedNov 24, 2024
fix(devices): filter out unwanted device lines
1 parent e5a3998 commit 1787090

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎lua/flutter-tools/devices.lua

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ end
3131
---@param device_type number
3232
---@return Device?
3333
function M.parse(line, device_type)
34+
if line:find("Manufacturer") and line:find("Platform") then return end
35+
if line:find("crashdata") then return end
3436
local parts = vim.split(line, "")
3537
local is_emulator = device_type == EMULATOR
3638
local name_index = not is_emulator and 1 or 2

0 commit comments

Comments
 (0)
Failed to load comments.