File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -171,8 +171,13 @@ export async function getBuildTasks(returnComplerPath: boolean): Promise<vscode.
171171
172172 let map : Map < string , string > = new Map < string , string > ( ) ;
173173 const insertOrAssignEntry : ( compilerPath : string ) => void = ( compilerPath : string ) : void => {
174- const basename : string = path . basename ( compilerPath ) ;
175- //map.has(basename) ? map.basename] = compilerPath :
174+ let basename : string = compilerPath ;
175+ if ( compilerPath === userCompilerPath ) {
176+ // Make sure the compiler args are not part of the basename.
177+ const compilerPathAndArgs : util . CompilerPathAndArgs = util . extractCompilerPathAndArgs ( compilerPath ) ;
178+ basename = compilerPathAndArgs . compilerPath ;
179+ }
180+ basename = path . basename ( basename ) ;
176181 map . set ( basename , compilerPath ) ;
177182 } ;
178183 compilerPaths . forEach ( insertOrAssignEntry ) ;
You can’t perform that action at this time.
0 commit comments