Skip to content

Commit

Permalink
Merge pull request #1756 from zowe/publish-hotfix
Browse files Browse the repository at this point in the history
Update version for zFTP fix
  • Loading branch information
JillieBeanSim committed Apr 21, 2022
2 parents b437854 + 256f00b commit 4b7d12d
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 16 deletions.
10 changes: 5 additions & 5 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"isBackground": true,
"type": "shell",
"options": {
"cwd": "packages/zowe-explorer"
"cwd": "${workspaceFolder}/packages/zowe-explorer"
},
"command": "yarn",
"args": ["watch"],
Expand Down Expand Up @@ -64,7 +64,7 @@
"isBackground": true,
"type": "shell",
"options": {
"cwd": "packages/zowe-explorer-ftp-extension"
"cwd": "${workspaceFolder}/packages/zowe-explorer-ftp-extension"
},
"command": "yarn",
"args": ["watch"],
Expand Down Expand Up @@ -105,7 +105,7 @@
"isBackground": false,
"type": "shell",
"options": {
"cwd": "scripts"
"cwd": "${workspaceFolder}/scripts"
},
"command": "ts-node create-env.ts"
},
Expand All @@ -115,7 +115,7 @@
"isBackground": false,
"type": "shell",
"options": {
"cwd": "packages/zowe-explorer"
"cwd": "${workspaceFolder}/packages/zowe-explorer"
},
"command": "yarn",
"args": ["build:integration"],
Expand All @@ -127,7 +127,7 @@
"isBackground": false,
"type": "shell",
"options": {
"cwd": "scripts"
"cwd": "${workspaceFolder}/scripts"
},
"command": "ts-node clean-env.ts"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-zowe-explorer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-zowe-explorer",
"version": "1.23.0-SNAPSHOT",
"version": "1.23.1",
"description": "Custom ESLint Rules for ZOWE Explorer",
"keywords": [
"eslint",
Expand Down
2 changes: 1 addition & 1 deletion packages/zowe-explorer-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zowe/zowe-explorer-api",
"version": "1.23.0-SNAPSHOT",
"version": "1.23.1",
"description": "Extensibility API for Zowe Explorer.",
"publisher": "Zowe",
"author": "Zowe",
Expand Down
4 changes: 4 additions & 0 deletions packages/zowe-explorer-ftp-extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## `1.23.1`

- BugFix: Added a warning prompt so the user is aware some content may be truncated. [#1746](https://github.com/zowe/vscode-extension-for-zowe/pull/1746)

## `1.22.0`

- Added unit tests for the MVS and JES functionality [#1632](https://github.com/zowe/vscode-extension-for-zowe/pull/1632).
Expand Down
4 changes: 2 additions & 2 deletions packages/zowe-explorer-ftp-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Zowe",
"license": "EPL-2.0",
"description": "Adds zFTP support to Zowe Explorer demonstrating how to extend the Zowe Explorer using its extensibility API.",
"version": "1.23.0-SNAPSHOT",
"version": "1.23.1",
"icon": "resources/zowe_ftp_logo.png",
"repository": {
"url": "https://github.com/zowe/vscode-extension-for-zowe"
Expand Down Expand Up @@ -46,7 +46,7 @@
"vscode": "^1.43.0"
},
"dependencies": {
"@zowe/zowe-explorer-api": "1.23.0-SNAPSHOT",
"@zowe/zowe-explorer-api": "1.23.1",
"@zowe/zos-ftp-for-zowe-cli": "1.5.0",
"tmp": "0.2.1"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/zowe-explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-extension-for-zowe",
"displayName": "%displayName%",
"description": "%description%",
"version": "1.23.0-SNAPSHOT",
"version": "1.23.1",
"publisher": "Zowe",
"author": "Zowe",
"license": "EPL-2.0",
Expand Down Expand Up @@ -1703,7 +1703,7 @@
"@types/promise-queue": "^2.2.0",
"@types/selenium-webdriver": "^3.0.4",
"@types/yargs": "^11.0.0",
"eslint-plugin-zowe-explorer": "1.23.0-SNAPSHOT",
"eslint-plugin-zowe-explorer": "1.23.1",
"@typescript-eslint/eslint-plugin": "^2.31.0",
"@typescript-eslint/parser": "^2.31.0",
"eslint": "^6.8.0",
Expand Down Expand Up @@ -1743,7 +1743,7 @@
"webpack-cli": "^3.3.11"
},
"dependencies": {
"@zowe/zowe-explorer-api": "1.23.0-SNAPSHOT",
"@zowe/zowe-explorer-api": "1.23.1",
"fs-extra": "8.0.1",
"isbinaryfile": "4.0.4",
"js-yaml": "3.13.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/zowe-explorer/src/uss/ZoweUSSNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import * as globals from "../globals";
import * as vscode from "vscode";
import * as fs from "fs";
import * as path from "path";
import * as moment from "moment";
import { Session, IProfileLoaded } from "@zowe/imperative";
import { IZoweUSSTreeNode, ZoweTreeNode, IZoweTree, ValidProfileEnum } from "@zowe/zowe-explorer-api";
import { Profiles } from "../Profiles";
Expand Down Expand Up @@ -439,7 +438,7 @@ export class ZoweUSSNode extends ZoweTreeNode implements IZoweUSSTreeNode {
this.downloadedInternal = value;

if (value) {
this.downloadedTime = moment().toISOString();
this.downloadedTime = new Date().toISOString();
this.tooltip = injectAdditionalDataToTooltip(this, this.fullPath);
}

Expand Down
5 changes: 3 additions & 2 deletions packages/zowe-explorer/src/uss/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*/

// tslint:disable-next-line: no-duplicate-imports
import * as moment from "moment";
import { ZoweUSSNode } from "../uss/ZoweUSSNode";

/**
Expand All @@ -22,7 +21,9 @@ import { ZoweUSSNode } from "../uss/ZoweUSSNode";
export function injectAdditionalDataToTooltip(node: ZoweUSSNode, tooltip: string) {
if (node.downloaded && node.downloadedTime) {
// TODO: Add time formatter to localization so we will use not just US variant
return `${tooltip} (Downloaded: ${moment(node.downloadedTime).format("HH:mm MM/DD/YY")})`;
return `${tooltip} (Downloaded: ${new Date(node.downloadedTime)
.toISOString()
.replace(/(\d{4})-(\d{2})-(\d{2})T((\d{2}):(\d{2}):([^Z]+))Z/, "$5:$6 $2/$3/$1")})`;
}

return tooltip;
Expand Down

0 comments on commit 4b7d12d

Please sign in to comment.