Skip to content

Commit

Permalink
Mark APIs as readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
karthiknadig committed Aug 15, 2023
1 parent 1653e1b commit dad9943
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface EnvironmentWillCreateEvent {
/**
* Options used to create a Python environment.
*/
options: CreateEnvironmentOptions | undefined;
readonly options: CreateEnvironmentOptions | undefined;
}

export type CreateEnvironmentResult =
Expand Down Expand Up @@ -115,7 +115,7 @@ export type EnvironmentDidCreateEvent = CreateEnvironmentResult & {
/**
* Options used to create the Python environment.
*/
options: CreateEnvironmentOptions | undefined;
readonly options: CreateEnvironmentOptions | undefined;
};

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

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

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

0 comments on commit dad9943

Please sign in to comment.