5 writes to Command
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Microsoft.CodeAnalysis.Razor.Workspaces (2)
43 references to Command
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (28)
Completion\CompletionFeaturesTests.cs (27)
142Assert.Null(actualItem.Command);
165Assert.Null(resolvedItem.Command);
229Assert.Null(actualItem.Command);
249Assert.Null(resolvedItem.Command);
292Assert.Null(actualItem.Command);
303Assert.Equal(CompletionResultFactory.CompleteComplexEditCommand, resolvedItem.Command.CommandIdentifier);
304Assert.Equal(nameof(CompletionResultFactory.CompleteComplexEditCommand), resolvedItem.Command.Title);
305AssertJsonEquals(completionParams.TextDocument, resolvedItem.Command.Arguments[0]);
306AssertJsonEquals(expectedEdit, resolvedItem.Command.Arguments[1]);
307Assert.Equal(false, resolvedItem.Command.Arguments[2]);
309Assert.Equal(expectedNewPosition, resolvedItem.Command.Arguments[3]);
555Assert.Null(actualItem.Command);
573Assert.Null(resolvedItem.Command);
986Assert.Null(resolvedItem.Command);
992Assert.Null(resolvedItem.Command);
1000Assert.Equal(nameof(CompletionResultFactory.CompleteComplexEditCommand), resolvedItem.Command.Title);
1001Assert.Equal(CompletionResultFactory.CompleteComplexEditCommand, resolvedItem.Command.CommandIdentifier);
1003AssertJsonEquals(completionParams.TextDocument, resolvedItem.Command.Arguments[0]);
1006AssertJsonEquals(expectedEdit, resolvedItem.Command.Arguments[1]);
1008Assert.Equal(false, resolvedItem.Command.Arguments[2]);
1009Assert.Equal(-1, resolvedItem.Command.Arguments[3]);
1057Assert.Equal(nameof(CompletionResultFactory.CompleteComplexEditCommand), resolvedItem.Command.Title);
1058Assert.Equal(CompletionResultFactory.CompleteComplexEditCommand, resolvedItem.Command.CommandIdentifier);
1060AssertJsonEquals(completionParams.TextDocument, resolvedItem.Command.Arguments[0]);
1063AssertJsonEquals(expectedEdit, resolvedItem.Command.Arguments[1]);
1065Assert.Equal(false, resolvedItem.Command.Arguments[2]);
1067Assert.Equal(expectedNewPosition, resolvedItem.Command.Arguments[3]);
Microsoft.CodeAnalysis.Razor.Workspaces (4)
Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests (7)
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (1)
Microsoft.VisualStudioCode.RazorExtension.UnitTests (1)