agentHostTerminalManager.ts ×6

Frontier kind: Code frontier

unlabeled · c_bf2a3840de7f

2 tests · 25017 LOC · 110 files · introduces 0 tests · 27 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges27 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
2095 ranges25017 lines · 110 files · Browse complete extent
All tests (intent)
2 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: 27 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/agentHostTerminalManager.ts 27 introduced LOC · 6 ranges

Open complete file

251 const outputTerminal = this._outputTerminals.get(uri);
252 if (outputTerminal) {
254 > title: outputTerminal.title,
255 > content: outputTerminal.content,
256 > exitCode: outputTerminal.exitCode,
257 > claim: outputTerminal.claim,
258 > isPty: false,
259 > };
260 > }
261 const terminal = this._terminals.get(uri);
262 if (!terminal) {
568 /** Check whether a terminal exists. */
569 hasTerminal(uri: string): boolean {
570 > return this._terminals.has(uri); agentHostTerminalManager.ts
571 > }
572
573 /** Whether the terminal has shell integration active for command detection. */
832 */
833 createOutputTerminal(uri: string, options: { title: string; claim: TerminalClaim }): void {
834 > if (this._terminals.has(uri) || this._outputTerminals.has(uri)) { agentHostTerminalManager.ts
835 throw new Error(`Terminal already exists: ${uri}`);
836 }
837 > this._outputTerminals.set(uri, { agentHostTerminalManager.ts
838 > title: options.title,
839 > content: [],
840 > contentSize: 0,
841 > claim: options.claim,
842 > });
843 > }
844
845 /** Append plain-text data to an output-only terminal and stream it to subscribers. */
846 appendOutputTerminalData(uri: string, data: string): void {
847 > const terminal = this._outputTerminals.get(uri); agentHostTerminalManager.ts
848 > if (!terminal || data.length === 0) {
849 return;
850 }
851 > this._appendToContent(terminal, data); agentHostTerminalManager.ts
852 > this._trimContent(terminal);
853 > this._stateManager.dispatchServerAction(uri, {
854 > type: ActionType.TerminalData,
855 > data,
856 > });
857 > }
858
859 /** Clear an output-only terminal's content (e.g. when cumulative source output was rewritten). */