LuaLS / LuaLS/lua-language-server
Unable to ignore applying only one library
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Lua
- Estrellas
- 4.4k
- Forks
- 442
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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
- Enter the following in a file to trigger library detection:
local assert = require("luassert") resty.a love.a - When the “Apply library” popup appears, press “Don't show again”
- 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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Empieza rastreando la configuración workspace.checkThirdParty y la ruta «Don't show again» descrita en el issue. Reproduce el ejemplo de luassert, resty y love en Windows y verifica después que rechazar una biblioteca suprima únicamente esa biblioteca, mientras las sugerencias para otras bibliotecas sigan disponibles.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- lua
- Área
- devtools
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100