-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FTP ext] Close connection #1324
Conversation
Signed-off-by: tian na <tiantn@cn.ibm.com>
Signed-off-by: tian na <tiantn@cn.ibm.com>
Signed-off-by: tian na <tiantn@cn.ibm.com>
Signed-off-by: tian na <tiantn@cn.ibm.com>
Summary of changes in this PR:
@tiantn @std4lqi Please correct me if any of the above is wrong or incomplete. Thanks! |
Hi @lauren-li, I think you are correct. Thank you! |
Signed-off-by: Lauren Li <45975633+lauren-li@users.noreply.github.com>
@tiantn The code on this branch looks good to me so far. I've made a PR into your Could you please use this to bring your PR up-to-date with |
Close connection - update with master
Thank you @lauren-li ! Thank you for helping resolving the conflicts. 😊 |
@lauren-li @tiantn Hello, sorry for lateness. I wanted to get some help from @VitGottwald with testing this. It seems to me that the issue described in that bug is still occurring. I tested it using the setup described in the related issue (new FTP profile, used in USS tree to open/create/delete folders & files) and in z/OSMF I still get a large list of new jobs (one for each action performed) which do not stop until I close VSCode. |
@katelynienaber Just to double-check, are you testing this from "Run Zowe Explorer FTP VS Code Extension"? (Alternatively, you can run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR seems to fix issue #1196 for me. I see at most 1 FTP task resulting from using the Zowe Explorer FTP extension now, even if I'm opening and closing multiple files/folders and performing various searches.
However, I did encounter an ESLint error when trying to build the vsix file with yarn package
. (See comment below for details.) I think this should be addressed within this PR.
Overall, I think this PR is almost ready to go. Thanks @tiantn for your hard work on this PR, and @std4lqi for your guidance!
const options = { | ||
owner: owner, | ||
}; | ||
const response = (await JobUtils.listJobs(connection, prefix, options)) as IJob[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think as IJob[]
is unnecessary now. JobUtils.listJobs
returns Promise<IJob[]>
. Thanks!
public static async listJobs(connection: any, prefix: string, option?: IListJobOption): Promise<IJob[]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @katelynienaber , as @lauren-li suggested, you can build the vsix file for the FTP extension and install it to try again. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think I used the wrong extension >.>
This is working for me, all started tasks disappear in the MF activity log once they are completed.
Signed-off-by: Lauren Li <45975633+lauren-li@users.noreply.github.com>
…-for-zowe into close-connection
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @lauren-li @std4lqi 😊 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
Proposed changes
Release Notes
Milestone:
Changelog:
Types of changes
What types of changes does your code introduce to Zowe Explorer?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This checklist will be used as reference for both the contributor and the revieweryarn workspace vscode-extension-for-zowe vscode:prepublish
has been executedFurther comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...