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

Cherrypick (#73873) into 17.11 #74503

Merged

Conversation

Cosifne
Copy link
Member

@Cosifne Cosifne commented Jul 23, 2024

Cherrypick #73873

…3873)

* work in progress on getting context and almost passing it to smart rename

* pass context to SmartRenameSession

* attempt to set PromptOverride through Lightup

* reflection refinement

* Fix CreatePropertySetter in LightupHelpers

* Find definitions and references and add them to the context

* also capture snippet of surrounding method

* simplify

* fix GetRequiredLanguageService

* undo code cleanup artifacts

* use ImmutableArray throughout Roslyn's interfaces

* fixup

* refactor to get context only if smart rename is active

* revert the now unnecessary change

* restore CreateFunctionAccessor with 2 parameters

* Dont duplicate work of getting rename locations

* use interface in the method declarations

* fix warning

* remove IInlineRenameSession from the API

* cleanup

* refactor getting doccomments

* fixup

* PR feedback

* Add IEditorInlineRenameService.IsRenameContextSupported

* revert unnecessary change

* remove unnecessary changes

* doc comments

* expose TriggerDocument instead of creating a property that returns a field

* add feature flag to control whether we're getting context

* improve event handler name

* fix Correctness_Analyzers warnings

* update Feature Flag look

* fix Freeing Twice assert

* add 'requires restart' to the FF name

* cleanup usings

* extract constants

* remove unused code

* NumberOfContextLines const

* GetRenameContextCoreAsync doc comments

* pr feedback on CSharpEditorInlineRenameService

* override fixes

* enforce hard limits on amount of symbols we traverse

* Get context off UI thread, respond to property changed on UI thread

* undo unwanted file

* Remove CSharpRenameContextHelper; improve the provided context

* modifiers and doc comments

* remove never taken branch

* Remove IsRenameContextSupported

* PR feedback to move TryGetSurroundingNodeSpanAsync to parent class

* use CompletesAsyncOperation pattern for SessionPropertyChanged

* Create IAsynchronousOperationListener in the constructor

* improve algorithm that provides context snippet

---------

Co-authored-by: Shen Chen <shech@microsoft.com>
@Cosifne Cosifne requested a review from a team as a code owner July 23, 2024 17:40
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 23, 2024
@Cosifne Cosifne changed the title Cherry (#73873) into 17.11 Cherrypick (#73873) into 17.11 Jul 23, 2024
@arkalyanms arkalyanms merged commit 1d7fade into dotnet:release/dev17.11 Jul 23, 2024
22 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants