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);
            }
        }
Beispiel #2
0
 public SemanticTokensFullOrDelta(SemanticTokensDelta delta)
 {
     Delta = delta;
     Full = null;
 }