7 writes to Command
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
Handler\CodeLens\CodeLensHandler.cs (5)
102Command = null, 149Command = new LSP.Command 160Command = new LSP.Command 179Command = new LSP.Command 190Command = new LSP.Command
Handler\CodeLens\CodeLensResolveHandler.cs (2)
48request.Command = new LSP.Command 76request.Command = new LSP.Command
13 references to Command
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (7)
CodeLens\AbstractCodeLensTests.cs (7)
46Assert.Null(matchingCodeLens.Command); 49Assert.NotNull(resolvedCodeLens?.Command); 52Assert.True(resolvedCodeLens.Command.Title.StartsWith(expectedReferenceCountString)); 71.Where(actualCodeLens => actualCodeLens.Command != null && actualCodeLens.Command.CommandIdentifier == CodeLensHandler.RunTestsCommandIdentifier); 74Assert.Single(matchingCodeLenses, (c) => c.Command!.Title == title); 91Assert.All(actualCodeLenses, actualCodeLens => Assert.NotEqual(CodeLensHandler.RunTestsCommandIdentifier, actualCodeLens.Command?.CommandIdentifier));
Microsoft.VisualStudioCode.RazorExtension.UnitTests (6)
Endpoints\CohostCodeLensEndpointTest.cs (6)
106Assert.NotNull(resolved.Command); 107Assert.NotNull(resolved.Command.Arguments); 108Assert.Equal(resolved.Command.Title, expectedTitles[i]); 109Assert.Equal("roslyn.client.peekReferences", resolved.Command.CommandIdentifier); 111var documentUri = Assert.IsType<DocumentUri>(resolved.Command.Arguments[0]); 114var position = Assert.IsType<Position>(resolved.Command.Arguments[1]);