将一处 require 导包方式改为 import 方式;代码目录结构调整
This commit is contained in:
parent
d3a4b0d79f
commit
57d6be7019
@ -1,6 +1,6 @@
|
|||||||
import * as vscode from 'vscode';
|
import * as vscode from 'vscode';
|
||||||
import { EOL } from '../type-definition/EOLType';
|
import { EOL } from '../type-definition/EOLType';
|
||||||
import { caseConversion } from '../main-code/conversion';
|
import { caseConversion } from '../main-code/variable-convert/conversion';
|
||||||
import { SupportCase } from '../type-definition/SupportCaseType';
|
import { SupportCase } from '../type-definition/SupportCaseType';
|
||||||
import { isStringArrayEqual } from '../main-code/utils';
|
import { isStringArrayEqual } from '../main-code/utils';
|
||||||
|
|
||||||
|
@ -2,9 +2,9 @@ import * as vscode from 'vscode';
|
|||||||
import QuickPickItemEx from "../type-definition/QuickPickItemExType";
|
import QuickPickItemEx from "../type-definition/QuickPickItemExType";
|
||||||
import { QuickPickSupportCaseItem, quickPickSupportCases } from '../type-definition/SupportCaseType';
|
import { QuickPickSupportCaseItem, quickPickSupportCases } from '../type-definition/SupportCaseType';
|
||||||
import { TransformTextResult } from '../type-definition/TransformTextResultType';
|
import { TransformTextResult } from '../type-definition/TransformTextResultType';
|
||||||
import { transformMutliSelectionText } from '../main-code/transform';
|
import { transformMutliSelectionText } from '../main-code/variable-convert/transform';
|
||||||
import { EOL } from '../type-definition/EOLType';
|
import { EOL } from '../type-definition/EOLType';
|
||||||
import { caseConversion } from '../main-code/conversion';
|
import { caseConversion } from '../main-code/variable-convert/conversion';
|
||||||
import { isStringArrayEqual } from '../main-code/utils';
|
import { isStringArrayEqual } from '../main-code/utils';
|
||||||
import { getUserConfigurations } from '../main-code/user-configuration';
|
import { getUserConfigurations } from '../main-code/user-configuration';
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import handleEditorReplace from './extension-handler/editor-submenu-handler';
|
|||||||
import { handleQuickPick } from './extension-handler/quick-pick-handler';
|
import { handleQuickPick } from './extension-handler/quick-pick-handler';
|
||||||
import { commands } from './type-definition/SupportCaseType';
|
import { commands } from './type-definition/SupportCaseType';
|
||||||
import { createStatusBarItem, updateStatusBarItemVisable } from './extension-handler/status-bar-handler';
|
import { createStatusBarItem, updateStatusBarItemVisable } from './extension-handler/status-bar-handler';
|
||||||
import * as CyclicConversion from './main-code/cyclic-conversion';
|
import * as CyclicConversion from './main-code/variable-convert/cyclic-conversion';
|
||||||
import { EOL } from './type-definition/EOLType';
|
import { EOL } from './type-definition/EOLType';
|
||||||
import { getUserConfigurations } from './main-code/user-configuration';
|
import { getUserConfigurations } from './main-code/user-configuration';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const vscode = require('vscode');
|
import vscode from 'vscode';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取用户配置项
|
* 获取用户配置项
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { EOL } from '../type-definition/EOLType';
|
import { EOL } from '../../type-definition/EOLType';
|
||||||
import { SupportCase } from '../type-definition/SupportCaseType';
|
import { SupportCase } from '../../type-definition/SupportCaseType';
|
||||||
import { TransformTextResult } from '../type-definition/TransformTextResultType';
|
import { TransformTextResult } from '../../type-definition/TransformTextResultType';
|
||||||
import { transformMutliLineText, transformText } from './transform';
|
import { transformMutliLineText, transformText } from './transform';
|
||||||
|
|
||||||
/**
|
/**
|
@ -1,9 +1,9 @@
|
|||||||
import * as vscode from 'vscode';
|
import * as vscode from 'vscode';
|
||||||
import { EOL } from "../type-definition/EOLType";
|
import { EOL } from "../../type-definition/EOLType";
|
||||||
import { cyclicConvertCaseOrder } from "../type-definition/SupportCaseType";
|
import { cyclicConvertCaseOrder } from "../../type-definition/SupportCaseType";
|
||||||
import { caseConversion } from "./conversion";
|
import { caseConversion } from "./conversion";
|
||||||
import { isStringArrayEqual, stringListArrayDuplicateRemoval } from './utils';
|
import { isStringArrayEqual, stringListArrayDuplicateRemoval } from '../utils';
|
||||||
import { getUserConfigurations } from './user-configuration';
|
import { getUserConfigurations } from '../user-configuration';
|
||||||
|
|
||||||
interface UserSelection {
|
interface UserSelection {
|
||||||
currentEol: EOL
|
currentEol: EOL
|
@ -1,4 +1,4 @@
|
|||||||
import { TransformTextResult } from "../type-definition/TransformTextResultType";
|
import { TransformTextResult } from "../../type-definition/TransformTextResultType";
|
||||||
|
|
||||||
const logDebugInfo = false;
|
const logDebugInfo = false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user