File tree 1 file changed +4
-1
lines changed
Extension/src/LanguageServer
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -479,6 +479,7 @@ interface CodeAnalysisParams {
479
479
480
480
interface FinishedRequestCustomConfigParams {
481
481
uri : string ;
482
+ isProviderRegistered : boolean ;
482
483
}
483
484
484
485
export interface TextDocumentWillSaveParams {
@@ -2102,8 +2103,9 @@ export class DefaultClient implements Client {
2102
2103
}
2103
2104
2104
2105
public async provideCustomConfiguration ( docUri : vscode . Uri ) : Promise < void > {
2106
+ let isProviderRegistered : boolean = false ;
2105
2107
const onFinished : ( ) => void = ( ) => {
2106
- void this . languageClient . sendNotification ( FinishedRequestCustomConfig , { uri : docUri . toString ( ) } ) ;
2108
+ void this . languageClient . sendNotification ( FinishedRequestCustomConfig , { uri : docUri . toString ( ) , isProviderRegistered } ) ;
2107
2109
} ;
2108
2110
try {
2109
2111
const providerId : string | undefined = this . configurationProvider ;
@@ -2114,6 +2116,7 @@ export class DefaultClient implements Client {
2114
2116
if ( ! provider || ! provider . isReady ) {
2115
2117
return ;
2116
2118
}
2119
+ isProviderRegistered = true ;
2117
2120
const resultCode = await this . provideCustomConfigurationAsync ( docUri , provider ) ;
2118
2121
telemetry . logLanguageServerEvent ( 'provideCustomConfiguration' , { providerId, resultCode } ) ;
2119
2122
} finally {
You can’t perform that action at this time.
0 commit comments