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

Fix import completion in LSP workspace #69691

Merged
merged 2 commits into from
Aug 24, 2023
Merged

Conversation

genlu
Copy link
Member

@genlu genlu commented Aug 23, 2023

  1. Provide unimported extension methods
  2. Fully qualify unimported type in using statement

Fix #68791 and #69576

1. Provide unimported extension methods
2. Fully qualify unimported type in using statment
@genlu genlu requested a review from a team as a code owner August 23, 2023 23:51
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Aug 23, 2023
triggerKind: LSP.CompletionTriggerKind.Invoked);

// Make sure the import completion option is on.
testLspServer.TestWorkspace.GlobalOptions.SetGlobalOption(CompletionOptionsStorage.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp, true);
Copy link
Member

Choose a reason for hiding this comment

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

do we need to ensure these options are also turned on in vscode? Or is it covered by
image

Copy link
Member Author

Choose a reason for hiding this comment

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

@genlu genlu enabled auto-merge (squash) August 24, 2023 18:20
@genlu genlu merged commit 72efaa9 into dotnet:main Aug 24, 2023
24 checks passed
@ghost ghost added this to the Next milestone Aug 24, 2023
@genlu genlu deleted the fixImportCompletion branch August 24, 2023 22:57
@dibarbet dibarbet modified the milestones: Next, 17.8 P2 Aug 28, 2023
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.

Completion for global using static attempts to insert a regular using
2 participants