From 25d6cde0d2fc0df166f17d6036d6b53e0af74939 Mon Sep 17 00:00:00 2001 From: Mike Phares Date: Wed, 26 Feb 2020 11:48:52 -0700 Subject: [PATCH] Added listToListFamily --- type-script-helper-1.2.0.vsix | Bin 0 -> 6013 bytes type-script-helper/README.md | 11 ++++++++++- type-script-helper/package.json | 8 ++++++-- type-script-helper/src/extension.ts | 1 + type-script-helper/src/helper.ts | 9 +++++++++ 5 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 type-script-helper-1.2.0.vsix diff --git a/type-script-helper-1.2.0.vsix b/type-script-helper-1.2.0.vsix new file mode 100644 index 0000000000000000000000000000000000000000..576fb351b814ddb6011476a11dd18ad561cc4fd0 GIT binary patch literal 6013 zcmZ`-1yEI8yFPH}mQDfbI)tQfly0O!8tKkMNOzZXcStu#gES%_-JJ@DmWGRSuYP{s z|6hCdthHvZd1k${-{*}-K?Vqi3jiP?0nT(Z6>44$bf&`s02oLB06qW!Fm{C)+c=ur z+JKxL&0VeE+L)UdJ3`u2b!_L^a6JzzLrz|6mw;teC3}68sLe{h<{TKuhO&l+8%i{E z4|&~HY+&uqOesO>nR9~Z5g7QfpD4dWz*e3wF zC30|{Kj7Zp*+=rh0Cqp$vyY9V2r<=X$V+U72hpMBZ#k3577sH<cP0EcFKEBuwY$}ySSO{zP5Q{DM`Fa$y1QMV5uqS5X{!q8iZV7k(^9= zZ_C{2E^J3|+{9oW29ZWbI79f78-1Kl`Vo{Zi_dnz>`R(z_MY8!P>;<9~fpMGS)JnT*5;(Rofxr4hZ%L8gJPwPDh zc9g83S&?`);v1LpD11+SzA$B8%JQ(3;=-hIBSX6+B|wRL{H_Now1`1$kp1)Gp5?6n+;9W z#XB$?T$q+akFr2Cekln-kHi&squX!DW>(9WB`-6I@Jzl_tZnSL{m$TJW91Aur+4`FT#X`h}PE zG*7T}|43jzK#X)vn@XR~T`c|1_QtVQtFd8(u^a{F)G0*ID#u$=XA?7!;mdLkJ`w0+ z_Q(CWm;F=^1XY9bV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XX_fif5!aa?3}uj!XZV?3;1}XZIVV>Av?Q!&tfN4Pi56?mp1!1#@`Cq zKNw?=I`4nb!~O>NTTS{0p!d<~eqZ8W+R`tKU#;JtP2o?q=GSQOEr$CO<8STeZ=65V z)z234*J$w7eiW?#xyw(S-woxTAU`wPpKSV>*?x@%UlgoALH^8hzcBtA?|xy_`BpvB b@SltPW}$)%Ji^aIh>y?0BVi-(e(wGU+StE! literal 0 HcmV?d00001 diff --git a/type-script-helper/README.md b/type-script-helper/README.md index 3f6ad48..baa030a 100644 --- a/type-script-helper/README.md +++ b/type-script-helper/README.md @@ -20,13 +20,22 @@ None ## Release Notes -cd "C:\Users\phares\source\yo_vscode" +L: + +cd "L:\GitHub\YO-VSCode" + yo code + Type Script Helper + (type-script-helper) + Modify .package + Add publisher + cd type-script-helper + vsce package F1 diff --git a/type-script-helper/package.json b/type-script-helper/package.json index 06a1252..aa248f4 100644 --- a/type-script-helper/package.json +++ b/type-script-helper/package.json @@ -3,8 +3,9 @@ "displayName": "Type Script Helper", "description": "Helper for VS Code in TypeScript", "publisher": "IFX", - "version": "1.1.5", - "engines": { + "repository": "https://github.com/mikepharesjr/YO-VSCode/tree/master/type-script-helper", + "version": "1.2.0", + "engines": { "vscode": "^1.40.0" }, "categories": [ @@ -16,6 +17,7 @@ "onCommand:helper.addVBComment", "onCommand:helper.convertToRegularExpression", "onCommand:helper.expandSql", + "onCommand:helper.listToListFamily", "onCommand:helper.prettySql", "onCommand:helper.removeComment", "onCommand:helper.sortNormal", @@ -29,6 +31,8 @@ { "command": "helper.addVBComment", "title": "Add VB Comment" }, { "command": "helper.expandSql", "title": "Expand Sql" }, { "command": "helper.convertToRegularExpression", "title": "Convert to Regular Expression" }, + { "command": "helper.expandSql", "title": "Expand Sql" }, + { "command": "helper.listToListFamily", "title": "List to list family (Kristy, Mike ...)" }, { "command": "helper.prettySql", "title": "Pretty Sql" }, { "command": "helper.removeComment", "title": "Remove comment" }, { "command": "helper.sortNormal", "title": "My Sort lines (ascending, case sensitive)" }, diff --git a/type-script-helper/src/extension.ts b/type-script-helper/src/extension.ts index 08e7bfa..39bf076 100644 --- a/type-script-helper/src/extension.ts +++ b/type-script-helper/src/extension.ts @@ -29,6 +29,7 @@ export function activate(context: vscode.ExtensionContext) { vscode.commands.registerCommand('helper.addVBComment', helper.addVBComment), vscode.commands.registerCommand('helper.convertToRegularExpression', helper.convertToRegularExpression), vscode.commands.registerCommand('helper.expandSql', helper.expandSql), + vscode.commands.registerCommand('helper.listToListFamily', helper.listToListFamily), vscode.commands.registerCommand('helper.prettySql', helper.prettySql), vscode.commands.registerCommand('helper.removeComment', helper.removeComment), vscode.commands.registerCommand('helper.sortNormal', helper.sortNormal), diff --git a/type-script-helper/src/helper.ts b/type-script-helper/src/helper.ts index e5b73bc..5c07240 100644 --- a/type-script-helper/src/helper.ts +++ b/type-script-helper/src/helper.ts @@ -9,6 +9,7 @@ enum LinesAction { addVBComment, convertToRegularExpression, expandSql, + listToListFamily, prettySql, removeComment, sortNormal, @@ -105,6 +106,12 @@ function expandSqlLogic(lines: string[]): void { prettySqlLogic(lines); } +function listToListFamilyLogic(lines: string[]): void { + for (let i = 0; i < lines.length; ++i) { + lines[i] = "Kristy" + lines[i].trim() + "Mike" + lines[i].trim() + "Jason" + lines[i].trim() + "Mackenzie" + lines[i].trim() + "Logan" + lines[i].trim() + "Lilly" + lines[i].trim() + "Chelsea" + lines[i].trim() + "Pipper" + lines[i].trim(); + } +} + function prettySqlLogic(lines: string[]): void { for (let i = 0; i < lines.length; ++i) { lines[i] = ' ' + lines[i]; @@ -223,6 +230,7 @@ function linesFunction(linesAction: LinesAction): Thenable | undefined case LinesAction.addVBComment: { addVBCommentLogic(lines); break; } case LinesAction.convertToRegularExpression: { lines = convertToRegularExpressionLogic(lines); break; } case LinesAction.expandSql: { expandSqlLogic(lines); break; } + case LinesAction.listToListFamily: { listToListFamilyLogic(lines); break; } case LinesAction.prettySql: { prettySqlLogic(lines); break; } case LinesAction.removeComment: { removeCommentLogic(lines); break; } case LinesAction.sortNormal: { sortNormalLogic(lines); break; } @@ -238,6 +246,7 @@ export const addCSharpComment = () => linesFunction(LinesAction.addCSharpComment export const addVBComment = () => linesFunction(LinesAction.addVBComment); export const convertToRegularExpression = () => linesFunction(LinesAction.convertToRegularExpression); export const expandSql = () => linesFunction(LinesAction.expandSql); +export const listToListFamily = () => linesFunction(LinesAction.listToListFamily); export const prettySql = () => linesFunction(LinesAction.prettySql); export const removeComment = () => linesFunction(LinesAction.removeComment); export const sortNormal = () => linesFunction(LinesAction.sortNormal);