public SemanticTokensFullOrDelta(SemanticTokensFullOrDeltaPartialResult partialResult)
        {
            Full  = null;
            Delta = null;

            if (partialResult.IsDelta)
            {
                Delta = new SemanticTokensDelta(partialResult.Delta)
                {
                    Edits = partialResult.Delta.Edits
                };
            }

            if (partialResult.IsFull)
            {
                Full = new SemanticTokens(partialResult.Full);
            }
        }
Exemplo n.º 2
0
 public SemanticTokensFullOrDelta(SemanticTokensDelta delta)
 {
     Delta = delta;
     Full = null;
 }