Skip to content

Swap KeywordCompletionFilter in filter globalcompletion to use all - #30131

Closed
André Rodrigues (andrefrodrigues) wants to merge 2 commits into
microsoft:masterfrom
runtimerevolution:master
Closed

André Rodrigues (andrefrodrigues) wants to merge 2 commits into
microsoft:masterfrom
runtimerevolution:master

Conversation

@andrefrodrigues

Copy link
Copy Markdown

Fixes #29658 and #29666.
The completions service fetches the keywords from the subset that did not contained the correct keyword to autocomplete.
Now it fetches all keywords, which is guaranteed to contain the correct one.

@ajafff

Copy link
Copy Markdown
Contributor

Can you add tests (and update existing ones) to ensure your change is working as expected?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incorrect change to the issues you are trying to fix.

@andrefrodrigues

Copy link
Copy Markdown
Author

Thank you for reviewing my changes! This is my first PR so I'm still not familiar with the project. I tried this locally and it fixed the issue, I'm not sure it might have broken something somewhere else. Is there any other way that I could fix this issue? Can you point me in the right direction?

@msftclas

Microsoft Contribution License Agreements (msftclas) commented Mar 1, 2019 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@andrefrodrigues

Copy link
Copy Markdown
Author

Klaus Meinhardt (@ajafff) Sheetal Nandi (@sheetalkamat) I added the test cases for both issues. From what I understood, the tests that failed showed that there are more keywords that they were expecting. How should I better proceed to fix this issue?

@fuafa

Copy link
Copy Markdown
Contributor

André Rodrigues (@andrefrodrigues) I think it can be done in two ways:

  1. Add const to the KeywordCompletionFilters.TypeKeywords.
  2. Add a new context to KeywordCompletionFilters which includes TypeKeywords and const.

@RyanCavanaugh

Copy link
Copy Markdown
Member

Closing due to extended failing CI

@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

completion list doesn't suggest 'const' in type assertion

6 participants

⌂ Proxy