Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik Raj committed May 18, 2023
1 parent 88799ca commit affca3b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
7 changes: 7 additions & 0 deletions src/vscode-dts/vscode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11319,6 +11319,13 @@ declare module 'vscode' {
clear(): void;
}

export type EnvironmentVariableScope = {
/**
* Any specific workspace folder to get collection for. If unspecified, collection applicable to all workspace folders is returned.
*/
workspaceFolder?: WorkspaceFolder;
};

/**
* A location in the editor at which progress information can be shown. It depends on the
* location how progress is visually represented.
Expand Down
30 changes: 15 additions & 15 deletions src/vscode-dts/vscode.proposed.envCollectionWorkspace.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ declare module 'vscode' {

// https://github.com/microsoft/vscode/issues/182069

export interface ExtensionContext {
/**
* Gets the extension's environment variable collection for this workspace, enabling changes
* to be applied to terminal environment variables.
*
* @param scope The scope to which the environment variable collection applies to.
*/
readonly environmentVariableCollection: EnvironmentVariableCollection & { getScopedEnvironmentVariableCollection(scope: EnvironmentVariableScope): EnvironmentVariableCollection };
}
// export interface ExtensionContext {
// /**
// * Gets the extension's environment variable collection for this workspace, enabling changes
// * to be applied to terminal environment variables.
// *
// * @param scope The scope to which the environment variable collection applies to.
// */
// readonly environmentVariableCollection: EnvironmentVariableCollection & { getScopedEnvironmentVariableCollection(scope: EnvironmentVariableScope): EnvironmentVariableCollection };
// }

export type EnvironmentVariableScope = {
/**
* Any specific workspace folder to get collection for. If unspecified, collection applicable to all workspace folders is returned.
*/
workspaceFolder?: WorkspaceFolder;
};
// export type EnvironmentVariableScope = {
// /**
// * Any specific workspace folder to get collection for. If unspecified, collection applicable to all workspace folders is returned.
// */
// workspaceFolder?: WorkspaceFolder;
// };

export interface EnvironmentVariableCollection extends Iterable<[variable: string, mutator: EnvironmentVariableMutator]> {
/**
Expand Down

0 comments on commit affca3b

Please sign in to comment.