统一插件名称: text-conversion -> variable-conversion
This commit is contained in:
parent
b2745d8ba7
commit
2d7f4690be
@ -1,6 +1,6 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to the "text-conversion" extension will be documented in this file.
|
||||
All notable changes to the "variable-conversion" extension will be documented in this file.
|
||||
|
||||
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
|
||||
|
||||
|
@ -106,6 +106,7 @@
|
||||
// "group": "1_modification@9"
|
||||
// },
|
||||
{
|
||||
"when": "editorTextFocus && _textSelectionLength >= 1",
|
||||
"submenu": "extension.stringConversionMenu",
|
||||
// docs: https://code.visualstudio.com/api/references/contribution-points#Sorting-of-groups
|
||||
// "group": "1_modification@9"
|
||||
@ -144,7 +145,8 @@
|
||||
{
|
||||
"command": "extension.toCamelSnakeCase",
|
||||
"group": "group-extension"
|
||||
},
|
||||
}
|
||||
// 隐藏菜单项
|
||||
// {
|
||||
// "command": "editor.action.transformToCamelcase",
|
||||
// "group": "group-vscode",
|
||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "text-conversion",
|
||||
"name": "variable-conversion",
|
||||
"version": "0.0.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "text-conversion",
|
||||
"name": "variable-conversion",
|
||||
"version": "0.0.1",
|
||||
"devDependencies": {
|
||||
"@types/mocha": "^10.0.6",
|
||||
|
@ -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!');
|
||||
// });
|
||||
|
||||
// 用于判断是否展示右键菜单
|
||||
|
@ -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
|
@ -1,4 +1,4 @@
|
||||
import { TransformTextResult } from "../type-definition/text-transform-type";
|
||||
import { TransformTextResult } from "../type-definition/variable-transform-type";
|
||||
|
||||
const logDebugInfo = false;
|
||||
|
@ -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';
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user