Skip to content

Introduce request context#46557

Merged
RikkiGibson merged 4 commits intodotnet:masterfrom
davidwengier:IntroduceRequestContext
Aug 7, 2020
Merged

Introduce request context#46557
RikkiGibson merged 4 commits intodotnet:masterfrom
davidwengier:IntroduceRequestContext

Conversation

@davidwengier
Copy link
Member

There are already 3 parameters for every LSP request (plus the generic request parameter), and in #46051 I'm planning on adding a couple of new ones, so separating things out to a context object first will make that change easier. I imagine the RequestContext will also be a good thing to base some extension methods on to further simplify the handlers in future.

I deliberately avoided doing any cleanup to make the review easier.

Merging this in to master so there is less chance of conflicts when things are merged to the feature branch.

@davidwengier davidwengier requested a review from a team as a code owner August 5, 2020 06:40
Copy link
Contributor

@allisonchou allisonchou left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

Copy link
Member

@jasonmalinowski jasonmalinowski left a comment

Choose a reason for hiding this comment

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

Nice!

@RikkiGibson RikkiGibson merged commit cec606a into dotnet:master Aug 7, 2020
@ghost ghost added this to the Next milestone Aug 7, 2020
333fred added a commit that referenced this pull request Aug 10, 2020
…features/function-pointers

* upstream/master: (465 commits)
  Stop specifying Rich Nav's version of dotnet
  Fix nullable reference warning
  Fix up some calls to SymbolKey.Resolve now that it's annotated
  Remove try/catch of ArgumentException
  Null annotate SymbolKey
  Annotate Location.IsInSource as ensuring SourceTree is non-null
  Fix nullable annotation of Compilation.CreateErrorTypeSymbol
  Update null state for add/remove on field-like events (#46477)
  Throw IndexOutOfRangeException from BitVector.this[int] if index < 0 (#46627)
  Delete some dead support for changing legacy options
  Delete our use of Microsoft.VisualStudio.CodingConventions
  Fix crash in the preview of a code action that modified an .editorconfig
  Move null check above where the variable is used (#46558)
  Add integration test to configure diagnostic severity via editorconfig
  Disable a few Mac tests
  Consider nullability in conversion to constraint type (#46405)
  Added interpolated strings and tests
  Introduce request context (#46557)
  Simplify NativeIntegerAttribute encoding (#46522)
  Update extension getenumerator status. (#46607)
  ...
@RikkiGibson RikkiGibson modified the milestones: Next, 16.8.P2 Aug 11, 2020
@davidwengier davidwengier deleted the IntroduceRequestContext branch September 20, 2020 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants