File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ let findBinary = async (
92
92
return path . join ( config . extensionConfiguration . platformPath , binary ) ;
93
93
}
94
94
95
- if ( projectRootPath !== null && binary === "bsc.exe" ) {
95
+ if ( projectRootPath !== null ) {
96
96
try {
97
97
const compilerInfo = path . resolve (
98
98
projectRootPath ,
@@ -101,7 +101,13 @@ let findBinary = async (
101
101
const contents = await fsAsync . readFile ( compilerInfo , "utf8" ) ;
102
102
const compileInfo = JSON . parse ( contents ) ;
103
103
if ( compileInfo && compileInfo . bsc_path ) {
104
- return compileInfo . bsc_path ;
104
+ const bsc_path = compileInfo . bsc_path ;
105
+ if ( binary === "bsc.exe" ) {
106
+ return bsc_path ;
107
+ } else {
108
+ const binary_path = path . join ( path . dirname ( bsc_path ) , binary ) ;
109
+ return binary_path ;
110
+ }
105
111
}
106
112
} catch { }
107
113
}
You can’t perform that action at this time.
0 commit comments