1.3.8 - Quick Pick

This commit is contained in:
Mike Phares 2022-01-17 10:16:08 -07:00
parent 607df5337f
commit 7e7801185d
6 changed files with 56 additions and 20 deletions

5
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"cSpell.words": [
"VSIX"
]
}

Binary file not shown.

View File

@ -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
Learned npm run compile will do similar to build

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.7",
"version": "1.3.8",
"engines": {
"vscode": "^1.40.0"
},

View File

@ -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),

View File

@ -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();
export const codeGeneratorQuickPick = () => codeGeneratorQuickPickLogic();