Skip to content

Commit 2492c1f

Browse files
committed
Merge branch 'master' into feature/auto-require-without-init
2 parents d848fda + 6999dbb commit 2492c1f

File tree

886 files changed

+625677
-17067
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

886 files changed

+625677
-17067
lines changed
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
name: Bug Report
2+
description: Report a bug with the lua-language-server
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: >
7+
**Please check for similar issues before continuing!**
8+
- type: dropdown
9+
id: client
10+
attributes:
11+
label: How are you using the lua-language-server?
12+
options:
13+
- Visual Studio Code Extension (sumneko.lua)
14+
- NeoVim
15+
- Kakoune
16+
- Command Line
17+
- Other
18+
validations:
19+
required: true
20+
- type: dropdown
21+
id: OS
22+
attributes:
23+
label: Which OS are you using?
24+
options:
25+
- Windows
26+
- Linux
27+
- MacOS
28+
- Windows WSL
29+
- Other
30+
validations:
31+
required: true
32+
- type: dropdown
33+
id: type
34+
attributes:
35+
label: What is the issue affecting?
36+
description: Please select all of the areas affected by this issue.
37+
multiple: true
38+
options:
39+
- Annotations
40+
- Type Checking
41+
- Completion
42+
- Diagnostics/Syntax Checking
43+
- Hover
44+
- Libraries
45+
- Formatting
46+
- Spell Checking
47+
- Plugins
48+
- Other
49+
validations:
50+
required: true
51+
- type: textarea
52+
id: expected
53+
attributes:
54+
label: Expected Behaviour
55+
description: What is the expected behaviour?
56+
validations:
57+
required: true
58+
- type: textarea
59+
id: actual
60+
attributes:
61+
label: Actual Behaviour
62+
description: What is actually happening that is an error?
63+
validations:
64+
required: true
65+
- type: textarea
66+
id: reproduction
67+
attributes:
68+
label: Reproduction steps
69+
description: >
70+
Please provide steps to reproduce the error. The more detail the better
71+
as it helps us fully understand the issue.
72+
value: |
73+
1. Go to '...'
74+
2. Click '...'
75+
3. See error '...'
76+
validations:
77+
required: true
78+
- type: textarea
79+
id: additional-notes
80+
attributes:
81+
label: Additional Notes
82+
description: >
83+
Please provide any additional notes, context,
84+
and media you have.
85+
- type: textarea
86+
id: log-file
87+
attributes:
88+
label: Log File
89+
description: >
90+
Please provide your log file. Refer to the wiki to find your log file:
91+
https://github.com/sumneko/lua-language-server/wiki/FAQ#where-can-i-find-the-log-file
92+
- type: markdown
93+
attributes:
94+
value: |
95+
Thank you very much for helping improve the language server! ❤️

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,4 @@
44
/meta/*
55
!/meta/template
66
!/meta/3rd
7-
/bin-Windows
8-
/bin-Linux
9-
/bin-macOS
10-
/bin
7+
/bin*

.luarc.json

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
"disable": [
44
"close-non-object"
55
],
6-
"neededFileStatus": {
7-
"undefined-field": "Any",
8-
"await-in-sync": "Any",
9-
"not-yieldable": "Any",
10-
"discard-returns": "Any",
11-
"redundant-parameter": "Any",
12-
"missing-parameter": "Any",
13-
"need-check-nil": "Any",
14-
"redundant-value": "Any",
15-
"deprecated": "Any"
6+
"groupFileStatus": {
7+
"ambiguity": "Any",
8+
"await": "Any",
9+
"duplicate": "Any",
10+
"global": "Any",
11+
"luadoc": "Any",
12+
"redefined": "Any",
13+
"strict": "Any",
14+
"type-check": "Any",
15+
"unbalanced": "Any",
16+
"unused": "Any"
1617
},
1718
"ignoredFiles": "Opened",
1819
"libraryFiles": "Opened"
@@ -23,23 +24,34 @@
2324
"script/?.lua",
2425
"script/?/init.lua",
2526
"test/?.lua",
26-
"test/?/init.lua"
27+
"test/?/init.lua",
28+
"script/meta/?.lua"
2729
],
2830
"pathStrict": true
2931
},
3032
"workspace": {
3133
"maxPreload": 1600,
3234
"preloadFileSize": 1000,
3335
"ignoreDir": [
34-
"locale/",
35-
"libs/",
36-
"3rd",
37-
".vscode",
38-
"meta"
36+
"/locale/",
37+
"/libs/",
38+
"/3rd",
39+
"/.vscode",
40+
"/meta"
3941
],
40-
"library": [
41-
"script/meta",
42-
"bin"
42+
"checkThirdParty": false
43+
},
44+
"typeFormat": {
45+
"config": {
46+
"format_line": "false"
47+
}
48+
},
49+
"type": {
50+
"castNumberToInteger": false
51+
},
52+
"doc": {
53+
"privateName": [
54+
"_*"
4355
]
4456
}
4557
}

.vscode/launch.json

Lines changed: 51 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"request": "launch",
99
"stopOnEntry": false,
1010
"program": "${workspaceRoot}/test.lua",
11-
"luaexe": "${workspaceFolder}/bin/lua-language-server.exe",
11+
"luaexe": "${workspaceFolder}/bin/lua-language-server",
1212
"cpath": null,
1313
"arg": [
1414
],
@@ -25,15 +25,27 @@
2525
"type": "lua",
2626
"request": "attach",
2727
"stopOnEntry": false,
28-
"address": "127.0.0.1:11413",
28+
"address": "127.0.0.1:11428",
2929
"outputCapture": [
3030
],
31+
"sourceFormat": "string",
3132
"sourceMaps": [
3233
[
33-
"./*",
34-
"${workspaceFolder}/*"
34+
"script/*",
35+
"${workspaceFolder}/script/*"
3536
]
36-
]
37+
],
38+
"windows": {
39+
"name": "🍄attach",
40+
"type": "lua",
41+
"request": "attach",
42+
"sourceMaps": [
43+
[
44+
"script\\*",
45+
"${workspaceFolder}/script/*"
46+
]
47+
],
48+
},
3749
},
3850
{
3951
"name": "🍉build-3rd-meta",
@@ -42,7 +54,7 @@
4254
"stopOnEntry": false,
4355
"luaexe": "${workspaceFolder}/bin/lua-language-server",
4456
"program": "${workspaceRoot}/tools/build-3rd-meta.lua",
45-
"cpath": "${workspaceFolder}/bin/?.dll",
57+
"cpath": "${workspaceFolder}/bin/?.dll;${workspaceFolder}/bin/?.so",
4658
"arg": [
4759
],
4860
"luaVersion": "latest",
@@ -53,32 +65,30 @@
5365
],
5466
},
5567
{
56-
"name": "🍖cli-check",
68+
"name": "📝locale",
5769
"type": "lua",
5870
"request": "launch",
5971
"stopOnEntry": false,
60-
"program": "${workspaceRoot}/main.lua",
61-
"luaexe": "${workspaceFolder}/bin/lua-language-server.exe",
62-
"cpath": null,
72+
"luaexe": "${workspaceFolder}/bin/lua-language-server",
73+
"program": "${workspaceRoot}/tools/locale.lua",
74+
"cpath": "${workspaceFolder}/bin/?.dll;${workspaceFolder}/bin/?.so",
6375
"arg": [
64-
"--check",
65-
"${workspaceRoot}",
6676
],
67-
"luaVersion": "5.4",
77+
"luaVersion": "latest",
6878
"sourceCoding": "utf8",
6979
"outputCapture": [
7080
"print",
7181
"stderr",
7282
],
7383
},
7484
{
75-
"name": "📝locale",
85+
"name": "🀄build-doc",
7686
"type": "lua",
7787
"request": "launch",
7888
"stopOnEntry": false,
7989
"luaexe": "${workspaceFolder}/bin/lua-language-server",
80-
"program": "${workspaceRoot}/tools/locale.lua",
81-
"cpath": "${workspaceFolder}/bin/?.dll",
90+
"program": "${workspaceRoot}/tools/build-doc.lua",
91+
"cpath": "${workspaceFolder}/bin/?.dll;${workspaceFolder}/bin/?.so",
8292
"arg": [
8393
],
8494
"luaVersion": "latest",
@@ -89,16 +99,37 @@
8999
],
90100
},
91101
{
92-
"name": "🀄build-doc",
102+
"name": "🍖cli-check",
93103
"type": "lua",
94104
"request": "launch",
95105
"stopOnEntry": false,
106+
"program": "${workspaceRoot}/main.lua",
96107
"luaexe": "${workspaceFolder}/bin/lua-language-server",
97-
"program": "${workspaceRoot}/tools/build-doc.lua",
98-
"cpath": "${workspaceFolder}/bin/?.dll",
108+
"cpath": null,
99109
"arg": [
110+
"--check",
111+
"${workspaceRoot}",
100112
],
101-
"luaVersion": "latest",
113+
"luaVersion": "5.4",
114+
"sourceCoding": "utf8",
115+
"outputCapture": [
116+
"print",
117+
"stderr",
118+
],
119+
},
120+
{
121+
"name": "🍤cli-doc",
122+
"type": "lua",
123+
"request": "launch",
124+
"stopOnEntry": false,
125+
"program": "${workspaceRoot}/main.lua",
126+
"luaexe": "${workspaceFolder}/bin/lua-language-server",
127+
"cpath": null,
128+
"arg": [
129+
"--doc",
130+
"${workspaceRoot}",
131+
],
132+
"luaVersion": "5.4",
102133
"sourceCoding": "utf8",
103134
"outputCapture": [
104135
"print",

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
"--develop=true",
66
"--dbgport=11413",
77
"--loglevel=trace",
8-
]
8+
//"--lazy",
9+
],
910
}

3rd/EmmyLuaCodeStyle

Submodule EmmyLuaCodeStyle updated 140 files

3rd/bee.lua

Submodule bee.lua updated 68 files

3rd/lovr-api

Submodule lovr-api updated 991 files

0 commit comments

Comments
 (0)