Skip to content

Commit

Permalink
Merge pull request #2659 from zowe/remove-optional-param
Browse files Browse the repository at this point in the history
[v3] Make initForZowe argument profileTypeConfigurations required
  • Loading branch information
zFernand0 authored Jan 12, 2024
2 parents 993b5f1 + 3615eb0 commit 4a74ce6
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/early-access/v3/Extenders.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
- `ZoweVsCodeExtension.showVsCodeMessage` removed in favor of `Gui.showMessage`.
- `ZoweVsCodeExtension.inputBox` removed in favor of `Gui.showInputBox`.
- `ZoweVsCodeExtension.promptCredentials` removed in favor of `ZoweVsCodeExtension.updateCredentials`.
- Changed ZoweExplorerExtender.initForZowe `profileTypeConfigurations: imperative.ICommandProfileTypeConfiguration[]` to a required argument
- Changed IApiExplorerExtenders.initForZowe `profileTypeConfigurations: imperative.ICommandProfileTypeConfiguration[]` to a required argument

## New APIs Added

Expand Down
6 changes: 6 additions & 0 deletions packages/eslint-plugin-zowe-explorer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
All notable changes to the "eslint-plugin-zowe-explorer" package will be documented in this file.

## TBD Release

### New features and enhancements

### Bug fixes

## `3.0.0-next.202401121747`

## `3.0.0-next.202311171754`
Expand Down
8 changes: 8 additions & 0 deletions packages/zowe-explorer-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to the "zowe-explorer-api" extension will be documented in this file.

## TBD Release

### New features and enhancements

### Bug fixes

- Changed IApiExplorerExtenders.initForZowe `profileTypeConfigurations: imperative.ICommandProfileTypeConfiguration[]` to a required argument to address issues seen after registration of profile type when not passed. [#2575](https://github.com/zowe/vscode-extension-for-zowe/issues/2575)

## `3.0.0-next.202401121747`

### New features and enhancements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ export interface IApiExplorerExtender {
* might want to check for an existing profile folder with meta-file
* or to create them automatically if it is non-existant.
*/
initForZowe(type: string, profileTypeConfigurations?: imperative.ICommandProfileTypeConfiguration[]): Promise<void>;
initForZowe(type: string, profileTypeConfigurations: imperative.ICommandProfileTypeConfiguration[]): Promise<void>;
}
6 changes: 6 additions & 0 deletions packages/zowe-explorer-ftp-extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
All notable changes to the "zowe-explorer-ftp-extension" extension will be documented in this file.

## TBD Release

### New features and enhancements

### Bug fixes

## `3.0.0-next.202401121747`

### Bug fixes
Expand Down
8 changes: 8 additions & 0 deletions packages/zowe-explorer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to the "vscode-extension-for-zowe" extension will be documented in this file.

## TBD Release

### New features and enhancements

### Bug fixes

- Changed ZoweExplorerExtender.initForZowe `profileTypeConfigurations: imperative.ICommandProfileTypeConfiguration[]` to a required argument to address issues seen after registration of profile type when not passed. [#2575](https://github.com/zowe/vscode-extension-for-zowe/issues/2575)

## `3.0.0-next.202401121747`

### New features and enhancements
Expand Down
2 changes: 1 addition & 1 deletion packages/zowe-explorer/src/ZoweExplorerExtender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class ZoweExplorerExtender implements IApiExplorerExtender, ZoweExplorerT
* @param {string} profileType
* @param {imperative.ICommandProfileTypeConfiguration[]} profileTypeConfigurations
*/
public async initForZowe(profileType: string, profileTypeConfigurations?: zowe.imperative.ICommandProfileTypeConfiguration[]): Promise<void> {
public async initForZowe(profileType: string, profileTypeConfigurations: zowe.imperative.ICommandProfileTypeConfiguration[]): Promise<void> {
// Ensure that when a user has not installed the profile type's CLI plugin
// and/or created a profile that the profile directory in ~/.zowe/profiles
// will be created with the appropriate meta data. If not called the user will
Expand Down

0 comments on commit 4a74ce6

Please sign in to comment.