1.3.5, 1.3.6, 1.3.7

This commit is contained in:
Mike Phares 2022-01-12 14:31:15 -07:00
parent b3a9f0e822
commit 07237f44a3
8 changed files with 1106 additions and 948 deletions

6
package-lock.json generated Normal file
View File

@ -0,0 +1,6 @@
{
"name": "YO-VSCode",
"lockfileVersion": 2,
"requires": true,
"packages": {}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -53,42 +53,52 @@ vsce package
F1
Extensions: Install from VSIX
### 1.0.0
## 1.0.0
Initial release of ...
### 1.0.1
## 1.0.1
Fixed issue in replace function
https://stackoverflow.com/questions/37197311/in-typescript-string-replace-only-replaces-first-occurrence-of-matched-string
Added split(' group by ').join('\r\n GROUP BY ').
### 1.1.0
## 1.1.0
-----------------------------------------------------------------------------------------------------------
## Working with Markdown
Working with Markdown
### For more information
For more information
### 1.2.4
## 1.2.4
-----------------------------------------------------------------------------------------------------------
## Search Google
Search Google
### 1.2.8
## 1.2.8
-----------------------------------------------------------------------------------------------------------
## Search Google (Read Only Lines Helper)
Search Google (Read Only Lines Helper)
### 1.2.9, 1.3.0, 1.3.1, 1.3.2
## 1.2.9, 1.3.0, 1.3.1, 1.3.2
-----------------------------------------------------------------------------------------------------------
## Quick Fix - Camel Case Properties
## Quick Fix - CS0108 (Data Annotations)
## Quick Fix - Proper Case Properties
## Quick Fix - Public (Expression Body)
Quick Fix - Camel Case Properties
Quick Fix - CS0108 (Data Annotations)
Quick Fix - Proper Case Properties
Quick Fix - Public (Expression Body)
### 1.3.3, 1.3.4
## 1.3.3, 1.3.4
-----------------------------------------------------------------------------------------------------------
## Quick Fix - Instance Field to Calisthenics
Quick Fix - Instance Field to Calisthenics
## 1.3.5, 1.3.6, 1.3.7
-----------------------------------------------------------------------------------------------------------
Code Generator - Quick Pick {promiseLinesHelper.codeGeneratorQuickPick}
Open in New Window {open-in-new-window.open}
Learned npm install will do simular to nuget restore
Learned npm audit fix
Learned npm audit fix --force
Learned npm run compile will do simular to build

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@
"description": "Helper for VS Code in TypeScript",
"publisher": "IFX",
"repository": "https://github.com/mikepharesjr/YO-VSCode/tree/master/type-script-helper",
"version": "1.3.4",
"version": "1.3.7",
"engines": {
"vscode": "^1.40.0"
},
@ -13,6 +13,8 @@
],
"main": "./out/extension.js",
"activationEvents": [
"onCommand:open-in-new-window.open",
"onCommand:promiseLinesHelper.codeGeneratorQuickPick",
"onCommand:readOnlyLinesHelper.searchGoogle",
"onCommand:replaceLinesHelper.addCSharpComment",
"onCommand:replaceLinesHelper.addVBComment",
@ -36,6 +38,14 @@
],
"contributes": {
"commands": [
{
"command": "open-in-new-window.open",
"title": "Open in New Window"
},
{
"command": "promiseLinesHelper.codeGeneratorQuickPick",
"title": "Code Generator - Quick Pick"
},
{
"command": "readOnlyLinesHelper.searchGoogle",
"title": "Search Google"
@ -117,19 +127,11 @@
"title": "Wrap Sql for VB"
}
],
"keybindings": [
{
"command": "replaceLinesHelper.unwrapSql",
"key": "shift + f9",
"when": "editorTextFocus"
}
],
"menus": {
"editor/context": [
"explorer/context": [
{
"command": "replaceLinesHelper.unwrapSql",
"when": "editorTextFocus",
"group": "replaceLinesHelper@1"
"command": "open-in-new-window.open",
"group": "openInNewWindowGroup"
}
]
}
@ -147,7 +149,7 @@
"@types/node": "^12.11.7",
"@types/vscode": "^1.40.0",
"glob": "^7.1.5",
"mocha": "^6.2.2",
"mocha": "^9.1.3",
"tslint": "^5.20.0",
"typescript": "^3.9.10",
"vscode-test": "^1.2.2"

View File

@ -9,6 +9,8 @@ import * as promiseLinesHelper from './promiseLinesHelper';
// your extension is activated the very first time the command is executed
export function activate(context: vscode.ExtensionContext) {
const openCommand = 'open-in-new-window.open';
// 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!');
@ -27,6 +29,14 @@ export function activate(context: vscode.ExtensionContext) {
// context.subscriptions.push(disposable);
const commands = [
vscode.commands.registerCommand(openCommand, (uri) => {
if (!uri) {
vscode.window.showWarningMessage('The intended usage is from the explorer context menu.');
return;
}
vscode.window.showInformationMessage(`Opening ${uri.path} in new window!`);
vscode.commands.executeCommand('vscode.openFolder', uri, true);
}),
vscode.commands.registerCommand('readOnlyLinesHelper.searchGoogle', readOnlyLinesHelper.searchGoogle),
vscode.commands.registerCommand('replaceLinesHelper.addCSharpComment', replaceLinesHelper.addCSharpComment),
vscode.commands.registerCommand('replaceLinesHelper.addVBComment', replaceLinesHelper.addVBComment),
@ -54,4 +64,4 @@ export function activate(context: vscode.ExtensionContext) {
}
// this method is called when your extension is deactivated
export function deactivate() {}
export function deactivate() { }