1.3.8 - Quick Pick

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

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();