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

[New Feature]: Enable partial completions in language server #40372

Open
nadeeshaan opened this issue May 9, 2023 · 0 comments
Open

[New Feature]: Enable partial completions in language server #40372

nadeeshaan opened this issue May 9, 2023 · 0 comments
Labels
Team/LanguageServer Language Server Implementation related issues. #Compiler Type/NewFeature

Comments

@nadeeshaan
Copy link
Contributor

Description

In the current implementation, we populate all the available completion items. For example, consider the types suggestion in the relevant contexts. In general, we have two or three levels of cascading for sorting. This behaviour gives a very good edge for enabling partial completions.

As an initial improvement, we can consider the types suggestion and limit the number of completion items sending to the client. This can lead us to avoid the unnecessarily large array of completion items as well as save us a significant amount of time.

This also can lead to another future improvement which is enabling the LSIF implementation as well.

Describe your problem(s)

No response

Describe your solution(s)

No response

Related area

-> Other Area

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@ballerina-bot ballerina-bot added the needTriage The issue has to be inspected and labeled manually label May 9, 2023
@malinthar malinthar added Team/LanguageServer Language Server Implementation related issues. #Compiler and removed needTriage The issue has to be inspected and labeled manually labels May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team/LanguageServer Language Server Implementation related issues. #Compiler Type/NewFeature
Projects
None yet
Development

No branches or pull requests

3 participants