File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 32
32
"stopOnEntry" : true ,
33
33
"address" : " 127.0.0.1:11427" ,
34
34
"outputCapture" : [
35
+ ],
36
+ "sourceMaps" : [
37
+ [
38
+ " ./*" ,
39
+ " ${workspaceFolder}/*"
40
+ ]
35
41
]
36
42
},
37
43
]
Original file line number Diff line number Diff line change 32
32
local currentPath = debug.getinfo (1 , ' S' ).source :sub (2 )
33
33
local fs = require ' bee.filesystem'
34
34
local rootPath = fs .path (currentPath ):remove_filename ():string ()
35
- if dll == ' . dll' then
35
+ if dll == ' dll' then
36
36
rootPath = rootPath :gsub (' /' , ' \\ ' )
37
37
package.path = rootPath .. script .. ' \\ ?.lua'
38
38
.. ' ;' .. rootPath .. script .. ' \\ ?\\ init.lua'
@@ -50,7 +50,8 @@ package.searchers[2] = function (name)
50
50
local f = io.open (filename )
51
51
local buf = f :read ' *a'
52
52
f :close ()
53
- local init , err = load (buf , ' @' .. name )
53
+ local relative = filename :sub (# rootPath + 1 )
54
+ local init , err = load (buf , ' @' .. relative )
54
55
if not init then
55
56
return err
56
57
end
You can’t perform that action at this time.
0 commit comments