File tree 2 files changed +5
-5
lines changed
Extension/src/LanguageServer
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -776,7 +776,7 @@ export interface Client {
776
776
PauseCodeAnalysis ( ) : void ;
777
777
ResumeCodeAnalysis ( ) : void ;
778
778
CancelCodeAnalysis ( ) : void ;
779
- handleConfigurationSelectCommand ( ) : Promise < void > ;
779
+ handleConfigurationSelectCommand ( config ?: string ) : Promise < void > ;
780
780
handleConfigurationProviderSelectCommand ( ) : Promise < void > ;
781
781
handleShowActiveCodeAnalysisCommands ( ) : Promise < void > ;
782
782
handleShowIdleCodeAnalysisCommands ( ) : Promise < void > ;
@@ -3271,11 +3271,11 @@ export class DefaultClient implements Client {
3271
3271
/**
3272
3272
* command handlers
3273
3273
*/
3274
- public async handleConfigurationSelectCommand ( ) : Promise < void > {
3274
+ public async handleConfigurationSelectCommand ( config ?: string ) : Promise < void > {
3275
3275
await this . ready ;
3276
3276
const configNames : string [ ] | undefined = this . configuration . ConfigurationNames ;
3277
3277
if ( configNames ) {
3278
- const index : number = await ui . showConfigurations ( configNames ) ;
3278
+ const index : number = config ? configNames . indexOf ( config ) : await ui . showConfigurations ( configNames ) ;
3279
3279
if ( index < 0 ) {
3280
3280
return ;
3281
3281
}
Original file line number Diff line number Diff line change @@ -584,13 +584,13 @@ async function installCompiler(sender?: any): Promise<void> {
584
584
telemetry . logLanguageServerEvent ( 'installCompiler' , telemetryProperties ) ;
585
585
}
586
586
587
- async function onSelectConfiguration ( ) : Promise < void > {
587
+ async function onSelectConfiguration ( config ?: string ) : Promise < void > {
588
588
if ( ! isFolderOpen ( ) ) {
589
589
void vscode . window . showInformationMessage ( localize ( "configuration.select.first" , 'Open a folder first to select a configuration.' ) ) ;
590
590
} else {
591
591
// This only applies to the active client. You cannot change the configuration for
592
592
// a client that is not active since that client's UI will not be visible.
593
- return clients . ActiveClient . handleConfigurationSelectCommand ( ) ;
593
+ return clients . ActiveClient . handleConfigurationSelectCommand ( config ) ;
594
594
}
595
595
}
596
596
You can’t perform that action at this time.
0 commit comments