Repository navigation
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Use public Protocol 18.14.2 and its required JSON dependencies while preserving the editor-facing protocol APIs. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Replace the public Protocol 18.14.2 package with Protocol.Internal 18.14.12 and its dependency graph for VS 18, update the symlink, VSIX content and references, adapt to Internal's union, FileEvent, Command, method-name and content-change APIs, and apply ProtocolJsonSerializerOptions.Configure to the PTVS-owned STJ options. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kayle
force-pushed
the
dev/kayle/ptvs-protocol-migration
branch
from
November 17, 2026 16:05
9dc2e67 to
246a6de
Compare
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Depends on #8672. This branch includes #8672's commit f487374 (STJ middle layer/serialization on public Protocol 18.14.2); review only the top commit 246a6de. Retarget/rebase after #8672 merges.
Migrates the VS 18 Pylance language client (in-process C#
ILanguageClient; Pylance itself is unchanged) fromMicrosoft.VisualStudio.LanguageServer.ProtocoltoMicrosoft.VisualStudio.LanguageServer.Protocol.Internal.Changes
Build/18.0/packages.config: Protocol 18.14.2 → Protocol.Internal 18.14.12, plus the versions its nuspec requires (Text/CoreUtility 18.14.8, Threading 18.13.4, Validation 18.7.19, Composition 18.9.55, Nerdbank.MessagePack 1.2.34, System.Collections.Immutable 10.0.10, and transitive packages). Client stays at 18.0.14-preview (its assemblies reference neither legacy Protocol nor Extensions).PreBuild.ps1symlink,Core.csprojVSIX content, andPythonTools/PythonToolsTestsreferences now use the Internal assembly..Valuepattern matching forCompletionItem.Documentation/TextEdit,FileEvent.Type,Command.CommandValue,Requests/Notificationsmethod constants,TextDocumentContentChangePartialwrapped inTextDocumentContentChangeEvent, and using-aliases for PTVS DTOs whose names Internal now also defines. Wire JSON is unchanged.ProtocolJsonSerializerOptions.Configureis applied to PTVS's own STJ options (ProtocolJsonSerialization.Options). No access toJsonRpc.MessageHandler/formatter internals (the earlier revision's inaccessible usage is gone); the host-owned JsonRpc path relies on Internal's attribute-applied union converters.Remaining limitations
JsonRpcuse the host formatter's options, which PTVS cannot configure publicly. Internal's attribute-applied union converters round-trip under plain STJ options, but this path hasn't been exercised in an installed VS.Build/16.0andBuild/17.0packages.config still pin the legacy Protocol; those targets can't build the STJ client after Use System.Text.Json throughout the Pylance language client #8672 anyway.