Skip to content

Conversation

@cartermp
Copy link
Contributor

@cartermp cartermp commented May 11, 2020

Looks like this with the change

image

What's neat about this is that the completion window will resize dynamically as the items to the right get larger. This also happens as you scroll, so if you have some items with a giant namespace but they aren't visible in the window, the window won't get large until they are visible. This is all just the Roslyn tooling infrastructure under the hood powering this. We only need to pass in a string 🙂

Also fixes #9167, #9166

@cartermp cartermp requested review from TIHan and dsyme May 11, 2020 05:04
@cartermp cartermp changed the title Use roslyn API Use roslyn API to display extended completion May 11, 2020
@cartermp cartermp changed the title Use roslyn API to display extended completion Use roslyn API to display extended completion and fix quirks with scripts/top of file May 11, 2020
Copy link
Contributor

@TIHan TIHan left a comment

Choose a reason for hiding this comment

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

Looks good, one comment on the newline though.

@TIHan TIHan merged commit d43aed4 into dotnet:master May 12, 2020
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
…ipts/top of file (dotnet#9165)

* Use roslyn API to show unopened namespace in extended completion

* Properly add open decls when at the top of a file
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
…ipts/top of file (dotnet#9165)

* Use roslyn API to show unopened namespace in extended completion

* Properly add open decls when at the top of a file
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
…ipts/top of file (dotnet#9165)

* Use roslyn API to show unopened namespace in extended completion

* Properly add open decls when at the top of a file
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.

Triggering the add open code fix on the first line of a file does nothing

3 participants