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

LSP: Auto-complete wants to add an import for already imported globals with underscores #7492

Open
ogoffart opened this issue Jan 29, 2025 · 0 comments
Labels
a:lsp slint-lsp and formating (mO,bT) bug Something isn't working

Comments

@ogoffart
Copy link
Member

Bug Description

When a global has an underscore, the LSP wants to auto-completes it twice. Once with a dash and import, and once with an underscore

Image

Reproducible Code (if applicable)

export global The_Global {
}

export component Demo {
    property <string> foo: the;
}

Environment Details

Import of globals was added in 1.9.0

Product Impact

No response

@ogoffart ogoffart added a:lsp slint-lsp and formating (mO,bT) bug Something isn't working labels Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:lsp slint-lsp and formating (mO,bT) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant