Skip to content

Commit 1860db1

Browse files
committed
DAP: launch should be localfs == true
`launch` invokes a debuggee process on the same file system so we can assume `localfs == true`. fix ruby/vscode-rdbg#82
1 parent 4b012f5 commit 1860db1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/debug/server_dap.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ def process
279279
## boot/configuration
280280
when 'launch'
281281
send_response req
282-
UI_DAP.local_fs_map_set req.dig('arguments', 'localfs') || req.dig('arguments', 'localfsMap')
282+
# `launch` runs on debuggee on the same file system
283+
UI_DAP.local_fs_map_set req.dig('arguments', 'localfs') || req.dig('arguments', 'localfsMap') || true
283284
@nonstop = true
284285

285286
when 'attach'

0 commit comments

Comments
 (0)