Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1171 commits
Select commit Hold shift + click to select a range
6750ae6
update format 1.3.0
CppCXY Jul 31, 2023
328aa7f
Merge pull request #2241 from CppCXY/master
sumneko Jul 31, 2023
93dab3c
Merge pull request #2240 from carsakiller/os.time-fix
sumneko Jul 31, 2023
5fb08df
don't show constructor in hover
sumneko Aug 1, 2023
e98b56f
fix template
sumneko Aug 2, 2023
b96ab07
function may not have a name
sumneko Aug 3, 2023
91869bc
fix wrong hover and signature for method
sumneko Aug 9, 2023
b778d58
fix
sumneko Aug 9, 2023
c3c73ef
enable `as` table
sumneko Aug 10, 2023
6321117
support `@type` for `return`
sumneko Aug 10, 2023
e55c559
update format
CppCXY Aug 10, 2023
62357f2
fix order error
CppCXY Aug 10, 2023
3899160
chore: replace wiki references
carsakiller Aug 11, 2023
7269e52
chore: remove old intellisense documentation
carsakiller Aug 11, 2023
7be5216
Merge pull request #2256 from CppCXY/master
sumneko Aug 11, 2023
867de93
chore: link to diagnosis report wiki article
carsakiller Aug 11, 2023
dab3ea3
Merge pull request #2255 from carsakiller/wiki-migration
sumneko Aug 11, 2023
5a0804e
clean up tests
sumneko Aug 10, 2023
736e54a
clean up tests
sumneko Aug 10, 2023
6fe0ea8
cleanup tests
sumneko Aug 11, 2023
cd37022
cleanup tests
sumneko Aug 11, 2023
5e5a1b2
cleanup tests
sumneko Aug 11, 2023
f5fcab0
support `---@type` and `--[[@as]]` for return
sumneko Aug 11, 2023
90b95a0
local uses `nil` at least
sumneko Aug 11, 2023
ce2b607
check nil
sumneko Aug 11, 2023
ed35008
fix stack overflow
sumneko Aug 11, 2023
1055a85
commandline parameter `--force-accept-workspace`
sumneko Aug 11, 2023
525d095
stash
sumneko Aug 11, 2023
63edb99
new diag: `inject-field`
sumneko Aug 14, 2023
01a741f
also check `doc.type.table`
sumneko Aug 14, 2023
5ccedb1
check `doc.field`
sumneko Aug 14, 2023
f09aa41
fix warning
sumneko Aug 14, 2023
39bb791
Ignore cast-local-type diagnostic for `_` local
overhacked Aug 14, 2023
3d9995f
set min version for some math.* functions
flrgh Aug 14, 2023
7a47ada
Merge pull request #2263 from overhacked/ignore_cast-local-type_under…
sumneko Aug 15, 2023
fc57390
Merge pull request #2264 from flrgh/master
sumneko Aug 15, 2023
b53c18f
don't diagnose git uri
sumneko Aug 15, 2023
be5b77b
supports `---@enum (key)`
sumneko Aug 16, 2023
1cc261f
fix
sumneko Aug 21, 2023
a5c3b64
whimsical
sumneko Aug 22, 2023
cb16010
fix wrong `missing-fields` with union types
sumneko Aug 22, 2023
c2018e0
support `---@class (exact)`
sumneko Aug 23, 2023
6c93484
add guide
sumneko Aug 23, 2023
e16a7ab
Do not use off-spec value for end_of_line
gpanders Aug 23, 2023
9269032
修复基础库定义
sumneko Aug 24, 2023
d912dfc
3.7.0
sumneko Aug 24, 2023
010a803
fix wrong uri in test
sumneko Aug 24, 2023
b875d7d
Translate table injection diag and fix some issues
firas-assaad Aug 26, 2023
f796504
Merge pull request #2291 from firas-assaad/fix-inject-field-message
sumneko Aug 29, 2023
4ac49f6
update
sumneko Aug 30, 2023
2735bf2
update bee.lua
sumneko Aug 31, 2023
16b9ce9
fix #2299
sumneko Aug 31, 2023
a1af510
update whimsical
sumneko Sep 8, 2023
a641c26
add `__close` to `setmetatable`
sumneko Sep 20, 2023
3bbc55c
fix some bug, update options
CppCXY Sep 20, 2023
4e1d6bb
Merge branch 'master' of github.com:CppCXY/lua-language-server into HEAD
CppCXY Sep 20, 2023
00dc914
Merge pull request #2338 from CppCXY/master
sumneko Sep 20, 2023
18989b4
feat: support param snippets with space
lewis6991 Sep 25, 2023
f4548b5
Merge pull request #2346 from lewis6991/feat/snipspace
sumneko Sep 26, 2023
adde1d0
pause diagnostic in tests
sumneko Oct 7, 2023
dc683ea
update format for UTF8 latin-1
CppCXY Oct 8, 2023
b74ee5b
Merge pull request #2287 from gpanders/editorconfig-end-of-line
sumneko Oct 10, 2023
4ed5fdd
update utility
sumneko Oct 10, 2023
00ad081
Add `--check_out_path` CLI argument
9999years Oct 10, 2023
3a666c7
update launch.json
sumneko Oct 11, 2023
9f54935
update doc and locale
sumneko Oct 11, 2023
333d047
support `Lua Debug 2.0.0`
sumneko Oct 11, 2023
4819a7a
Merge pull request #2364 from 9999years/check-out-path
sumneko Oct 18, 2023
5f7b0a3
Make `workspace.checkThirdParty` a string enum
9999years Sep 30, 2023
3bbc8dd
Update `doc` and `locale`
9999years Oct 11, 2023
05f3094
fix type format
CppCXY Oct 19, 2023
e9de3d4
fix compile error
CppCXY Oct 19, 2023
13aebe5
Merge pull request #2354 from 9999years/dont-ask-third-party
sumneko Oct 19, 2023
ce96479
Merge pull request #2383 from CppCXY/master
sumneko Oct 19, 2023
2d4143c
update submodules
sumneko Oct 24, 2023
adf8d52
update socket mode
sumneko Oct 24, 2023
8ba8ea5
update bee.net
sumneko Oct 24, 2023
ed2df50
Revert "update submodules"
sumneko Oct 24, 2023
f458f8a
fix linux compile issue
CppCXY Oct 25, 2023
f350d6a
Merge pull request #2388 from CppCXY/master
sumneko Oct 25, 2023
f5a2105
update submodules
sumneko Oct 25, 2023
72d4ac2
update bee
sumneko Oct 25, 2023
178d625
update bee.net
sumneko Oct 25, 2023
d2f1984
refactor: replace openresty with LuaCATS submodule
carsakiller Oct 28, 2023
70f10b1
refactor: replace bee with LuaCATS submodule
carsakiller Oct 28, 2023
1536fa3
refactor: replace busted with LuaCATS submodule
carsakiller Oct 28, 2023
d288cd1
refactor: replace Cocos4.0 with LuaCATS submodule
carsakiller Oct 28, 2023
5c4de8b
refactor: replace Defold with LuaCATS submodule
carsakiller Oct 28, 2023
cf102e1
refactor: replace Jass with LuaCATS submodule
carsakiller Oct 28, 2023
ad1341b
refactor: replace lfs with LuaCATS submodule
carsakiller Oct 28, 2023
e2b951f
refactor: replace love2d with LuaCATS submodule
carsakiller Oct 28, 2023
0bd15a6
refactor: replace lovr with LuaCATS submodule
carsakiller Oct 28, 2023
1c94bfc
refactor: replace luaecs with LuaCATS submodule
carsakiller Oct 28, 2023
ea95262
refactor: replace luassert with LuaCATS submodule
carsakiller Oct 28, 2023
1ca29ac
refactor: replace skynet with LuaCATS submodule
carsakiller Oct 28, 2023
c8ff82b
refactor: replace ffi-reflect with LuaCATS submodule
carsakiller Oct 28, 2023
fb9253f
refactor: replace luv with LuaCATS submodule
carsakiller Oct 28, 2023
6af9400
Merge pull request #2237 from carsakiller/replace-meta-3rd-with-submo…
sumneko Oct 28, 2023
4088f56
Prefer https submodules (#2397)
gepbird Oct 30, 2023
5a763b0
3.7.1
sumneko Nov 7, 2023
13a24ee
Fix backwards compatability with `Lua.workspace.checkThirdParty`
9999years Nov 7, 2023
8e880ad
Merge pull request #2406 from 9999years/checkthirdparty-back-compat
sumneko Nov 8, 2023
7f6f395
Revert "Fix backwards compatability with `Lua.workspace.checkThirdPar…
9999years Nov 9, 2023
81607f4
Fix backwards compatability with `Lua.workspace.checkThirdParty`
9999years Nov 9, 2023
0e1b109
Merge pull request #2409 from 9999years/fix-back-compat-take-2
sumneko Nov 9, 2023
ee590a4
3.7.2
sumneko Nov 9, 2023
8c1669c
fix type infer in overload
sumneko Nov 14, 2023
3f943a6
update changelog
sumneko Nov 14, 2023
50dfc81
3.7.3
sumneko Nov 14, 2023
3511bfd
fix: `doc.type.function` resolve only existing arg.extends
Nov 23, 2023
8c4aca0
Merge pull request #2424 from d-enk/fix-sign-resolve-nil-extends
sumneko Nov 24, 2023
5a468a1
Add raw descriptions
NyakoFox Nov 25, 2023
2792f9a
Merge pull request #2430 from NyakoFox/rawdesc
sumneko Nov 27, 2023
bd89d29
Update format
CppCXY Nov 28, 2023
d04f784
Merge pull request #2431 from CppCXY/master
sumneko Nov 28, 2023
dab59d5
support c like comments
CppCXY Dec 11, 2023
7181a14
Merge pull request #2445 from CppCXY/master
sumneko Dec 11, 2023
83147e4
translated some options
KeilAwk Dec 23, 2023
f836d90
Merge pull request #2454 from Leafx-code/master
sumneko Dec 23, 2023
a67bb8d
bit meta: tohex returns a string
Bilal2453 Dec 26, 2023
449a151
Pad `return` type annotations when required.
Varriount Dec 30, 2023
6020a4f
`FIX` rename to unicode with `Lua.runtime.unicodeName = true`
sumneko Jan 5, 2024
34ff9d3
3.7.4
sumneko Jan 5, 2024
281ba5f
plugin: add OnTransformAst interface
fesily Jan 9, 2024
8f94bf9
cleanup
fesily Jan 9, 2024
94a1cef
cleanup
fesily Jan 9, 2024
9fd6f7e
Merge pull request #2459 from Bilal2453/patch-1
sumneko Jan 10, 2024
ded415e
Merge pull request #2464 from Varriount/patch-1
sumneko Jan 10, 2024
a07a979
update format 1.4.3
CppCXY Jan 10, 2024
cff4d48
Merge pull request #2472 from fesily/plugin-add-OnTransformAst
sumneko Jan 10, 2024
37779f9
Merge pull request #2473 from CppCXY/master
sumneko Jan 10, 2024
bb6e172
astHelper: addParamTypeDoc
fesily Jan 10, 2024
1e7bb72
Merge branch 'LuaLS:master' into plugin-add-OnTransformAst
fesily Jan 10, 2024
f15f707
cleanup
fesily Jan 10, 2024
47e534a
fix removeArg
fesily Jan 10, 2024
d023998
fix crash bug
fesily Jan 10, 2024
a11c392
fix error
fesily Jan 10, 2024
4432dfe
Merge pull request #2474 from fesily/plugin-add-OnTransformAst
sumneko Jan 10, 2024
10275c3
automatic derivation function param type
fesily Jan 16, 2024
259d21f
compileLocal add async
fesily Jan 16, 2024
1e51dd0
doc param support generic pattern
fesily Jan 17, 2024
669ff50
support multi plugins
fesily Jan 17, 2024
cfeac1c
fix error
fesily Jan 17, 2024
5f0cba4
plugin interface add OnNodeCompileFunctionParam
fesily Jan 17, 2024
d315c3a
add test
fesily Jan 17, 2024
856c27c
format
fesily Jan 17, 2024
a90d1d2
use func.parent.ref
fesily Jan 17, 2024
ef7157c
Merge pull request #2485 from fesily/support-multi-plugins
sumneko Jan 17, 2024
c6aee16
Merge branch 'LuaLS:master' into plugin-OnNodeCompileFunctionParam
fesily Jan 17, 2024
326a033
fix test
fesily Jan 17, 2024
34319c7
Merge pull request #2481 from fesily/automatic-derivation-function-pa…
sumneko Jan 17, 2024
dd49a6d
Merge branch 'master' into plugin-OnNodeCompileFunctionParam
fesily Jan 17, 2024
647971c
Merge branch 'master' into generic-pattern1
fesily Jan 17, 2024
21da40b
Never sematic virtual ast and comment
fesily Jan 18, 2024
06cad0c
Merge pull request #2488 from fesily/Never-sematic-virtual-ast-and-co…
sumneko Jan 18, 2024
56f62c6
fix guide.getParams
fesily Jan 18, 2024
82c004e
recode plugin interface
fesily Jan 19, 2024
155f831
remove unused
fesily Jan 20, 2024
ea3aed4
Merge pull request #2489 from fesily/fix-guide-getParams
sumneko Jan 23, 2024
0a962fc
Merge pull request #2486 from fesily/plugin-OnNodeCompileFunctionParam
sumneko Jan 24, 2024
d4f2a53
Add `table.move()` to LuaJIT compatibility
deathlyfrantic Jan 24, 2024
dcacfe7
Merge pull request #2497 from deathlyfrantic/patch-1
sumneko Jan 24, 2024
89edbfa
Revert "Merge pull request #2481 from fesily/automatic-derivation-fun…
sumneko Jan 24, 2024
b780666
fix warnings
sumneko Jan 24, 2024
b42352f
fix rename in library
sumneko Jan 24, 2024
9185dfa
update changelog
sumneko Jan 24, 2024
1a1e671
Add group param for luadoc generated by plugins
emmericp Jan 28, 2024
7f95e6f
support tuple type
lizho Jan 30, 2024
7503881
fix LSP crashes when parsing tuples
lizho Jan 30, 2024
05172fd
Add --visualize command that outputs the AST of a given file as graphviz
emmericp Jan 31, 2024
bb2f3fa
Merge pull request #2507 from emmericp/visualize-cmd
sumneko Feb 1, 2024
87b1a49
Merge pull request #2502 from emmericp/luadoc-groups
sumneko Feb 1, 2024
438f467
Create test.yml
actboy168 Feb 1, 2024
c438a3f
Update test.yml
actboy168 Feb 1, 2024
a89b343
Update test.yml
actboy168 Feb 1, 2024
c1c03ea
Added 'visible' key (public, protected, ...) in JSON output.
AndreasMatthias Feb 15, 2024
d52ffe3
Added 'desc' and 'rawdesc' keys for variables in JSON output.
AndreasMatthias Feb 15, 2024
76382f3
CLI option --doc_out_path <PATH>.
AndreasMatthias Feb 15, 2024
3a46e64
Add 'visible' tag for 'doc.field' and 'tableindex' in JSON output.
AndreasMatthias Feb 17, 2024
cd1b68a
Merge pull request #2524 from AndreasMatthias/desc/rawdesc
sumneko Feb 19, 2024
6c224b7
Merge pull request #2525 from AndreasMatthias/visible
sumneko Feb 19, 2024
7848d03
Merge pull request #2526 from AndreasMatthias/doc-output-path
sumneko Feb 19, 2024
8fc5a88
Merge pull request #2505 from lizho/master
sumneko Feb 19, 2024
eab7e6d
update bee and luamake
sumneko Feb 19, 2024
b6e452c
挪到 bee.windows
sumneko Feb 19, 2024
ecd43b3
split build and release
sumneko Feb 19, 2024
25cb0bd
Prepare Linux-ARM64
sumneko Feb 19, 2024
a521892
update workflow
sumneko Feb 20, 2024
3e6fd3c
算了
sumneko Feb 20, 2024
e9e8f67
Added "async" key in JSON output.
AndreasMatthias Feb 20, 2024
3a1abee
Add "deprecated" key in JSON output.
AndreasMatthias Feb 17, 2024
adfac39
add infer function param type
fesily Feb 21, 2024
27e0c1e
Merge branch 'master' into automatic-infer-function-param-type
fesily Feb 21, 2024
74e74d2
Merge branch 'master' into generic-pattern1
fesily Feb 21, 2024
c8476de
CLI option --doc_update.
AndreasMatthias Feb 21, 2024
483fe24
update 1.5.0
CppCXY Feb 22, 2024
9b6df71
Merge branch 'master' of github.com:CppCXY/lua-language-server
CppCXY Feb 22, 2024
3786188
fix warn
fesily Feb 23, 2024
56e7ada
Update locale/en-us/setting.lua
fesily Feb 23, 2024
b3acd8f
Update script/vm/compiler.lua
fesily Feb 23, 2024
2a41f79
Enable plugins during --check
danpf Feb 24, 2024
825a795
Merge pull request #2536 from danpf/danpf-diagnostics-with-plugins
sumneko Feb 24, 2024
21d20b1
Merge pull request #2533 from CppCXY/master
sumneko Feb 24, 2024
af82302
Merge branch 'master' into deprecated
AndreasMatthias Feb 24, 2024
d99570b
Merge branch 'master' into async
AndreasMatthias Feb 24, 2024
96a11fb
Merge branch 'master' into doc-update
AndreasMatthias Feb 24, 2024
a3c731f
Desc/rawdesc for vararg expressions in JSON output.
AndreasMatthias Feb 24, 2024
5427b3b
update submodules
sumneko Feb 26, 2024
306a586
Merge pull request #2537 from AndreasMatthias/varargs
sumneko Feb 26, 2024
f388b95
Merge pull request #2538 from AndreasMatthias/deprecated
sumneko Feb 26, 2024
87c83c3
Update template.lua
fesily Feb 26, 2024
73be83c
Merge pull request #2532 from fesily/automatic-infer-function-param-type
sumneko Feb 26, 2024
5a84fd7
Update make.lua
actboy168 Feb 26, 2024
fec4e41
Update make.lua
actboy168 Feb 26, 2024
ab34c3f
platform.OS -> platform.os
actboy168 Feb 26, 2024
0b0e718
更新luamake
sumneko Feb 26, 2024
c156377
Update test.yml
actboy168 Feb 26, 2024
e03dc18
update test
fesily Feb 26, 2024
6b8b102
Merge branch 'master' into async
AndreasMatthias Feb 26, 2024
8d31712
Merge branch 'master' into doc-update
AndreasMatthias Feb 26, 2024
a9629f9
Merge pull request #2541 from fesily/automatic-infer-function-param-type
sumneko Feb 26, 2024
e1afc6e
Merge pull request #2539 from AndreasMatthias/async
sumneko Feb 26, 2024
bf458bf
Revert "Add "async" key in JSON output."
sumneko Feb 26, 2024
3688b8e
Merge pull request #2543 from LuaLS/revert-2539-async
sumneko Feb 26, 2024
dd626f2
Revert "Add "deprecated" key in JSON output."
sumneko Feb 26, 2024
3723346
Merge pull request #2544 from LuaLS/revert-2538-deprecated
sumneko Feb 26, 2024
beacc21
Add "async" key in JSON output.
AndreasMatthias Feb 26, 2024
d0bfdaa
Add "deprecated" key in JSON output.
AndreasMatthias Feb 26, 2024
ceda1b6
Flush stdout in check progress indicator
emmericp Feb 26, 2024
fe62853
Only load files in workspace for --check (skip libraries)
emmericp Feb 26, 2024
cde6e18
update bee
sumneko Feb 27, 2024
16d39f0
Merge pull request #2545 from AndreasMatthias/async-and-deprecated
sumneko Feb 27, 2024
85f7e6f
Merge pull request #2546 from emmericp/check-only-ws
sumneko Feb 27, 2024
15e6ed8
Merge branch 'master' into doc-update
AndreasMatthias Feb 27, 2024
28322ce
rule add args
actboy168 Feb 28, 2024
606e9cd
Add --trust_all_plugins CLI option
emmericp Mar 1, 2024
18ae2db
Merge pull request #2553 from emmericp/trust-all-plugins
sumneko Mar 5, 2024
5623a84
Merge pull request #2547 from emmericp/patch-1
sumneko Mar 5, 2024
77b2946
Merge branch 'master' into doc-update
AndreasMatthias Mar 8, 2024
35e322c
update format 1.5.1
CppCXY Mar 14, 2024
37a7fd7
Merge branch 'LuaLS:master' into master
CppCXY Mar 14, 2024
8ab769c
fix error in filewatch
sumneko Mar 15, 2024
a66d002
update submodules
sumneko Mar 15, 2024
57451c8
Merge pull request #2562 from AndreasMatthias/doc-update
sumneko Mar 15, 2024
d94bddc
Merge pull request #2568 from CppCXY/master
sumneko Mar 15, 2024
8da156b
Update make.lua
actboy168 Mar 15, 2024
ad310d1
Merge branch 'master' into generic-pattern1
fesily Mar 18, 2024
e930179
Merge pull request #2484 from fesily/generic-pattern1
sumneko Mar 18, 2024
768e6f7
Merge branch 'master' into fa_master
clyfordv Apr 4, 2024
c601532
test update commit
clyfordv Apr 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
192 changes: 113 additions & 79 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,90 +1,124 @@

# see https://github.com/CppCXY/EmmyLuaCodeStyle
[*.lua]
# [basic code reformat option]
# [basic]

# optional space/tab
indent_style = space
# if indent_style is space, this is valid
indent_size = 4
# if indent_style is tab, this is valid
tab_width = 4
# only support number
continuation_indent_size = 4
# if true, continuation_indent_size for local or assign statement is invalid
# however, if the expression list has cross row expression, it will not be aligned to the first expression
local_assign_continuation_align_to_first_expression = false
# function call expression's args will align to first arg
# however, if the args has cross row arg, it will not be aligned to the first arg
align_call_args = false
# if true, format like this "print( "123", 456 )"
keep_one_space_between_call_args_and_parentheses = false
# if true, all function define params will align to first param
align_function_define_params = true
# if true, format like this "local t = { 1, 2, 3 }"
keep_one_space_between_table_and_bracket = true
# if indent_style is tab, this option is invalid
align_table_field_to_first_field = false
# if true, ormat like this "local t <const> = 1"
keep_one_space_between_namedef_and_attribute = false
# continous line distance
max_continuous_line_distance = 1
# if true, iff any one of the consecutive rows meets the condition of aligning to the equal sign,
# the consecutive rows will be aligned to the equal sign
weak_alignment_rule = true
# see document for detail
continuous_assign_statement_align_to_equal_sign = true
# see document for detail
continuous_assign_table_field_align_to_equal_sign = true
# if true, the label loses its current indentation
label_no_indent = false
# if true, there will be no indentation in the do statement
do_statement_no_indent = false
# if true, the conditional expression of the if statement will not be a continuation line indent
if_condition_no_continuation_indent = false


# optional crlf/lf
end_of_line = auto
detect_end_of_line = true

# [line layout]
# The following configuration supports three expressions
# minLine:${n}
# keepLine
# KeepLine:${n}

keep_line_after_if_statement = minLine:0
keep_line_after_do_statement = minLine:0
keep_line_after_while_statement = minLine:0
keep_line_after_repeat_statement = minLine:0
keep_line_after_for_statement = minLine:0
keep_line_after_local_or_assign_statement = keepLine
keep_line_after_function_define_statement = keepLine:1

# [diagnostic]
# the following is code diagnostic options
enable_check_codestyle = true
# this mean utf8 length
# none/single/double
quote_style = none

continuation_indent = 4

# this mean utf8 length , if this is 'unset' then the line width is no longer checked
# this option decides when to chopdown the code
max_line_length = 120
# this will check text end with new line(format always end with new line)

#optional keep/never/always/smart
trailing_table_separator = keep

# keep/remove/remove_table_only/remove_string_only
call_arg_parentheses = keep

detect_end_of_line = false

# this will check text end with new line
insert_final_newline = true

# [name style check]
enable_name_style_check = true
# the following is name style check rule
# base option off/camel_case/snake_case/upper_snake_case/pascal_case/same(filename/first_param/'<const string>', snake_case/pascal_case/camel_case)
# all option can use '|' represent or
# for example:
# snake_case | upper_snake_case
# same(first_param, snake_case)
# same('m')
local_name_define_style = camel_case|upper_snake_case
function_param_name_style = camel_case
function_name_define_style = camel_case
local_function_name_define_style = camel_case
table_field_name_define_style = camel_case|pascal_case
global_variable_name_define_style = camel_case|upper_snake_case
module_name_define_style = camel_case
require_module_name_style = camel_case
class_name_define_style = camel_case
table_append_expression_no_space = true
if_condition_align_with_each_other = true
# [space]
space_around_table_field_list = true

space_before_attribute = true

space_before_function_open_parenthesis = false

space_before_function_call_open_parenthesis = false

space_before_closure_open_parenthesis = true

space_before_function_call_single_arg = true

space_before_open_square_bracket = false

space_inside_function_call_parentheses = false

space_inside_function_param_list_parentheses = false

space_inside_square_brackets = false

# like t[#t+1] = 1
space_around_table_append_operator = true

ignore_spaces_inside_function_call = false

space_before_inline_comment = 1

# [operator space]
space_around_math_operator = true

space_after_comma = true

space_after_comma_in_for_statement = true

space_around_concat_operator = true

# [align]

align_call_args = false

align_function_params = true

align_continuous_assign_statement = true

align_continuous_rect_table_field = true

align_if_branch = true

align_array_table = true

# [indent]

never_indent_before_if_condition = false

never_indent_comment_on_if_branch = false

# [line space]

# The following configuration supports four expressions
# keep
# fixed(n)
# min(n)
# max(n)
# for eg. min(2)

line_space_after_if_statement = keep

line_space_after_do_statement = keep

line_space_after_while_statement = keep

line_space_after_repeat_statement = keep

line_space_after_for_statement = keep

line_space_after_local_or_assign_statement = keep

line_space_after_function_statement = fixed(2)

line_space_after_expression_statement = keep

line_space_after_comment = keep

# [line break]
break_all_list_when_line_exceed = false

auto_collapse_lines = false

# [preference]
ignore_space_after_colon = true

remove_call_expression_list_finish_comma = false
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
custom: ["https://paypal.me/sumneko", "https://github.com/sumneko/lua-language-server/issues/484"]
custom: ["https://paypal.me/sumneko", "https://github.com/LuaLS/lua-language-server/issues/484"]
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ body:
label: Log File
description: >
Please provide your log file. Refer to the wiki to find your log file:
https://github.com/sumneko/lua-language-server/wiki/FAQ#where-can-i-find-the-log-file
https://luals.github.io/wiki/faq#where-can-i-find-the-log-file
- type: markdown
attributes:
value: |
Expand Down
75 changes: 58 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: build

permissions:
contents: write

on:
push:
branches:
Expand All @@ -20,25 +23,60 @@ jobs:
fail-fast: false
matrix:
include:
- { os: ubuntu-18.04, target: linux, platform: linux-x64 }
- { os: ubuntu-18.04, target: linux, platform: linux-arm64 }
- { os: ubuntu-22.04, target: linux, platform: linux-x64, container: 'alpine:latest', libc: musl }
- { os: ubuntu-20.04, target: linux, platform: linux-x64, container: 'ubuntu:18.04' }
- { os: ubuntu-20.04, target: linux, platform: linux-arm64, container: 'ubuntu:18.04' }
- { os: macos-11, target: darwin, platform: darwin-x64 }
- { os: macos-11, target: darwin, platform: darwin-arm64 }
- { os: windows-latest, target: windows, platform: win32-ia32 }
- { os: windows-latest, target: windows, platform: win32-x64 }
runs-on: ${{ matrix.os }}
container:
image: ${{ matrix.container }}
steps:
- name: Prepare container
if: ${{ matrix.target == 'linux' && matrix.libc != 'musl' }}
run: |
apt-get update
apt-get install -y software-properties-common
add-apt-repository -y ppa:ubuntu-toolchain-r/test # For gcc-9 and g++-9
add-apt-repository -y ppa:git-core/ppa # For git>=2.18.
apt-get update
apt-get install -y sudo git gcc-9 g++-9

- name: Install aarch64-linux-gnu
if: ${{ matrix.platform == 'linux-arm64' }}
if: ${{ matrix.platform == 'linux-arm64' && matrix.libc != 'musl' }}
run: |
apt-get update
apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu

- name: Prepare container env
if: ${{ matrix.target == 'linux' && matrix.libc != 'musl' }}
run: |
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 100

- name: Prepare container for musl
if: ${{ matrix.target == 'linux' && matrix.libc == 'musl' }}
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
apk update
apk add git ninja bash build-base nodejs linux-headers

- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actboy168/setup-luamake@master
- run: luamake -platform ${{ matrix.platform }}

- name: Build for others step-1
if: ${{ matrix.libc != 'musl' }}
uses: actboy168/setup-luamake@master

- name: Build for others step-2
if: ${{ matrix.libc != 'musl' }}
run: luamake -platform ${{ matrix.platform }}

- name: Build for musl
if: ${{ matrix.target == 'linux' && matrix.libc == 'musl' }}
run: ./make.sh

- name: Setting up workflow variables
id: vars
Expand All @@ -60,20 +98,23 @@ jobs:

# Package name w/ version
PKG_BASENAME="${{ env.PROJECT }}-${PKG_VERSION}-${{ matrix.platform }}"
if [[ "${{ matrix.libc }}" = musl ]]; then
PKG_BASENAME="${PKG_BASENAME}-${{matrix.libc}}"
fi

# Full name of the tarball asset
PKG_NAME="${PKG_BASENAME}.${PKG_SUFFIX}"

# Staging area for tarballs
PKG_STAGING="ci_staging/$PKG_BASENAME"

echo ::set-output name=PKG_VERSION::${PKG_VERSION}
echo ::set-output name=PKG_BASENAME::${PKG_BASENAME}
echo ::set-output name=PKG_NAME::${PKG_NAME}
echo ::set-output name=PKG_PATH::"${PKG_STAGING}/${PKG_NAME}"
echo ::set-output name=PKG_STAGING::${PKG_STAGING}
- uses: actions/upload-artifact@v2
echo PKG_VERSION=${PKG_VERSION} >> $GITHUB_OUTPUT
echo PKG_BASENAME=${PKG_BASENAME} >> $GITHUB_OUTPUT
echo PKG_NAME=${PKG_NAME} >> $GITHUB_OUTPUT
echo PKG_PATH="${PKG_STAGING}/${PKG_NAME}" >> $GITHUB_OUTPUT
echo PKG_STAGING=${PKG_STAGING} >> $GITHUB_OUTPUT

- uses: actions/upload-artifact@v3
with:
name: ${{ steps.vars.outputs.PKG_BASENAME }}
path: |
Expand Down Expand Up @@ -118,9 +159,9 @@ jobs:
PKG_SUBMOD_NAME="${{ env.PROJECT }}-${{ steps.vars.outputs.PKG_VERSION }}-submodules.zip"
PKG_SUBMOD_PATH="${STAGING}/$PKG_SUBMOD_NAME"

zip -r $PKG_SUBMOD_PATH ./ -x "*.git*" -x "*.vscode*" -x "build*" -x "${{ env.BIN_DIR }}*" -x "${STAGING}*"
zip -r $PKG_SUBMOD_PATH ./ -x "*.git*" -x "*.vscode*" -x "build*" -x "${{ env.BIN_DIR }}*" -x "${STAGING}*" -x "3rd/json.lua*" -x "log*" -x "ci_staging*"

echo ::set-output name=PKG_SUBMOD_PATH::${PKG_SUBMOD_PATH}
echo PKG_SUBMOD_PATH=${PKG_SUBMOD_PATH} >> $GITHUB_OUTPUT

- name: Publish release assets
uses: softprops/action-gh-release@v1
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: test
on: [ push, pull_request ]
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- { os: ubuntu-20.04, platform: linux-x64 }
- { os: macos-14, platform: darwin-arm64 }
- { os: windows-latest, platform: win32-x64 }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actboy168/setup-luamake@master
- run: luamake -platform ${{ matrix.platform }}
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@
/meta/*
!/meta/template
!/meta/3rd
/bin-Windows
/bin-Linux
/bin-macOS
/bin
!/meta/whimsical
/bin*
Loading