LuaLS / LuaLS/lua-language-server

Unable to ignore applying only one library

Offen
#1,696 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

enhancement
Vorherrschende Sprache
Lua
Sterne
4.4k
Forks
442
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Libraries

Expected Behaviour

When multiple libraries are detected, the user should be able to tell the server to stop asking to apply a specific library, and continue receiving suggestions for other libraries.

Actual Behaviour

Once the user selects “Don't show again”, workspace.checkThirdParty is set to false, preventing any suggestions from appearing.

Reproduction steps
  1. Enter the following in a file to trigger library detection:
    local assert = require("luassert")
    
    resty.a
    
    love.a
    
  2. When the “Apply library” popup appears, press “Don't show again”
  3. Try to automatically apply one of the other libraries automatically.
Additional Notes

A similar issue was resolved in v3.6.0 which allowed the server to continue recommending libraries when one was applied, but this issue is about when a user does not apply the suggested library.

Maybe it would make sense to create a new setting called workspace.libraryIgnore that is an array of ignored libraries. Then workspace.checkThirdParty can remain for backwards compatibility and so all suggestions can be disabled.

Log File

No response

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, die in der Issue beschriebene Einstellung workspace.checkThirdParty und den Pfad „Don't show again“ nachzuverfolgen. Reproduziere das luassert-, resty- und love-Beispiel unter Windows und überprüfe anschließend, dass das Ablehnen einer Bibliothek nur diese Bibliothek unterdrückt, während Vorschläge für andere Bibliotheken weiterhin verfügbar bleiben.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
lua
Bereich
devtools
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.