agentHostGitStateService.ts ×1

Frontier kind: Code frontier

unlabeled · c_270e75736c08

509 tests · 19112 LOC · 84 files · introduces 0 tests · 48 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
1 range48 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1748 ranges19112 lines · 84 files · Browse complete extent
All tests (intent)
509 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

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 native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 48 introduced LOC across 1 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/common/agentHostGitStateService.ts 48 introduced LOC · 1 range

Open complete file

1 > /*--------------------------------------------------------------------------------------------- agentHostGitStateService.ts
2 > * Copyright (c) Microsoft Corporation. All rights reserved.
3 > * Licensed under the MIT License. See License.txt in the project root for license information.
4 > *--------------------------------------------------------------------------------------------*/
5 >
6 > import { URI } from '../../../base/common/uri.js';
7 > import { Event } from '../../../base/common/event.js';
8 > import { createDecorator } from '../../instantiation/common/instantiation.js';
9 > import { ISessionGitHubState } from './state/sessionState.js';
10 >
11 > export const META_GIT_STATE = 'agentHost.git';
12 > export const META_GITHUB_STATE = 'agentHost.github';
13 >
14 > export const GIT_DB_METADATA_KEYS: Record<string, true> = {
15 > [META_GIT_STATE]: true,
16 > [META_GITHUB_STATE]: true,
17 > };
18 >
19 > export const IAgentHostGitStateService = createDecorator<IAgentHostGitStateService>('agentHostGitStateService');
20 >
21 > export interface IAgentHostGitStateService {
22 > readonly _serviceBrand: undefined;
23 >
24 > /**
25 > * Fires when the git state for a session is refreshed.
26 > */
27 > readonly onDidRefreshSessionGitState: Event<string>;
28 >
29 > /**
30 > * Refreshes the git state for a given session.
31 > * @param sessionKey The key of the session for which to refresh the git state.
32 > * @param workingDirectory Optional working directory override; when omitted, the session summary's working directory is used.
33 > */
34 > refreshSessionGitState(sessionKey: string, workingDirectory?: URI): Promise<void>;
35 >
36 > /**
37 > * Sets the GitHub state for a given session.
38 > * @param sessionKey The key of the session for which to set the GitHub state.
39 > * @param state The GitHub state to set.
40 > */
41 > setSessionGitHubState(sessionKey: string, state: ISessionGitHubState): Promise<void>;
42 >
43 > /**
44 > * Find a GitHub pull request for the given session and save it to the session state.
45 > * @param sessionKey The key of the session for which to check the GitHub pull request.
46 > */
47 > attachSessionGitHubPullRequest(sessionKey: string): Promise<void>;
48 > }