Added listToListFamily
This commit is contained in:
@ -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),
|
||||
|
@ -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<boolean> | 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);
|
||||
|
Reference in New Issue
Block a user