Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lua-language-server-srb2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LJ Sonic
lua-language-server-srb2
Commits
1dbf4ed2
Commit
1dbf4ed2
authored
4 years ago
by
最萌小汐
Browse files
Options
Downloads
Patches
Plain Diff
#462 supports debugger attach
parent
2e78c013
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.vscode/launch.json
+6
-0
6 additions, 0 deletions
.vscode/launch.json
platform.lua
+3
-2
3 additions, 2 deletions
platform.lua
with
9 additions
and
2 deletions
.vscode/launch.json
+
6
−
0
View file @
1dbf4ed2
...
...
@@ -32,6 +32,12 @@
"stopOnEntry"
:
true
,
"address"
:
"127.0.0.1:11427"
,
"outputCapture"
:
[
],
"sourceMaps"
:
[
[
"./*"
,
"${workspaceFolder}/*"
]
]
},
]
...
...
This diff is collapsed.
Click to expand it.
platform.lua
+
3
−
2
View file @
1dbf4ed2
...
...
@@ -32,7 +32,7 @@ end
local
currentPath
=
debug.getinfo
(
1
,
'S'
).
source
:
sub
(
2
)
local
fs
=
require
'bee.filesystem'
local
rootPath
=
fs
.
path
(
currentPath
):
remove_filename
():
string
()
if
dll
==
'
.
dll'
then
if
dll
==
'dll'
then
rootPath
=
rootPath
:
gsub
(
'/'
,
'\\'
)
package.path
=
rootPath
..
script
..
'
\\
?.lua'
..
';'
..
rootPath
..
script
..
'
\\
?\\init.lua'
...
...
@@ -50,7 +50,8 @@ package.searchers[2] = function (name)
local
f
=
io.open
(
filename
)
local
buf
=
f
:
read
'*a'
f
:
close
()
local
init
,
err
=
load
(
buf
,
'@'
..
name
)
local
relative
=
filename
:
sub
(
#
rootPath
+
1
)
local
init
,
err
=
load
(
buf
,
'@'
..
relative
)
if
not
init
then
return
err
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment