Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: LuaLS/lua-language-server
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.5.5
Choose a base ref
...
head repository: LuaLS/lua-language-server
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing 1,076 changed files with 751,882 additions and 80,615 deletions.
124 changes: 124 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@

# see https://github.com/CppCXY/EmmyLuaCodeStyle
[*.lua]
# [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
# 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

#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

# [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"]
95 changes: 95 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: Bug Report
description: Report a bug with the lua-language-server
body:
- type: markdown
attributes:
value: >
**Please check for similar issues before continuing!**
- type: dropdown
id: client
attributes:
label: How are you using the lua-language-server?
options:
- Visual Studio Code Extension (sumneko.lua)
- NeoVim
- Kakoune
- Command Line
- Other
validations:
required: true
- type: dropdown
id: OS
attributes:
label: Which OS are you using?
options:
- Windows
- Linux
- MacOS
- Windows WSL
- Other
validations:
required: true
- type: dropdown
id: type
attributes:
label: What is the issue affecting?
description: Please select all of the areas affected by this issue.
multiple: true
options:
- Annotations
- Type Checking
- Completion
- Diagnostics/Syntax Checking
- Hover
- Libraries
- Formatting
- Spell Checking
- Plugins
- Other
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected Behaviour
description: What is the expected behaviour?
validations:
required: true
- type: textarea
id: actual
attributes:
label: Actual Behaviour
description: What is actually happening that is an error?
validations:
required: true
- type: textarea
id: reproduction
attributes:
label: Reproduction steps
description: >
Please provide steps to reproduce the error. The more detail the better
as it helps us fully understand the issue.
value: |
1. Go to '...'
2. Click '...'
3. See error '...'
validations:
required: true
- type: textarea
id: additional-notes
attributes:
label: Additional Notes
description: >
Please provide any additional notes, context,
and media you have.
- type: textarea
id: log-file
attributes:
label: Log File
description: >
Please provide your log file. Refer to the wiki to find your log file:
https://luals.github.io/wiki/faq#where-can-i-find-the-log-file
- type: markdown
attributes:
value: |
Thank you very much for helping improve the language server! ❤️
35 changes: 0 additions & 35 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Report LuaLS.github.io issues
url: https://github.com/LuaLS/LuaLS.github.io/issues
about: Please report issues regarding our website (and the documentation on it) in the website repository.
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/doc-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Documentation Report
description: Report an issue with documentation in the lua-language-server.
labels:
- documentation
assignees:
- carsakiller
body:
- type: markdown
attributes:
value: >
For issues with our [website](https://luals.github.io) and its wiki,
please visit the [correct repository](https://github.com/LuaLS/LuaLS.github.io/issues).
- type: markdown
attributes:
value: >
**Please check for similar issues before continuing!**
- type: textarea
id: expected
attributes:
label: Issue Description
description: Please describe the documentation issue. Is something incorrect, missing or improveable?
validations:
required: true
- type: textarea
id: additional-notes
attributes:
label: Additional Notes
description: >
Please provide any additional notes, context,
and media you have.
- type: markdown
attributes:
value: |
Thank you very much for helping improve the language server! ❤️
17 changes: 17 additions & 0 deletions .github/scripts/check-changelog.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

set -e

CHANGELOG_FILE="changelog.md"

git fetch origin $GITHUB_BASE_REF
git fetch

# Check if the changelog file was modified in the PR
if git diff --name-only origin/$GITHUB_BASE_REF..remotes/pull/$GITHUB_SOURCE_REF | grep -q $CHANGELOG_FILE; then
echo "Thank you for updating the changelog!"
exit 0
else
echo "Changelog has not been updated. Please update $CHANGELOG_FILE!"
exit 1
fi
Loading