@@ -1459,7 +1459,7 @@ class ProjectDataProvider implements vscode.TreeDataProvider<ProjTreeItem> {
14591459 nPrjConfig . outDir = 'build' ;
14601460 nPrjConfig . srcDirs = File . NotMatchFilter ( ePrjRoot . GetList ( File . EMPTY_FILTER ) , File . EMPTY_FILTER ,
14611461 [ / ^ \. / , / ^ ( b u i l d | d i s t | o u t | b i n | o b j | e x e | d e b u g | r e l e a s e | l o g [ s ] ? | i p c h | d o c s | d o c | i m g | i m a g e [ s ] ? ) $ / i] )
1462- . map ( d => ePrjRoot . ToRelativePath ( d . path , false ) || d . path ) ;
1462+ . map ( d => ePrjRoot . ToRelativePath ( d . path ) || d . path ) ;
14631463
14641464 // init all target
14651465 for ( const eTarget of ePrjInfo . targets ) {
@@ -1835,7 +1835,7 @@ class ProjectDataProvider implements vscode.TreeDataProvider<ProjTreeItem> {
18351835 if ( ! srcFile . IsFile ( ) ) { continue ; }
18361836 if ( dep . category == 'source' && ! vFolder ) { continue ; }
18371837
1838- let srcRePath : string | undefined = baseInfo . rootFolder . ToRelativePath ( srcFile . path , false ) ;
1838+ let srcRePath : string | undefined = baseInfo . rootFolder . ToRelativePath ( srcFile . path ) ;
18391839
18401840 /* if it's not in workspace, copy it */
18411841 if ( srcRePath == undefined ) {
@@ -1887,7 +1887,7 @@ class ProjectDataProvider implements vscode.TreeDataProvider<ProjTreeItem> {
18871887 let locate = dep . packPath ;
18881888 if ( dep . instance ) {
18891889 locate = baseInfo . rootFolder
1890- . ToRelativePath ( dep . instance [ 0 ] , false ) || dep . instance [ 0 ]
1890+ . ToRelativePath ( dep . instance [ 0 ] ) || dep . instance [ 0 ]
18911891 }
18921892
18931893 const nLine : string [ ] = [
@@ -3328,7 +3328,7 @@ export class ProjectExplorer implements CustomConfigurationProvider {
33283328 for ( const folderUri of folderList ) {
33293329
33303330 const folderPath = folderUri . fsPath ;
3331- const rePath = prj . ToRelativePath ( folderPath , false ) ;
3331+ const rePath = prj . ToRelativePath ( folderPath ) ;
33323332
33333333 // if can't calculate repath, skip
33343334 if ( rePath === undefined || rePath . trim ( ) === '' ) {
@@ -3841,7 +3841,7 @@ export class ProjectExplorer implements CustomConfigurationProvider {
38413841 if ( source . disabled ) continue ;
38423842 // skip non-source and asm file
38433843 if ( ! srcFilter . test ( source . file . path ) ) continue ;
3844- const rePath = confRootDir . ToRelativePath ( source . file . path , false ) ;
3844+ const rePath = confRootDir . ToRelativePath ( source . file . path ) ;
38453845 srcList . push ( rePath || source . file . path ) ;
38463846 }
38473847 }
@@ -4388,7 +4388,7 @@ export class ProjectExplorer implements CustomConfigurationProvider {
43884388 if ( uris && uris . length > 0 ) {
43894389 const dupLi = prj
43904390 . addIncludePaths ( uris . map ( uri => { return uri . fsPath ; } ) )
4391- . map ( path => prj . ToRelativePath ( path , false ) || path ) ;
4391+ . map ( path => prj . ToRelativePath ( path ) || path ) ;
43924392 if ( dupLi . length > 0 ) {
43934393 const msg = `${ dupLi . length } redundant include paths (ignored): ${ JSON . stringify ( dupLi ) } ` ;
43944394 GlobalEvent . emit ( 'msg' , newMessage ( 'Warning' , msg ) ) ;
@@ -4445,14 +4445,14 @@ export class ProjectExplorer implements CustomConfigurationProvider {
44454445 prj . GetConfiguration ( ) . getAllDepGroup ( ) . forEach ( ( group ) => {
44464446 for ( const dep of group . depList ) {
44474447 for ( const incPath of dep . incList ) {
4448- includesMap . set ( prj . ToRelativePath ( incPath , false ) || incPath , group . groupName ) ;
4448+ includesMap . set ( prj . ToRelativePath ( incPath ) || incPath , group . groupName ) ;
44494449 }
44504450 }
44514451 } ) ;
44524452
44534453 // add source include paths
44544454 prj . getSourceIncludeList ( ) . forEach ( ( incPath ) => {
4455- includesMap . set ( prj . ToRelativePath ( incPath , false ) || incPath , 'source' ) ;
4455+ includesMap . set ( prj . ToRelativePath ( incPath ) || incPath , 'source' ) ;
44564456 } ) ;
44574457
44584458 for ( const keyVal of includesMap ) {
@@ -4489,7 +4489,7 @@ export class ProjectExplorer implements CustomConfigurationProvider {
44894489 prj . GetConfiguration ( ) . getAllDepGroup ( ) . forEach ( ( group ) => {
44904490 for ( const dep of group . depList ) {
44914491 for ( const libPath of dep . libList ) {
4492- libMaps . set ( prj . ToRelativePath ( libPath , false ) || libPath , group . groupName ) ;
4492+ libMaps . set ( prj . ToRelativePath ( libPath ) || libPath , group . groupName ) ;
44934493 }
44944494 }
44954495 } ) ;
0 commit comments