File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
import * as vscode from 'vscode' ;
2
2
import * as fs from 'fs' ;
3
- import convertWords2BigCamelCaseStyle from './convertWords2BigCamelCaseStyle' ;
4
3
import { getIgnoreFilenames } from './utils' ;
4
+ import * as uppercamelcase from 'uppercamelcase' ;
5
5
6
6
interface Data {
7
7
oldPath : string ;
@@ -32,10 +32,11 @@ function readFilesOfDest(uri: vscode.Uri) {
32
32
! ignoreFilenames . includes ( v ) &&
33
33
! / [ A - Z ] / g. test ( v [ 0 ] )
34
34
) {
35
+ const upperCamelCaseName = uppercamelcase ( v ) ;
35
36
return {
36
37
oldPath : `${ dir } /${ v } ` ,
37
- tempPath : `${ dir } /${ convertWords2BigCamelCaseStyle ( v ) } .temp` ,
38
- newPath : `${ dir } /${ convertWords2BigCamelCaseStyle ( v ) } ` ,
38
+ tempPath : `${ dir } /${ upperCamelCaseName } .temp` ,
39
+ newPath : `${ dir } /${ upperCamelCaseName } ` ,
39
40
} ;
40
41
}
41
42
You can’t perform that action at this time.
0 commit comments