diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..8fe33f7 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "cSpell.words": [ + "VSIX" + ] +} \ No newline at end of file diff --git a/type-script-helper-1.3.8.vsix b/type-script-helper-1.3.8.vsix new file mode 100644 index 0000000..231dd17 Binary files /dev/null and b/type-script-helper-1.3.8.vsix differ diff --git a/type-script-helper/README.md b/type-script-helper/README.md index c3827bc..dfa9e48 100644 --- a/type-script-helper/README.md +++ b/type-script-helper/README.md @@ -93,12 +93,12 @@ Quick Fix - Public (Expression Body) Quick Fix - Instance Field to Calisthenics -## 1.3.5, 1.3.6, 1.3.7 +## 1.3.5, 1.3.6, 1.3.7, 1.3.8 ----------------------------------------------------------------------------------------------------------- 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 install will do similar to nuget restore Learned npm audit fix Learned npm audit fix --force -Learned npm run compile will do simular to build \ No newline at end of file +Learned npm run compile will do similar to build \ No newline at end of file diff --git a/type-script-helper/package.json b/type-script-helper/package.json index ae9e966..07ecffb 100644 --- a/type-script-helper/package.json +++ b/type-script-helper/package.json @@ -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.7", + "version": "1.3.8", "engines": { "vscode": "^1.40.0" }, diff --git a/type-script-helper/src/extension.ts b/type-script-helper/src/extension.ts index 05fb9cc..f573499 100644 --- a/type-script-helper/src/extension.ts +++ b/type-script-helper/src/extension.ts @@ -37,10 +37,10 @@ export function activate(context: vscode.ExtensionContext) { vscode.window.showInformationMessage(`Opening ${uri.path} in new window!`); vscode.commands.executeCommand('vscode.openFolder', uri, true); }), + vscode.commands.registerCommand('promiseLinesHelper.codeGeneratorQuickPick', promiseLinesHelper.codeGeneratorQuickPick), vscode.commands.registerCommand('readOnlyLinesHelper.searchGoogle', readOnlyLinesHelper.searchGoogle), vscode.commands.registerCommand('replaceLinesHelper.addCSharpComment', replaceLinesHelper.addCSharpComment), vscode.commands.registerCommand('replaceLinesHelper.addVBComment', replaceLinesHelper.addVBComment), - vscode.commands.registerCommand('replaceLinesHelper.codeGeneratorQuickPick', promiseLinesHelper.codeGeneratorQuickPick), vscode.commands.registerCommand('replaceLinesHelper.convertToRegularExpression', replaceLinesHelper.convertToRegularExpression), vscode.commands.registerCommand('replaceLinesHelper.cutEachLine', replaceLinesHelper.cutEachLine), vscode.commands.registerCommand('replaceLinesHelper.expandSql', replaceLinesHelper.expandSql), diff --git a/type-script-helper/src/promiseLinesHelper.ts b/type-script-helper/src/promiseLinesHelper.ts index 69ecfec..1d890ce 100644 --- a/type-script-helper/src/promiseLinesHelper.ts +++ b/type-script-helper/src/promiseLinesHelper.ts @@ -9,49 +9,81 @@ function codeGeneratorQuickPickLogic(): undefined { let thenable = vscode.window.showQuickPick( [ { + label: "Namespace", + detail: "Namespace", + output: "%namespace%" + }, { label: "Class name", detail: "Segments Minus One (Object || Array)", - output: "$ClassName$" + output: "%ClassName%" }, { label: "Type", detail: "Segments Minus One (!Object && !Array)", - output: "$Type$" + output: "%Type%" }, { label: "Suggested Type", detail: "Type based on values in *.json file", - output: "$SuggestedType$" + output: "%SuggestedType%" }, { label: "Full Path", detail: "Full Path and name in padded format", - output: "$Debug$" + output: "%Debug%" }, { label: "Name", detail: "Segments Last only name (no path)", - output: "$Name$" + output: "%Name%" + }, { + label: "Name for Suggested Type", + detail: "Segments name (full)", + output: "%FullName%" }, { label: "Class name (Camel-Cased)", detail: "Segments Minus One (Object || Array)", - output: "ClassNameCamel$" + output: "%ClassNameCamelCased%" }, { - label: "Type (Camel-Cased)", + label: "xType (Camel-Cased)", detail: "Segments Minus One (!Object && !Array)", - output: "TypeCamel$" + output: "%xTypeCamelCased%" }, { - label: "Suggested Type (Camel-Cased)", + label: "xSuggested Type (Camel-Cased)", detail: "Type based on values in *.json file", - output: "SuggestedTypeCamel$" + output: "%xSuggestedTypeCamelCased%" }, { label: "Full Path (Camel-Cased)", detail: "Full Path and name in padded format", - output: "$DebugCamel$" + output: "%DebugCamelCased%" + }, { + label: "Name (Humanized)", + detail: "Segments Last only name (no path)", + output: "%NameHumanized%" }, { label: "Name (Camel-Cased)", detail: "Segments Last only name (no path)", - output: "$NameCamel$" + output: "%NameCamelCased%" }, { label: "Name (Camel-Cased and Plural)", detail: "Segments Last only name (no path)", - output: "$NameCamelPlural$" + output: "%NameCamelPlural%" + }, { + label: "Name for Suggested Type (Humanized)", + detail: "Segments Last only name (no path)", + output: "%FullNameHumanized%" + }, { + label: "Name for Suggested Type (Camel-Cased)", + detail: "Segments Last only name (no path)", + output: "%FullNameCamelCased%" + }, { + label: "Name for Suggested Type (Camel-Cased and Plural)", + detail: "Segments Last only name (no path)", + output: "%FullNameCamelPlural%" + }, { + label: "Partial Name for Suggested Type (Humanized)", + detail: "Segments Last only name (no path)", + output: "%PartialNameHumanized%" + }, { + label: "Collection Partial Name for Suggested Type (Humanized)", + detail: "Segments Last only name (no path)", + output: "%CollectionPartialNameHumanized%" } ] ).then(item => { @@ -73,5 +105,4 @@ function codeGeneratorQuickPickLogic(): undefined { return undefined; } -export const codeGeneratorQuickPick = () => codeGeneratorQuickPickLogic(); -export const open = () => codeGeneratorQuickPickLogic(); \ No newline at end of file +export const codeGeneratorQuickPick = () => codeGeneratorQuickPickLogic(); \ No newline at end of file