LuaLS / LuaLS/lua-language-server

Is it possible to only work with the methods explicitly defined in the LuaLS modules?

Open
#2,950 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
4.4k
Forks
442
PR merge metrics
No merged PRs in 30d

Description

Basically I have some methods defined in my files, but I don't like that it suggests two versions of the same methods, since in my LuaLS ---@meta modules I also have these methods defined, but I want to have everything that is typed outside of my real code.

Does anyone know if this is possible?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by reproducing duplicate method suggestions from a LuaLS ---@meta modules declaration and a matching method in a real file, then trace how these declarations are combined; done means the requested preference is implemented or its feasibility is clearly documented with coverage for the duplicate case.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.