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
fdab3eae
Commit
fdab3eae
authored
3 years ago
by
最萌小汐
Browse files
Options
Downloads
Patches
Plain Diff
resolve #645 only search first file by `require`
parent
95ea1633
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
changelog.md
+1
-0
1 addition, 0 deletions
changelog.md
script/core/searcher.lua
+1
-0
1 addition, 0 deletions
script/core/searcher.lua
test/crossfile/definition.lua
+14
-8
14 additions, 8 deletions
test/crossfile/definition.lua
with
16 additions
and
8 deletions
changelog.md
+
1
−
0
View file @
fdab3eae
...
...
@@ -9,6 +9,7 @@
*
`CHG`
hover: improve showing multi defines
*
`CHG`
hover: improve showing multi comments at enums
*
`CHG`
hint:
`Lua.hint.paramName`
now supports
`Disable`
,
`Literal`
and
`All`
*
`CHG`
only search first file by
`require`
*
`CHG`
no longer ignore file names case in Windows
*
`CHG`
watching library changes
*
`FIX`
runtime errors
...
...
This diff is collapsed.
Click to expand it.
script/core/searcher.lua
+
1
−
0
View file @
fdab3eae
...
...
@@ -753,6 +753,7 @@ function m.searchRefsByID(status, suri, expect, mode)
local
ruri
=
uris
[
i
]
if
uri
~=
ruri
then
searchID
(
ruri
,
'mainreturn'
,
field
,
uri
)
break
end
end
end
...
...
This diff is collapsed.
Click to expand it.
test/crossfile/definition.lua
+
14
−
8
View file @
fdab3eae
...
...
@@ -834,18 +834,24 @@ TEST {
{
path = '
a
.
lua
',
content = [[
---@type Class
local m
m.<!xx!> = 1
]]
return {
<!x!> = 1,
}
]],
},
{
path = '
f
/
a
.
lua
',
content = [[
return {
x = 1,
}
]]
},
{
path = '
b
.
lua
',
content = [[
---@class Class
local m
print(m.<?xx?>)
local t = require '
a
'
print(t.<?x?>)
]]
}
}
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