Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit873775a

Browse files
author
Elaheh Rashedi
authored
define path delimiter based on windows/mac config (microsoft#5229)
* define path delimiter based on windows/mac configmicrosoft#3940
1 parent941d31c commit873775a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎Extension/src/LanguageServer/configurations.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,9 @@ export class CppProperties {
523523
letresult:string[]=[];
524524
if(paths){
525525
paths=this.resolveDefaults(paths,defaultValue);
526+
letdelimiter:string=(process.platform==='win32') ?";" :":";
526527
paths.forEach(entry=>{
527-
letentries:string[]=util.resolveVariables(entry,env).split(";").filter(e=>e);
528+
letentries:string[]=util.resolveVariables(entry,env).split(delimiter).filter(e=>e);
528529
result=result.concat(entries);
529530
});
530531
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp