Compare commits
5 Commits
929d4e1ccd
...
ed2cd40f59
Author | SHA1 | Date | |
---|---|---|---|
ed2cd40f59 | |||
2eae9ad27d | |||
a3321fcb20 | |||
3c0b01091a | |||
927db6dbd5 |
33
.gitignore
vendored
33
.gitignore
vendored
@ -270,3 +270,36 @@ type-script-helper-1.1.8.vsix
|
||||
*.pdb
|
||||
|
||||
.vscode/helper/**
|
||||
|
||||
type-script-helper/src/Card.js
|
||||
type-script-helper/src/Card.js.map
|
||||
type-script-helper/src/ColumnsToCardsWebviewViewProvider.js
|
||||
type-script-helper/src/ColumnsToCardsWebviewViewProvider.js.map
|
||||
type-script-helper/src/constants.js
|
||||
type-script-helper/src/constants.js.map
|
||||
type-script-helper/src/extension.js
|
||||
type-script-helper/src/extension.js.map
|
||||
type-script-helper/src/getNonce.js
|
||||
type-script-helper/src/getNonce.js.map
|
||||
type-script-helper/src/H2HexColor.js
|
||||
type-script-helper/src/H2HexColor.js.map
|
||||
type-script-helper/src/H2NoCheckboxes.js
|
||||
type-script-helper/src/H2NoCheckboxes.js.map
|
||||
type-script-helper/src/H2WithCheckboxes.js
|
||||
type-script-helper/src/H2WithCheckboxes.js.map
|
||||
type-script-helper/src/kanbanHelper.js
|
||||
type-script-helper/src/kanbanHelper.js.map
|
||||
type-script-helper/src/LineNumber.js
|
||||
type-script-helper/src/LineNumber.js.map
|
||||
type-script-helper/src/markdownHelper.js
|
||||
type-script-helper/src/markdownHelper.js.map
|
||||
type-script-helper/src/PostMessage.js
|
||||
type-script-helper/src/PostMessage.js.map
|
||||
type-script-helper/src/promiseLinesHelper.js
|
||||
type-script-helper/src/promiseLinesHelper.js.map
|
||||
type-script-helper/src/readOnlyLinesHelper.js
|
||||
type-script-helper/src/readOnlyLinesHelper.js.map
|
||||
type-script-helper/src/replaceLinesHelper.js
|
||||
type-script-helper/src/replaceLinesHelper.js.map
|
||||
type-script-helper/src/WebViewPanel.js
|
||||
type-script-helper/src/WebViewPanel.js.map
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
11
type-script-helper/.vscode/mklink.md
vendored
Normal file
11
type-script-helper/.vscode/mklink.md
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
type: "note"
|
||||
created: "2023-10-20T03:53:13.742Z"
|
||||
updated: "2023-10-20T04:00:37.259Z"
|
||||
---
|
||||
|
||||
# mklink
|
||||
|
||||
```bash
|
||||
mklink /J "L:\Git\YO-VSCode\type-script-helper\net8.0\win-x64\publish" "L:\DevOps\Mesa_FI\File-Folder-Helper\bin\Release\net8.0\win-x64\publish"
|
||||
```
|
@ -117,3 +117,36 @@ None
|
||||
- columns-to-cards-webview-view-provider
|
||||
- file-folder-helper-exe
|
||||
- clickable list
|
||||
|
||||
## 1.5.2
|
||||
-----------------------------------------------------------------------------------------------------------
|
||||
|
||||
- file-folder-helper-exe net8.0
|
||||
|
||||
## 1.5.3
|
||||
-----------------------------------------------------------------------------------------------------------
|
||||
|
||||
- Updated File-Folder-Helper ccea8de8cf49343dd4190a77ac755d233bb4e528
|
||||
|
||||
## 1.6.0
|
||||
-----------------------------------------------------------------------------------------------------------
|
||||
|
||||
- Updated File-Folder-Helper 4e3f06bb44b7e85ba40a5e589e6ca871cbdbfb3e
|
||||
|
||||
## 1.6.1
|
||||
-----------------------------------------------------------------------------------------------------------
|
||||
|
||||
- Updated File-Folder-Helper 299aa19d538bcfd5e06e4743a5a05f6d62960a80
|
||||
- code --install-extension D:\Tmp\phares\type-script-helper-1.6.1.vsix
|
||||
- code-insiders --install-extension D:\Tmp\phares\type-script-helper-1.6.1.vsix
|
||||
|
||||
## 1.6.2
|
||||
-----------------------------------------------------------------------------------------------------------
|
||||
|
||||
- Updated File-Folder-Helper 47e6b85c218f994216fb35d44906850a790c36d0
|
||||
- Open with Text Editor Kanban
|
||||
|
||||
## 1.6.4 Fri Aug 02 2024 13:07:24 GMT-0700 (Mountain Standard Time)
|
||||
-----------------------------------------------------------------------------------------------------------
|
||||
|
||||
- Wrap directory in quotes
|
||||
|
7062
type-script-helper/package-lock.json
generated
7062
type-script-helper/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -77,6 +77,11 @@
|
||||
"command": "kanban.debugReload",
|
||||
"title": "Debug Reload Kanban"
|
||||
},
|
||||
{
|
||||
"category": "Kanban",
|
||||
"command": "kanban.openWithTextEditor",
|
||||
"title": "Open with Text Editor Kanban"
|
||||
},
|
||||
{
|
||||
"category": "Markdown",
|
||||
"command": "markdown.newMarkdownFile",
|
||||
@ -221,32 +226,24 @@
|
||||
"description": "Helper for VS Code in TypeScript",
|
||||
"devDependencies": {
|
||||
"@nodelib/fs.stat": "^3.0.0",
|
||||
"@rollup/plugin-commonjs": "^25.0.4",
|
||||
"@rollup/plugin-node-resolve": "^15.2.1",
|
||||
"@rollup/plugin-typescript": "^11.1.4",
|
||||
"@tsconfig/svelte": "^1.0.10",
|
||||
"@types/glob": "^8.1.0",
|
||||
"@types/mocha": "^10.0.1",
|
||||
"@types/node": "20.2.5",
|
||||
"@types/polka": "^0.5.1",
|
||||
"@types/vscode": "^1.79.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
||||
"@typescript-eslint/parser": "^5.59.8",
|
||||
"@vscode/test-electron": "^2.3.2",
|
||||
"concurrently": "^8.2.1",
|
||||
"eslint": "^8.41.0",
|
||||
"glob": "^8.1.0",
|
||||
"mocha": "^10.2.0",
|
||||
"rollup": "^2.3.4",
|
||||
"rollup-plugin-svelte": "^6.1.1",
|
||||
"rollup-plugin-terser": "^7.0.2",
|
||||
"svelte": "^3.31.0",
|
||||
"svelte-check": "^1.1.23",
|
||||
"svelte-preprocess": "^5.0.4",
|
||||
"ts-loader": "^9.4.3",
|
||||
"typescript": "^5.1.3",
|
||||
"webpack": "^5.85.0",
|
||||
"webpack-cli": "^5.1.1"
|
||||
"@types/mocha": "^10.0.6",
|
||||
"@types/node": "^18.11.0",
|
||||
"@types/vscode": "^1.63.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.40.0",
|
||||
"@typescript-eslint/parser": "^5.40.0",
|
||||
"@vscode/test-electron": "^2.4.0",
|
||||
"@vscode/test-web": "*",
|
||||
"concurrently": "^8.2.2",
|
||||
"eslint": "^8.25.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"glob": "^10.4.1",
|
||||
"mocha": "^10.4.0",
|
||||
"prettier": "^2.7.1",
|
||||
"ts-loader": "^9.4.1",
|
||||
"typescript": "^4.8.4",
|
||||
"webpack": "^5.74.0",
|
||||
"webpack-cli": "^4.10.0"
|
||||
},
|
||||
"displayName": "Type Script Helper",
|
||||
"engines": {
|
||||
@ -257,8 +254,10 @@
|
||||
"publisher": "IFX",
|
||||
"repository": "https://github.com/mikepharesjr/YO-VSCode/tree/master/type-script-helper",
|
||||
"scripts": {
|
||||
"tsc-build": "tsc",
|
||||
"vscode:publish": "node node_modules/@vscode/vsce/vsce package",
|
||||
"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.5.2"
|
||||
"version": "1.6.4"
|
||||
}
|
@ -6,7 +6,7 @@ import { PostMessage } from "./PostMessage";
|
||||
import { apiBaseUrl, key } from "./constants";
|
||||
import { ExecException, exec } from 'child_process';
|
||||
|
||||
export function refreshSidebarLogic(): undefined {
|
||||
export function refreshSidebarLogic(): any {
|
||||
vscode.commands.executeCommand("workbench.action.closeSidebar").then(_ => {
|
||||
vscode.commands.executeCommand("workbench.view.extension.columns-to-cards-sidebar-view");
|
||||
});
|
||||
@ -45,8 +45,8 @@ async function postColumnsToCards(extensionUri: vscode.Uri, webviewView: vscode.
|
||||
else {
|
||||
const workspaceFoldersZero = vscode.workspace.workspaceFolders[0].uri;
|
||||
const destination: vscode.Uri = vscode.Uri.joinPath(workspaceFoldersZero, ".vscode", "helper");
|
||||
const fileFolderHelper: vscode.Uri = vscode.Uri.joinPath(extensionUri, "net7.0", "win-x64", "publish", "File-Folder-Helper.exe");
|
||||
const command: string = `${fileFolderHelper.fsPath} s M ${workspaceFoldersZero.fsPath} -s ${workspaceFoldersZero.fsPath} -d ${destination.fsPath}`;
|
||||
const fileFolderHelper: vscode.Uri = vscode.Uri.joinPath(extensionUri, "net8.0", "win-x64", "publish", "File-Folder-Helper.exe");
|
||||
const command: string = `${fileFolderHelper.fsPath} s M "${workspaceFoldersZero.fsPath}" -d "${destination.fsPath}"`;
|
||||
exec(command, (error, stdout, stderr) =>
|
||||
execCallback(webviewView, destination, error, stdout, stderr));
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ import { getNonce } from "./getNonce";
|
||||
import { apiBaseUrl } from "./constants";
|
||||
import { PostMessage } from "./PostMessage";
|
||||
|
||||
export function refreshWebView(extensionContext: vscode.ExtensionContext): undefined {
|
||||
export function refreshWebView(extensionContext: vscode.ExtensionContext): any {
|
||||
WebViewPanel.kill();
|
||||
WebViewPanel.createOrShow(extensionContext);
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ export async function activate(extensionContext: vscode.ExtensionContext) {
|
||||
|
||||
// Use the console to output diagnostic information (console.log) and errors (console.error)
|
||||
// This line of code will only be executed once when your extension is activated
|
||||
console.log('Congratulations, your extension "type-script-helper" is now active!');
|
||||
console.log('Congratulations, your extension "type-script-helper":1.6.2 is now active!');
|
||||
|
||||
// // The command has been defined in the package.json file
|
||||
// // Now provide the implementation of the command with registerCommand
|
||||
@ -40,6 +40,7 @@ export async function activate(extensionContext: vscode.ExtensionContext) {
|
||||
vscode.commands.registerCommand("kanban.refreshBoth", () => { kanbanHelper.refreshBoth(extensionContext); }),
|
||||
vscode.commands.registerCommand("kanban.refreshSidebar", refreshSidebar),
|
||||
vscode.commands.registerCommand("kanban.refreshWebView", () => { refreshWebView(extensionContext); }),
|
||||
vscode.commands.registerCommand("kanban.openWithTextEditor", kanbanHelper.openWithTextEditor),
|
||||
vscode.commands.registerCommand("markdown.newMarkdownFile", markdownHelper.newMarkdownFile),
|
||||
vscode.commands.registerCommand('promiseLinesHelper.codeGeneratorQuickPick', promiseLinesHelper.codeGeneratorQuickPick),
|
||||
vscode.commands.registerCommand('promiseLinesHelper.insertDateTime', promiseLinesHelper.insertDateTime),
|
||||
|
@ -1,9 +1,35 @@
|
||||
import * as vscode from 'vscode';
|
||||
import { refreshWebView } from './WebViewPanel';
|
||||
import { paramCase } from './promiseLinesHelper';
|
||||
import { refreshSidebar } from './ColumnsToCardsWebviewViewProvider';
|
||||
|
||||
export function refreshBoth(extensionContext: vscode.ExtensionContext): undefined {
|
||||
export function refreshBoth(extensionContext: vscode.ExtensionContext): any {
|
||||
refreshSidebar();
|
||||
refreshWebView(extensionContext);
|
||||
setTimeout(() => { vscode.commands.executeCommand("workbench.action.webview.openDeveloperTools"); }, 500);
|
||||
}
|
||||
|
||||
async function openWithTextEditorLogic(): Promise<any> {
|
||||
if (vscode.workspace.workspaceFolders === undefined) {
|
||||
vscode.window.showInformationMessage("Open workspace first!");
|
||||
return;
|
||||
}
|
||||
if (vscode.window.tabGroups.activeTabGroup.activeTab === undefined) {
|
||||
vscode.window.showInformationMessage("Open a tab first!");
|
||||
return;
|
||||
}
|
||||
const activeTabLabel = vscode.window.tabGroups.activeTabGroup.activeTab.label;
|
||||
const paramCaseActiveTabLabel: string = paramCase(activeTabLabel);
|
||||
vscode.window.showInformationMessage(`Searching for <${paramCaseActiveTabLabel}>`);
|
||||
const fileUris: vscode.Uri[] = await vscode.workspace.findFiles(`**/${paramCaseActiveTabLabel}*`);
|
||||
if (fileUris.length === 0) {
|
||||
vscode.window.showInformationMessage(`Didn't find a file matching <${paramCaseActiveTabLabel}>!`);
|
||||
return;
|
||||
}
|
||||
for (let i = 0; i < fileUris.length; ++i) {
|
||||
const textDocument: vscode.TextDocument = await vscode.workspace.openTextDocument(fileUris[i]);
|
||||
await vscode.window.showTextDocument(textDocument);
|
||||
}
|
||||
}
|
||||
|
||||
export const openWithTextEditor = () => openWithTextEditorLogic();
|
@ -1,7 +1,8 @@
|
||||
import * as vscode from 'vscode';
|
||||
import { paramCase } from './promiseLinesHelper';
|
||||
|
||||
async function newMarkdownFileLogic(): Promise<undefined> {
|
||||
async function newMarkdownFileLogic(): Promise<any> {
|
||||
console.log(vscode.window.tabGroups.activeTabGroup.activeTab?.label);
|
||||
if (vscode.workspace.workspaceFolders === undefined) {
|
||||
vscode.window.showInformationMessage("Open workspace first!");
|
||||
return;
|
||||
|
@ -1,23 +0,0 @@
|
||||
import * as path from 'path';
|
||||
|
||||
import { runTests } from '@vscode/test-electron';
|
||||
|
||||
async function main() {
|
||||
try {
|
||||
// The folder containing the Extension Manifest package.json
|
||||
// Passed to `--extensionDevelopmentPath`
|
||||
const extensionDevelopmentPath = path.resolve(__dirname, '../../');
|
||||
|
||||
// The path to test runner
|
||||
// Passed to --extensionTestsPath
|
||||
const extensionTestsPath = path.resolve(__dirname, './suite/index');
|
||||
|
||||
// Download VS Code, unzip it and run the integration test
|
||||
await runTests({ extensionDevelopmentPath, extensionTestsPath });
|
||||
} catch (err) {
|
||||
console.error('Failed to run tests', err);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
@ -1,15 +0,0 @@
|
||||
import * as assert from 'assert';
|
||||
|
||||
// You can import and use all API from the 'vscode' module
|
||||
// as well as import your extension to test it
|
||||
import * as vscode from 'vscode';
|
||||
// import * as myExtension from '../../extension';
|
||||
|
||||
suite('Extension Test Suite', () => {
|
||||
vscode.window.showInformationMessage('Start all tests.');
|
||||
|
||||
test('Sample test', () => {
|
||||
assert.strictEqual(-1, [1, 2, 3].indexOf(5));
|
||||
assert.strictEqual(-1, [1, 2, 3].indexOf(0));
|
||||
});
|
||||
});
|
@ -1,38 +0,0 @@
|
||||
import * as path from 'path';
|
||||
import * as Mocha from 'mocha';
|
||||
import * as glob from 'glob';
|
||||
|
||||
export function run(): Promise<void> {
|
||||
// Create the mocha test
|
||||
const mocha = new Mocha({
|
||||
ui: 'tdd',
|
||||
color: true
|
||||
});
|
||||
|
||||
const testsRoot = path.resolve(__dirname, '..');
|
||||
|
||||
return new Promise((c, e) => {
|
||||
glob('**/**.test.js', { cwd: testsRoot }, (err, files) => {
|
||||
if (err) {
|
||||
return e(err);
|
||||
}
|
||||
|
||||
// Add files to the test suite
|
||||
files.forEach(f => mocha.addFile(path.resolve(testsRoot, f)));
|
||||
|
||||
try {
|
||||
// Run the mocha test
|
||||
mocha.run(failures => {
|
||||
if (failures > 0) {
|
||||
e(new Error(`${failures} tests failed.`));
|
||||
} else {
|
||||
c();
|
||||
}
|
||||
});
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
e(err);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user