## 1.111.0
This commit is contained in:
parent
e64c2a988c
commit
4ad075088a
2
type-script-helper/.vscode/settings.json
vendored
2
type-script-helper/.vscode/settings.json
vendored
@ -3,8 +3,10 @@
|
|||||||
"editor.wordWrap": "off"
|
"editor.wordWrap": "off"
|
||||||
},
|
},
|
||||||
"cSpell.words": [
|
"cSpell.words": [
|
||||||
|
"Infineon",
|
||||||
"initialise",
|
"initialise",
|
||||||
"Kanban",
|
"Kanban",
|
||||||
|
"Phares",
|
||||||
"VSIX"
|
"VSIX"
|
||||||
],
|
],
|
||||||
"files.eol": "\n",
|
"files.eol": "\n",
|
||||||
|
41
type-script-helper/.vscode/tasks.json
vendored
Normal file
41
type-script-helper/.vscode/tasks.json
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"type": "npm",
|
||||||
|
"script": "tsc-build",
|
||||||
|
"group": "build",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"label": "npm: tsc-build",
|
||||||
|
"detail": "tsc"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "npm",
|
||||||
|
"script": "tsc-clean",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"label": "npm: tsc-clean",
|
||||||
|
"detail": "tsc --build --clean"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "npm",
|
||||||
|
"script": "vscode:publish",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"label": "npm: vscode:publish",
|
||||||
|
"detail": "node node_modules/@vscode/vsce/vsce package"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "npm",
|
||||||
|
"script": "webpack",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"label": "npm: webpack",
|
||||||
|
"detail": "webpack --config ./build/node-extension.webpack.config.js"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "npm",
|
||||||
|
"script": "watch",
|
||||||
|
"group": "build",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"label": "npm: watch",
|
||||||
|
"detail": "concurrently \"rollup -c -w\" \"webpack --watch --config ./build/node-extension.webpack.config.js\""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -171,3 +171,14 @@ None
|
|||||||
-----------------------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
- Open Sub-Kanban in New Window
|
- Open Sub-Kanban in New Window
|
||||||
|
|
||||||
|
## 1.111.0 1736196204601 = 638717930046010000 = 2025-0.Winter = Mon Jan 06 2025 13:43:24 GMT-0700 (Mountain Standard Time)
|
||||||
|
-----------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
- Added season to insert date
|
||||||
|
- Removed
|
||||||
|
- kanban.refreshBoth
|
||||||
|
- kanban.refreshSidebar
|
||||||
|
- kanban.refreshWebView
|
||||||
|
- kanban.debugReload
|
||||||
|
- columns-to-cards-webview-view-provider-view
|
||||||
|
1958
type-script-helper/package-lock.json
generated
1958
type-script-helper/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -11,7 +11,7 @@
|
|||||||
"fileTemplates.author": {
|
"fileTemplates.author": {
|
||||||
"type": [
|
"type": [
|
||||||
"string",
|
"string",
|
||||||
"null"
|
"Mike Phares"
|
||||||
],
|
],
|
||||||
"default": null,
|
"default": null,
|
||||||
"description": "Value to use to replace #{author} variable."
|
"description": "Value to use to replace #{author} variable."
|
||||||
@ -19,7 +19,7 @@
|
|||||||
"fileTemplates.company": {
|
"fileTemplates.company": {
|
||||||
"type": [
|
"type": [
|
||||||
"string",
|
"string",
|
||||||
"null"
|
"Infineon Technologies Americas Corp."
|
||||||
],
|
],
|
||||||
"default": null,
|
"default": null,
|
||||||
"description": "Value to use to replace #{company} variable."
|
"description": "Value to use to replace #{company} variable."
|
||||||
@ -72,26 +72,6 @@
|
|||||||
"command": "kanban.openInNewWindow",
|
"command": "kanban.openInNewWindow",
|
||||||
"title": "Open Sub-Kanban in New Window"
|
"title": "Open Sub-Kanban in New Window"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"category": "Kanban",
|
|
||||||
"command": "kanban.refreshBoth",
|
|
||||||
"title": "Refresh Kanban Both"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"category": "Kanban",
|
|
||||||
"command": "kanban.refreshSidebar",
|
|
||||||
"title": "Refresh Kanban Sidebar"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"category": "Kanban",
|
|
||||||
"command": "kanban.refreshWebView",
|
|
||||||
"title": "Refresh Kanban WebView"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"category": "Kanban",
|
|
||||||
"command": "kanban.debugReload",
|
|
||||||
"title": "Debug Reload Kanban"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"category": "Kanban",
|
"category": "Kanban",
|
||||||
"command": "kanban.openWithTextEditor",
|
"command": "kanban.openWithTextEditor",
|
||||||
@ -212,28 +192,8 @@
|
|||||||
"command": "webView.webView",
|
"command": "webView.webView",
|
||||||
"title": "Web View"
|
"title": "Web View"
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"views": {
|
|
||||||
"columns-to-cards-webview-view-provider-view": [
|
|
||||||
{
|
|
||||||
"contextualTitle": "Kanban",
|
|
||||||
"icon": "media/checklist.svg",
|
|
||||||
"id": "columns-to-cards-webview-view-provider",
|
|
||||||
"name": "Kanban",
|
|
||||||
"type": "webview"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"viewsContainers": {
|
|
||||||
"activitybar": [
|
|
||||||
{
|
|
||||||
"icon": "media/checklist.svg",
|
|
||||||
"id": "columns-to-cards-webview-view-provider-view",
|
|
||||||
"title": "Kanban"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vscode/vsce": "^3.2.1",
|
"@vscode/vsce": "^3.2.1",
|
||||||
"polka": "^0.5.2"
|
"polka": "^0.5.2"
|
||||||
@ -275,5 +235,5 @@
|
|||||||
"webpack": "webpack --config ./build/node-extension.webpack.config.js",
|
"webpack": "webpack --config ./build/node-extension.webpack.config.js",
|
||||||
"watch": "concurrently \"rollup -c -w\" \"webpack --watch --config ./build/node-extension.webpack.config.js\""
|
"watch": "concurrently \"rollup -c -w\" \"webpack --watch --config ./build/node-extension.webpack.config.js\""
|
||||||
},
|
},
|
||||||
"version": "1.110.0"
|
"version": "1.111.0"
|
||||||
}
|
}
|
||||||
|
@ -137,12 +137,34 @@ function insertDateTimeLogic(): undefined {
|
|||||||
const selection = textEditor.selection;
|
const selection = textEditor.selection;
|
||||||
textEditor.edit(editBuilder => {
|
textEditor.edit(editBuilder => {
|
||||||
var range;
|
var range;
|
||||||
let date = new Date();
|
const now: Date = new Date();
|
||||||
let timezoneOffset = date.getTimezoneOffset();
|
const oneDay: number = 1000 * 60 * 60 * 24;
|
||||||
let seconds = date.getTime().valueOf() + timezoneOffset;
|
const start: Date = new Date(now.getFullYear(), 0, 0);
|
||||||
let epoch = seconds * 10000;
|
const diff: number = (now.getTime() - start.getTime()) + ((start.getTimezoneOffset() - now.getTimezoneOffset()) * 60 * 1000);
|
||||||
let ticks = epoch + 621355968000000000;
|
const day: number = Math.floor(diff / oneDay);
|
||||||
let dateText = seconds + " = " + ticks + " = " + date.toString();
|
const timezoneOffset = now.getTimezoneOffset();
|
||||||
|
const seconds = now.getTime().valueOf() + timezoneOffset;
|
||||||
|
const epoch = seconds * 10000;
|
||||||
|
const ticks = epoch + 621355968000000000;
|
||||||
|
let season: string = now.getFullYear() + "-";
|
||||||
|
if (day < 78) {
|
||||||
|
season += "0.Winter";
|
||||||
|
} else if (day < 124) {
|
||||||
|
season += "1.Spring";
|
||||||
|
} else if (day < 171) {
|
||||||
|
season += "2.Spring";
|
||||||
|
} else if (day < 217) {
|
||||||
|
season += "3.Summer";
|
||||||
|
} else if (day < 264) {
|
||||||
|
season += "4.Summer";
|
||||||
|
} else if (day < 309) {
|
||||||
|
season += "5.Fall";
|
||||||
|
} else if (day < 354) {
|
||||||
|
season += "6.Fall";
|
||||||
|
} else {
|
||||||
|
season += "7.Winter";
|
||||||
|
}
|
||||||
|
const dateText = seconds + " = " + ticks + " = " + season + " = " + now.toString();
|
||||||
if (selection.isEmpty) {
|
if (selection.isEmpty) {
|
||||||
editBuilder.insert(selection.start, dateText)
|
editBuilder.insert(selection.start, dateText)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user