File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -971,6 +971,25 @@ export class DefaultClient implements Client {
971
971
paths . push ( localize ( "installCompiler.string" , "Help me install a compiler" ) ) ;
972
972
paths . push ( localize ( "noConfig.string" , "Do not configure a compiler (not recommended)" ) ) ;
973
973
const index : number = await this . showSelectDefaultCompiler ( paths ) ;
974
+ let action : string ;
975
+ switch ( index ) {
976
+ case - 1 :
977
+ action = 'escaped' ;
978
+ break ;
979
+ case paths . length - 1 :
980
+ action = 'disable' ;
981
+ break ;
982
+ case paths . length - 2 :
983
+ action = 'help' ;
984
+ break ;
985
+ case paths . length - 3 :
986
+ action = 'browse' ;
987
+ break ;
988
+ default :
989
+ action = 'select compiler' ;
990
+ break ;
991
+ }
992
+ telemetry . logLanguageServerEvent ( 'compilerSelection' , { action } ) ;
974
993
if ( index === - 1 ) {
975
994
if ( showSecondPrompt ) {
976
995
this . showPrompt ( selectCompiler , true ) ;
You can’t perform that action at this time.
0 commit comments