Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lua/flutter-tools/runners/debugger_runner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ local function handle_inspect_event(isolate_id)

if location and location.file and location.line then
local file = location.file:gsub("^file://", "")
if vim.loop.os_uname().sysname == "Windows_NT" then
-- On Windows, the file URI may start with an extra slash
file = file:gsub("^/", "")
end
vim.schedule(function()
vim.cmd("edit " .. vim.fn.fnameescape(file))
vim.api.nvim_win_set_cursor(0, { location.line, (location.column or 1) - 1 })
Expand Down