/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/LanguageServer/Protocol/Workspaces/TrackedDocumentInfo.cs
16 строк
905 B
David Barbet
Store client's version for open docs in LSP (#80064)
06 сен 2025, 08:41
Не верифицирован
06 сен 2025, 08:41
8008e0c
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using Microsoft.CodeAnalysis.Text; using Roslyn.LanguageServer.Protocol; namespace Microsoft.CodeAnalysis.LanguageServer; /// <summary> /// Holds state information from the client about a tracked LSP document. See <see cref="LspWorkspaceManager"/> /// </summary> /// <param name="SourceText">A snapshot of the text as seen by LSP.</param> /// <param name="LanguageId">The language id for the text, from <see cref="TextDocumentItem.LanguageId"/> </param> /// <param name="LspVersion">The client version associated with the text, from <see cref="VersionedTextDocumentIdentifier.Version"/></param> internal record struct TrackedDocumentInfo(SourceText SourceText, string LanguageId, int LspVersion);