Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"sourceMap": false,
"allowJs": true,
"resolveJsonModule": true,
"isolatedModules": false,
"isolatedModules": true,
"outDir": "../out/vs",
"types": [
"@webgpu/types",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@
import { localize } from '../../../../../nls.js';
import { Codicon } from '../../../../../base/common/codicons.js';
import { ThemeIcon } from '../../../../../base/common/themables.js';
import { localChatSessionType } from '../../common/chatSessionsService.js';

export const AGENT_SESSIONS_VIEW_CONTAINER_ID = 'workbench.viewContainer.agentSessions';

Copy link

Copilot AI Nov 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Extra blank line added. This should be removed to maintain consistent formatting.

Suggested change

Copilot uses AI. Check for mistakes.
export const AGENT_SESSIONS_VIEW_ID = 'workbench.view.agentSessions';

export enum AgentSessionProviders {
Local = localChatSessionType,
Local = 'local',
Background = 'copilotcli',
Cloud = 'copilot-cloud-agent',
}

export function getAgentSessionProviderName(provider: AgentSessionProviders): string {

Copy link

Copilot AI Nov 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Extra blank line added. This should be removed to maintain consistent formatting.

Suggested change

Copilot uses AI. Check for mistakes.
switch (provider) {
case AgentSessionProviders.Local:
return localize('chat.session.providerLabel.local', "Local");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ import { getCleanPromptName } from '../config/promptFileLocations.js';
import { PROMPT_LANGUAGE_ID, PromptsType, getPromptsTypeForLanguageId } from '../promptTypes.js';
import { PromptFilesLocator } from '../utils/promptFilesLocator.js';
import { PromptFileParser, ParsedPromptFile, PromptHeaderAttributes } from '../promptFileParser.js';
import { IAgentInstructions, IAgentSource, IChatPromptSlashCommand, ICustomAgent, IExtensionPromptPath, ILocalPromptPath, IPromptPath, IPromptsService, IClaudeSkill, IUserPromptPath, PromptsStorage } from './promptsService.js';
import { IAgentInstructions, type IAgentSource, IChatPromptSlashCommand, ICustomAgent, IExtensionPromptPath, ILocalPromptPath, IPromptPath, IPromptsService, IClaudeSkill, IUserPromptPath, PromptsStorage } from './promptsService.js';
import { Delayer } from '../../../../../../base/common/async.js';
import { Schemas } from '../../../../../../base/common/network.js';
import { IExtensionService } from '../../../../../services/extensions/common/extensions.js';


Copy link

Copilot AI Nov 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Extra blank line added. This should be removed to maintain consistent formatting.

Suggested change

Copilot uses AI. Check for mistakes.
/**
* Provides prompt services.
*/
Expand Down
4 changes: 2 additions & 2 deletions src/vs/workbench/contrib/chat/common/tools/promptTsxTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* It should be kept in sync with the types in that file.
*/

export declare const enum PromptNodeType {
export const enum PromptNodeType {
Piece = 1,
Text = 2
}
Expand All @@ -23,7 +23,7 @@ export interface TextJSON {
* less descriptive than the actual constructor, as we only care to preserve
* the element data that the renderer cares about.
*/
export declare const enum PieceCtorKind {
export const enum PieceCtorKind {
BaseChatMessage = 1,
Other = 2,
ImageChatMessage = 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ export async function waitForIdleWithPromptHeuristics(
}
}

const enum TerminalState {
Initial,
Prompt,
Executing,
PromptAfterExecuting,
}

/**
* Tracks the terminal for being idle on a prompt input. This must be called before `executeCommand`
* is called.
Expand Down Expand Up @@ -182,12 +189,6 @@ export async function trackIdleOnPrompt(
// and the terminal is idle. Note that D is treated as a signal for executed since shell
// integration sometimes lacks the C sequence either due to limitations in the integation or the
// required hooks aren't available.
const enum TerminalState {
Initial,
Prompt,
Executing,
PromptAfterExecuting,
}
store.add(onData(e => {
// Update state
// p10k fires C as `133;C;`
Expand Down
Loading