Skip to content

Conversation

Freed-Wu
Copy link
Contributor

@Freed-Wu Freed-Wu commented Aug 17, 2025

Test file:

test.lua:

---@param x integer
function f(x)
    x = "a"
end
---
repos:
  - repo: https://github.com/Freed-Wu/lua-language-server
    rev: 3.15.1
    hooks:
      - id: lua-language-server-check
Screenshot_20250822_164637

@Freed-Wu Freed-Wu marked this pull request as draft August 17, 2025 22:37
@Freed-Wu Freed-Wu force-pushed the pre-commit branch 2 times, most recently from a4ebc5c to 70aaa4d Compare August 20, 2025 15:42
@Freed-Wu Freed-Wu marked this pull request as ready for review August 20, 2025 15:51
@Freed-Wu Freed-Wu marked this pull request as draft August 20, 2025 17:28
Original LuaLS#2775 only pass exe, which is arg[minIndex].
arg from minIndex + 1 to -1 are ignored.

For example, when arg from -3 to 2 is
/the/path/of/bootstrap -e XXX lua-language-server --check .
It will only pass
/the/path/of/bootstrap lua-language-server --check .
@Freed-Wu Freed-Wu marked this pull request as ready for review August 22, 2025 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant