src/vs/platform/agentHost/common/annotationsUri.ts
48 LOC · 46 covered · 2 uncovered · 9 ranges · 3762 concepts · 5 introducers · 1682 tests
File neighbourhood
The centred file is linked to every concept that introduces one of its ranges, every test that runs code from the file, and the gray connector concepts standing between those tests and the file's own introducer concepts. Undirected links join concepts to every file where they introduce source and concepts to the tests they introduce; arrows show specialization between the displayed concepts and bridge only concepts omitted from this view. Concept colors match the source ranges below; connector concepts have no source color and are shown in gray.
Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the file
In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the related-file, concept, and source links on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the related-file, concept, and source links on this page while the interactive map is unavailable.
/*---------------------------------------------------------------------------------------------
annotationsUri.ts ×3
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import type { URI } from './state/sessionState.js';
/**
* Helpers for building / parsing the URI clients subscribe to in order to
* receive an {@link import('./state/protocol/state.js').AnnotationsState}.
*
* Each session exposes exactly one annotations channel, nested under the
* session URI namespace:
*
* <sessionUri>/annotations
*
* Keeping the annotations URI nested under the session URI lets the server
* cleanly tear down a session's annotations when that session is disposed
* (the reverse-lookup is just a string-prefix scan, mirroring changesets).
*/
/** Marker injected into an annotations channel URI's path. */
const ANNOTATIONS_PATH_SEGMENT = '/annotations';
/** Returns the subscribable URI for a session's annotations channel. */
export function buildAnnotationsUri(sessionUri: URI): URI {
}
/**
* Parses an annotations channel URI back into its owning `sessionUri`, or
* returns `undefined` if `uri` is not an annotations channel URI.
*/
export function parseAnnotationsUri(uri: URI): { sessionUri: URI } | undefined {
}
if (!sessionUri) {
return undefined;
}
}
/** Returns `true` iff `uri` is a session's annotations channel URI. */
export function isAnnotationsUri(uri: URI): boolean {
}