Skip to content

Commit 56b5107

Browse files
authored
some tiny prep work for microsoft#249519 (microsoft#250863)
1 parent a1d277f commit 56b5107

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/vs/workbench/contrib/chat/common/chatModel.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ import { IChatRequestVariableValue } from './chatVariables.js';
3333
import { ChatAgentLocation, ChatMode } from './constants.js';
3434

3535
interface IBaseChatRequestVariableEntry {
36-
id: string;
37-
fullName?: string;
38-
icon?: ThemeIcon;
39-
name: string;
40-
modelDescription?: string;
36+
readonly id: string;
37+
readonly fullName?: string;
38+
readonly icon?: ThemeIcon;
39+
readonly name: string;
40+
readonly modelDescription?: string;
4141

4242
/**
4343
* The offset-range in the prompt. This means this entry has been explicitly typed out
4444
* by the user.
4545
*/
46-
range?: IOffsetRange;
47-
value: IChatRequestVariableValue;
48-
references?: IChatContentReference[];
46+
readonly range?: IOffsetRange;
47+
readonly value: IChatRequestVariableValue;
48+
readonly references?: IChatContentReference[];
4949

5050
omittedState?: OmittedState;
5151
}
@@ -83,20 +83,20 @@ export interface IChatRequestImplicitVariableEntry extends IBaseChatRequestVaria
8383
readonly value: URI | Location | undefined;
8484
readonly isSelection: boolean;
8585
readonly isPromptFile: boolean;
86-
enabled: boolean;
86+
readonly enabled: boolean;
8787
}
8888

8989
export interface IChatRequestPasteVariableEntry extends IBaseChatRequestVariableEntry {
9090
readonly kind: 'paste';
91-
code: string;
92-
language: string;
93-
pastedLines: string;
91+
readonly code: string;
92+
readonly language: string;
93+
readonly pastedLines: string;
9494

9595
// This is only used for old serialized data and should be removed once we no longer support it
96-
fileName: string;
96+
readonly fileName: string;
9797

9898
// This is only undefined on old serialized data
99-
copiedFrom: {
99+
readonly copiedFrom: {
100100
readonly uri: URI;
101101
readonly range: IRange;
102102
} | undefined;
@@ -119,7 +119,7 @@ export interface IImageVariableEntry extends IBaseChatRequestVariableEntry {
119119
readonly mimeType?: string;
120120
}
121121

122-
export interface INotebookOutputVariableEntry extends Omit<IBaseChatRequestVariableEntry, 'kind'> {
122+
export interface INotebookOutputVariableEntry extends IBaseChatRequestVariableEntry {
123123
readonly kind: 'notebookOutput';
124124
readonly outputIndex?: number;
125125
readonly mimeType?: string;

0 commit comments

Comments
 (0)