5 writes to Command
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\Completion\CompletionResultFactory.cs (2)
617lspItem.Command = lspItem.Command = new LSP.Command()
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Completion\CompletionResolveTests.cs (1)
420Command = completionItem.Command,
Microsoft.VisualStudio.LanguageServices.Xaml (2)
Implementation\LanguageServer\Handler\Completion\CompletionHandler.cs (2)
111item.Command = new Command() 121item.Command = s_retriggerCompletionCommand;
30 references to Command
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Protocol\Internal\Efficiency\OptimizedVSCompletionListJsonConverter.cs (2)
228if (completionItem.Command != null) 231JsonSerializer.Serialize(writer, completionItem.Command, options);
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]); 308Assert.Equal(14, resolvedItem.Command.Arguments[3]); 554Assert.Null(actualItem.Command); 572Assert.Null(resolvedItem.Command); 985Assert.Null(resolvedItem.Command); 991Assert.Null(resolvedItem.Command); 999Assert.Equal(nameof(CompletionResultFactory.CompleteComplexEditCommand), resolvedItem.Command.Title); 1000Assert.Equal(CompletionResultFactory.CompleteComplexEditCommand, resolvedItem.Command.CommandIdentifier); 1002AssertJsonEquals(completionParams.TextDocument, resolvedItem.Command.Arguments[0]); 1005AssertJsonEquals(expectedEdit, resolvedItem.Command.Arguments[1]); 1007Assert.Equal(false, resolvedItem.Command.Arguments[2]); 1008Assert.Equal(-1, resolvedItem.Command.Arguments[3]); 1056Assert.Equal(nameof(CompletionResultFactory.CompleteComplexEditCommand), resolvedItem.Command.Title); 1057Assert.Equal(CompletionResultFactory.CompleteComplexEditCommand, resolvedItem.Command.CommandIdentifier); 1059AssertJsonEquals(completionParams.TextDocument, resolvedItem.Command.Arguments[0]); 1062AssertJsonEquals(expectedEdit, resolvedItem.Command.Arguments[1]); 1064Assert.Equal(false, resolvedItem.Command.Arguments[2]); 1065Assert.Equal(268, resolvedItem.Command.Arguments[3]);
Completion\CompletionResolveTests.cs (1)
420Command = completionItem.Command,