File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed
Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -206,12 +206,6 @@ class ExactReplaceOperation extends TcvbOperation {
206206 }
207207}
208208
209- // 函数:规范化 GlobalReplaceOperation 实例的成员
210- export function normalizeData ( operation : GlobalReplaceOperation ) : GlobalReplaceOperation {
211- operation . m_strOldContent = normalizeInput ( operation . m_strOldContent ) ;
212- operation . m_strNewContent = normalizeInput ( operation . m_strNewContent ) ;
213- return operation ;
214- }
215209
216210// 2. 全局替换操作(GLOBAL-REPLACE)
217211class GlobalReplaceOperation extends TcvbOperation {
Original file line number Diff line number Diff line change 11import * as assert from 'assert' ;
22import * as vscode from 'vscode' ;
3- import { applyGlobalReplace , normalizeInput , normalizeData } from '../cvbManager' ;
43import * as fuzzyMatch from '../fuzzyMatch' ;
4+ import * as cvbMgr from '../cvbManager' ;
5+
6+ const normalizeInput = ( cvbMgr as any ) . normalizeInput ;
7+ const applyGlobalReplace = ( cvbMgr as any ) . applyGlobalReplace ;
8+
9+ // 函数:规范化 GlobalReplaceOperation 实例的成员
10+ export function normalizeData ( operation : GlobalReplaceOperation ) : GlobalReplaceOperation {
11+ operation . m_strOldContent = normalizeInput ( operation . m_strOldContent ) ;
12+ operation . m_strNewContent = normalizeInput ( operation . m_strNewContent ) ;
13+ return operation ;
14+ }
15+
516
617// 定义 GlobalReplaceOperation 接口
718
You can’t perform that action at this time.
0 commit comments