Skip to content

Use roslyn API to display extended completion and fix quirks with scripts/top of file #9165

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

Merged
merged 2 commits into from
May 12, 2020

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