-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Remove legacy completion #38569
Remove legacy completion #38569
Conversation
src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj
Outdated
Show resolved
Hide resolved
have not actually reviewed this. I presume it's just almost entirely the removal of the old code. so instead of looking at all that, was there anything more 'interesting' than that? if so, can you comment any areas that need particular attention? #Resolved |
cc @KirillOsenkov for info and review |
@ivanbasov Can we target this at master? I recognize it'll create some merge conflicts into master-vs-deps, but does that make the code easier to maintain in master in the mean time? #Resolved |
Thank you, @jasonmalinowski ! Good idea! Let us meet merge conflict once, rather than supporting 2 branches for a longer time. Will rebase into master. #Resolved |
Thank you, @CyrusNajmabadi ! I hope it is just a technical change: remove tests and remove the old implementation. I am not going to add anything interesting here. #Resolved |
225bd4b
to
6632e02
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Primary concern is there are some tests that didn't get switched back to Facts, and thus they won't run. I know @sharwell was discussing a bit getting some of the xunit analyzers running on VB as well....this might be a really good reason to do so since it'd be hugely easy to make more mistakes like that.
src/VisualStudio/Core/Test/Completion/VisualBasicCompletionSnippetNoteTests.vb
Outdated
Show resolved
Hide resolved
src/VisualStudio/Core/Test/Completion/CSharpCompletionSnippetNoteTests.vb
Outdated
Show resolved
Hide resolved
Co-Authored-By: Jason Malinowski <jason@jason-m.com>
Co-Authored-By: Jason Malinowski <jason@jason-m.com>
Co-Authored-By: Jason Malinowski <jason@jason-m.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Feedback addressed. @jasonmalinowski and @sharwell please review/unblock #Resolved |
Unblocking review as I won't have time to re-review.
@@ -304,12 +304,6 @@ private void StartRemoteIntegrationService(DTE dte) | |||
{ | |||
dte.ExecuteCommand(WellKnownCommandNames.Test_IntegrationTestService_Start); | |||
} | |||
|
|||
if (AsyncCompletionCondition.Instance.ShouldSkip | |||
&& dte.Commands.Item(WellKnownCommandNames.Test_IntegrationTestService_DisableAsyncCompletion).IsAvailable) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❕ This command needs to be removed from WellKnownCommandNames and from the VSCT. #Resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 This is still problematic. Here are the locations I know need to be updated. There may be additional references that become obvious when you try to remove them.
roslyn/src/VisualStudio/IntegrationTest/TestSetup/IntegrationTestServiceCommands.vsct
Line 71 in 1689a20
<IDSymbol name="cmdidDisableAsyncCompletion" value="0x5203" /> |
roslyn/src/VisualStudio/IntegrationTest/TestSetup/IntegrationTestServiceCommands.vsct
Lines 46 to 54 in 1689a20
<Button guid="guidTestWindowCmdSet" id="cmdidDisableAsyncCompletion" priority="0x0030" type="Button"> | |
<Parent guid="guidTestWindowCmdSet" id="grpidIntegrationTestService" /> | |
<Strings> | |
<ButtonText>Disable Async Completion</ButtonText> | |
<CommandName>IntegrationTestService.DisableAsyncCompletion</CommandName> | |
<CanonicalName>IntegrationTestService.DisableAsyncCompletion</CanonicalName> | |
<LocCanonicalName>IntegrationTestService.DisableAsyncCompletion</LocCanonicalName> | |
</Strings> | |
</Button> |
roslyn/src/VisualStudio/IntegrationTest/TestSetup/IntegrationTestServiceCommands.cs
Line 29 in 1689a20
public const int cmdidDisableAsyncCompletion = 0x5203; |
roslyn/src/VisualStudio/IntegrationTest/TestSetup/IntegrationTestServiceCommands.cs
Lines 72 to 78 in 1689a20
var disableAsyncCompletionMenuCmdId = new CommandID(guidTestWindowCmdSet, cmdidDisableAsyncCompletion); | |
_disableAsyncCompletionMenuCmd = new MenuCommand(DisableAsyncCompletionCallback, disableAsyncCompletionMenuCmdId) | |
{ | |
Enabled = true, | |
Visible = false, | |
}; | |
menuCommandService.AddCommand(_disableAsyncCompletionMenuCmd); |
roslyn/src/VisualStudio/IntegrationTest/TestSetup/IntegrationTestServiceCommands.cs
Line 43 in 1689a20
private readonly MenuCommand _disableAsyncCompletionMenuCmd; |
roslyn/src/VisualStudio/IntegrationTest/TestSetup/IntegrationTestServiceCommands.cs
Lines 157 to 169 in 1689a20
private void DisableAsyncCompletionCallback(object sender, EventArgs e) | |
{ | |
if (!_disableAsyncCompletionMenuCmd.Enabled) | |
{ | |
return; | |
} | |
var componentModel = ServiceProvider.GetService<SComponentModel, IComponentModel>(); | |
var featureServiceFactory = componentModel.GetService<IFeatureServiceFactory>(); | |
featureServiceFactory.GlobalFeatureService.Disable(PredefinedEditorFeatureNames.AsyncCompletion, EmptyFeatureController.Instance); | |
_disableAsyncCompletionMenuCmd.Enabled = false; | |
} |
src/VisualStudio/IntegrationTest/IntegrationTests/VisualBasic/BasicIntelliSense.cs
Outdated
Show resolved
Hide resolved
src/VisualStudio/IntegrationTest/IntegrationTests/CSharp/CSharpIntelliSense.cs
Outdated
Show resolved
Hide resolved
src/VisualStudio/IntegrationTest/IntegrationTests/CSharp/CSharpIntelliSense.cs
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Core/Implementation/IntelliSense/AsyncCompletion/CommitManager.cs
Show resolved
Hide resolved
src/EditorFeatures/Core/Implementation/IntelliSense/AsyncCompletion/CompletionSource.cs
Show resolved
Hide resolved
src/VisualStudio/Core/Test/DebuggerIntelliSense/VisualBasicDebuggerIntellisenseTests.vb
Outdated
Show resolved
Hide resolved
src/VisualStudio/Core/Test/DebuggerIntelliSense/CSharpDebuggerIntellisenseTests.vb
Outdated
Show resolved
Hide resolved
src/EditorFeatures/Test2/IntelliSense/CSharpCompletionCommandHandlerTests.vb
Show resolved
Hide resolved
- It's no longer possible to turn off async completion - Roslyn has already removed their legacy completion support: dotnet/roslyn#38569 - VS4Mac supports async completion. - This is required to target newer versions of Roslyn because they changed their legacy completion types.
- It's no longer possible to turn off async completion - Roslyn has already removed their legacy completion support: dotnet/roslyn#38569 - VS4Mac supports async completion. - This is required to target newer versions of Roslyn because they changed their legacy completion types.
No description provided.