Skip to content

Conversation

alexgav
Copy link
Contributor

@alexgav alexgav commented Jun 20, 2025

We were losing VSInternalCompletionContext.InvokeKind value when re-invoking completion request on delegated servers (C#, HTML). That caused default value of "Invoked" being used in delegated server, which basically means Ctrl+J/Show Completion command. That caused overly aggressive behavior as if completion was forced rather than auto-shown by typing.

### Summary of the changes

  • This change properly types Context of CompletionParams so that VSInternalCompletionContext is properly serialized/deserialized and InvokeKind value doesn't get lost.

Fixes:
Internally filed AzDO issue

We were losing VSInternalCompletionContext.InvokeKind value when re-invoking completion request on delegated servers (C#, HTML). That caused default value of "Invoked" being used in delegated server, which basically means Ctrl+J/Show Completion command. That caused overly aggressive behavior as if completion was forced rather than auto-shown by typing.

This change properly types Context of CompletionParams so that VSInternalCompletionContext is properly serialized/deserialized and InvokeKind value doesn't get lost.
@alexgav alexgav requested a review from a team as a code owner June 20, 2025 11:55
@alexgav alexgav merged commit aa1041b into main Jun 21, 2025
11 checks passed
@alexgav alexgav deleted the dev/alexgav/FixOverlyAggressiveDelegatedCompletion branch June 21, 2025 15:21
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Jun 21, 2025
@RikkiGibson RikkiGibson modified the milestones: Next, 18.0 P1 Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants