## 1.111.0

This commit is contained in:
Mike Phares 2025-01-06 13:43:49 -07:00
parent e64c2a988c
commit 4ad075088a
6 changed files with 1540 additions and 558 deletions

View File

@ -3,8 +3,10 @@
"editor.wordWrap": "off"
},
"cSpell.words": [
"Infineon",
"initialise",
"Kanban",
"Phares",
"VSIX"
],
"files.eol": "\n",

41
type-script-helper/.vscode/tasks.json vendored Normal file
View 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\""
}
]
}

View File

@ -171,3 +171,14 @@ None
-----------------------------------------------------------------------------------------------------------
- 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

File diff suppressed because it is too large Load Diff

View File

@ -11,7 +11,7 @@
"fileTemplates.author": {
"type": [
"string",
"null"
"Mike Phares"
],
"default": null,
"description": "Value to use to replace #{author} variable."
@ -19,7 +19,7 @@
"fileTemplates.company": {
"type": [
"string",
"null"
"Infineon Technologies Americas Corp."
],
"default": null,
"description": "Value to use to replace #{company} variable."
@ -72,26 +72,6 @@
"command": "kanban.openInNewWindow",
"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",
"command": "kanban.openWithTextEditor",
@ -212,28 +192,8 @@
"command": "webView.webView",
"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": {
"@vscode/vsce": "^3.2.1",
"polka": "^0.5.2"
@ -275,5 +235,5 @@
"webpack": "webpack --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"
}

View File

@ -137,12 +137,34 @@ function insertDateTimeLogic(): undefined {
const selection = textEditor.selection;
textEditor.edit(editBuilder => {
var range;
let date = new Date();
let timezoneOffset = date.getTimezoneOffset();
let seconds = date.getTime().valueOf() + timezoneOffset;
let epoch = seconds * 10000;
let ticks = epoch + 621355968000000000;
let dateText = seconds + " = " + ticks + " = " + date.toString();
const now: Date = new Date();
const oneDay: number = 1000 * 60 * 60 * 24;
const start: Date = new Date(now.getFullYear(), 0, 0);
const diff: number = (now.getTime() - start.getTime()) + ((start.getTimezoneOffset() - now.getTimezoneOffset()) * 60 * 1000);
const day: number = Math.floor(diff / oneDay);
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) {
editBuilder.insert(selection.start, dateText)
}