@@ -33,19 +33,19 @@ import { IChatRequestVariableValue } from './chatVariables.js';
33
33
import { ChatAgentLocation , ChatMode } from './constants.js' ;
34
34
35
35
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 ;
41
41
42
42
/**
43
43
* The offset-range in the prompt. This means this entry has been explicitly typed out
44
44
* by the user.
45
45
*/
46
- range ?: IOffsetRange ;
47
- value : IChatRequestVariableValue ;
48
- references ?: IChatContentReference [ ] ;
46
+ readonly range ?: IOffsetRange ;
47
+ readonly value : IChatRequestVariableValue ;
48
+ readonly references ?: IChatContentReference [ ] ;
49
49
50
50
omittedState ?: OmittedState ;
51
51
}
@@ -83,20 +83,20 @@ export interface IChatRequestImplicitVariableEntry extends IBaseChatRequestVaria
83
83
readonly value : URI | Location | undefined ;
84
84
readonly isSelection : boolean ;
85
85
readonly isPromptFile : boolean ;
86
- enabled : boolean ;
86
+ readonly enabled : boolean ;
87
87
}
88
88
89
89
export interface IChatRequestPasteVariableEntry extends IBaseChatRequestVariableEntry {
90
90
readonly kind : 'paste' ;
91
- code : string ;
92
- language : string ;
93
- pastedLines : string ;
91
+ readonly code : string ;
92
+ readonly language : string ;
93
+ readonly pastedLines : string ;
94
94
95
95
// 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 ;
97
97
98
98
// This is only undefined on old serialized data
99
- copiedFrom : {
99
+ readonly copiedFrom : {
100
100
readonly uri : URI ;
101
101
readonly range : IRange ;
102
102
} | undefined ;
@@ -119,7 +119,7 @@ export interface IImageVariableEntry extends IBaseChatRequestVariableEntry {
119
119
readonly mimeType ?: string ;
120
120
}
121
121
122
- export interface INotebookOutputVariableEntry extends Omit < IBaseChatRequestVariableEntry , 'kind' > {
122
+ export interface INotebookOutputVariableEntry extends IBaseChatRequestVariableEntry {
123
123
readonly kind : 'notebookOutput' ;
124
124
readonly outputIndex ?: number ;
125
125
readonly mimeType ?: string ;
0 commit comments