1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

统一插件名称: text-conversion -> variable-conversion

This commit is contained in:
zhangbk1
2024-04-03 10:02:44 +08:00
parent b2745d8ba7
commit 2d7f4690be
8 changed files with 16 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as vscode from 'vscode';
import * as TextConversion from './main-code/text-conversion';
import * as TextConversion from './main-code/variable-conversion';
import { ConvertFunction, EOL } from './type-definition/convert-function-type';
// This method is called when your extension is activated
@@ -10,15 +10,15 @@ export function activate(context: vscode.ExtensionContext) {
// // Use the console to output diagnostic information (console.log) and errors (console.error)
// // This line of code will only be executed once when your extension is activated
// console.log('Congratulations, your extension "text-conversion" is now active!');
// console.log('Congratulations, your extension "variable-conversion" is now active!');
// // The command has been defined in the package.json file
// // Now provide the implementation of the command with registerCommand
// // The commandId parameter must match the command field in package.json
// let disposable = vscode.commands.registerCommand('text-conversion.helloWorld', () => {
// let disposable = vscode.commands.registerCommand('variable-conversion.helloWorld', () => {
// // The code you place here will be executed every time your command is executed
// // Display a message box to the user
// vscode.window.showInformationMessage('Hello World from text-conversion!');
// vscode.window.showInformationMessage('Hello World from variable-conversion!');
// });
// 用于判断是否展示右键菜单

View File

@@ -1,6 +1,6 @@
import { ConvertFunction, EOL } from '../type-definition/convert-function-type';
import { TransformTextResult } from '../type-definition/text-transform-type';
import { transformMutliLineText, transformText } from './text-transform';
import { TransformTextResult } from '../type-definition/variable-transform-type';
import { transformMutliLineText, transformText } from './variable-transform';
/**
* to Camel Case

View File

@@ -1,4 +1,4 @@
import { TransformTextResult } from "../type-definition/text-transform-type";
import { TransformTextResult } from "../type-definition/variable-transform-type";
const logDebugInfo = false;

View File

@@ -5,9 +5,9 @@ import * as assert from 'assert';
import * as vscode from 'vscode';
import testGroups from './test-case';
import { TestCase, TestCaseGroup } from '../type-definition/test-case-type';
import { transformMutliLineText, transformText } from '../main-code/text-transform';
import { toCamelCase, toLowerCase, toPascalCase, toUpperCase } from '../main-code/text-conversion';
import { TransformTextResult } from '../type-definition/text-transform-type';
import { transformMutliLineText, transformText } from '../main-code/variable-transform';
import { toCamelCase, toLowerCase, toPascalCase, toUpperCase } from '../main-code/variable-conversion';
import { TransformTextResult } from '../type-definition/variable-transform-type';
// import * as myExtension from '../../extension';
/*