From 2eebc294105e3a4e337058d2a9bdfe44f9dfbc52 Mon Sep 17 00:00:00 2001 From: Matt Bierner <12821956+mjbvz@users.noreply.github.com> Date: Mon, 3 Nov 2025 14:31:27 -0800 Subject: [PATCH] Hide some internals of `ChatEditorUri` We don't need to export this namespace anymore --- .../contrib/chat/browser/chatEditorInput.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/vs/workbench/contrib/chat/browser/chatEditorInput.ts b/src/vs/workbench/contrib/chat/browser/chatEditorInput.ts index b61b6cfcada..bf9fcb14a89 100644 --- a/src/vs/workbench/contrib/chat/browser/chatEditorInput.ts +++ b/src/vs/workbench/contrib/chat/browser/chatEditorInput.ts @@ -60,11 +60,10 @@ export class ChatEditorInput extends EditorInput implements IEditorCloseHandler private model: IChatModel | undefined; static getNewEditorUri(): URI { - const handle = Math.floor(Math.random() * 1e9); - return ChatEditorUri.forHandle(handle); + return ChatEditorUri.getNewEditorUri(); } - static getNextCount(inputName: string): number { + private static getNextCount(inputName: string): number { let count = 0; while (ChatEditorInput.countsInUseMap.get(inputName)?.has(count)) { count++; @@ -352,11 +351,12 @@ export class ChatEditorModel extends Disposable { } -export namespace ChatEditorUri { +namespace ChatEditorUri { - export const scheme = Schemas.vscodeChatEditor; + const scheme = Schemas.vscodeChatEditor; - export function forHandle(handle: number): URI { + export function getNewEditorUri(): URI { + const handle = Math.floor(Math.random() * 1e9); return URI.from({ scheme, path: `chat-${handle}` }); }