Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to ignore applying only one library #1696

Open
carsakiller opened this issue Nov 13, 2022 · 2 comments
Open

Unable to ignore applying only one library #1696

carsakiller opened this issue Nov 13, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@carsakiller
Copy link
Collaborator

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

@carsakiller carsakiller added the enhancement New feature or request label Nov 13, 2022
@justarandomgeek
Copy link

justarandomgeek commented Dec 6, 2022

I would add to this, a setting such as workspace.libraryApply that is an array of libraries (by name, ideally) to apply without prompting, even if general prompts are disabled.

@prescientmoon
Copy link

I'm also in support of this :O

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants