Skip to content

Commit dad9943

Browse files
committed
Mark APIs as readonly
1 parent 1653e1b commit dad9943

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/client/pythonEnvironments/creation/proposed.createEnvApis.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface EnvironmentWillCreateEvent {
4040
/**
4141
* Options used to create a Python environment.
4242
*/
43-
options: CreateEnvironmentOptions | undefined;
43+
readonly options: CreateEnvironmentOptions | undefined;
4444
}
4545

4646
export type CreateEnvironmentResult =
@@ -115,7 +115,7 @@ export type EnvironmentDidCreateEvent = CreateEnvironmentResult & {
115115
/**
116116
* Options used to create the Python environment.
117117
*/
118-
options: CreateEnvironmentOptions | undefined;
118+
readonly options: CreateEnvironmentOptions | undefined;
119119
};
120120

121121
/**
@@ -163,14 +163,14 @@ export interface ProposedCreateEnvironmentAPI {
163163
* provider (including internal providers). This will also receive any options passed in
164164
* or defaults used to create environment.
165165
*/
166-
onWillCreateEnvironment: Event<EnvironmentWillCreateEvent>;
166+
readonly onWillCreateEnvironment: Event<EnvironmentWillCreateEvent>;
167167

168168
/**
169169
* This API can be used to detect when the environment provider exits for any registered
170170
* provider (including internal providers). This will also receive created environment path,
171171
* any errors, or user actions taken from the provider.
172172
*/
173-
onDidCreateEnvironment: Event<EnvironmentDidCreateEvent>;
173+
readonly onDidCreateEnvironment: Event<EnvironmentDidCreateEvent>;
174174

175175
/**
176176
* This API will show a QuickPick to select an environment provider from available list of

0 commit comments

Comments
 (0)