@@ -82,7 +82,13 @@ export namespace Schemas {
8282 export const vscodeChatCodeCompareBlock = 'vscode-chat-code-compare-block' ;
8383
8484 /** Scheme used for the chat input editor. */
85- export const vscodeChatSesssion = 'vscode-chat-editor' ;
85+ export const vscodeChatEditor = 'vscode-chat-editor' ;
86+
87+ /** Scheme used for the chat input part */
88+ export const vscodeChatInput = 'chatSessionInput' ;
89+
90+ /** Scheme used for local chat session content */
91+ export const vscodeLocalChatSession = 'vscode-chat-session' ;
8692
8793 /**
8894 * Scheme used internally for webviews that aren't linked to a resource (i.e. not custom editors)
@@ -139,6 +145,17 @@ export namespace Schemas {
139145 * Scheme used for the accessible view
140146 */
141147 export const accessibleView = 'accessible-view' ;
148+
149+ /**
150+ * Used for snapshots of chat edits
151+ */
152+ export const chatEditingSnapshotScheme = 'chat-editing-snapshot-text-model' ;
153+ export const chatEditingModel = 'chat-editing-text-model' ;
154+
155+ /**
156+ * Used for rendering multidiffs in copilot agent sessions
157+ */
158+ export const copilotPr = 'copilot-pr' ;
142159}
143160
144161export function matchesScheme ( target : URI | string , scheme : string ) : boolean {
@@ -404,15 +421,15 @@ export namespace COI {
404421 * isn't enabled the current context
405422 */
406423 export function addSearchParam ( urlOrSearch : URLSearchParams | Record < string , string > , coop : boolean , coep : boolean ) : void {
407- if ( ! ( < any > globalThis ) . crossOriginIsolated ) {
424+ if ( ! ( globalThis as typeof globalThis & { crossOriginIsolated ?: boolean } ) . crossOriginIsolated ) {
408425 // depends on the current context being COI
409426 return ;
410427 }
411428 const value = coop && coep ? '3' : coep ? '2' : '1' ;
412429 if ( urlOrSearch instanceof URLSearchParams ) {
413430 urlOrSearch . set ( coiSearchParamName , value ) ;
414431 } else {
415- ( < Record < string , string > > urlOrSearch ) [ coiSearchParamName ] = value ;
432+ urlOrSearch [ coiSearchParamName ] = value ;
416433 }
417434 }
418435}
0 commit comments