File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,11 @@ export function initConfiguration(context: vscode.ExtensionContext) {
1515 ( useEnterprise ( ) &&
1616 ( e . affectsConfiguration ( "github-enterprise.uri" ) || e . affectsConfiguration ( getSettingsKey ( "remote-name" ) ) ) )
1717 ) {
18- await updateLanguageServerApiUrl ( context ) ;
18+ await restartLanguageServer ( context ) ;
1919 resetGitHubContext ( ) ;
2020 await vscode . commands . executeCommand ( "github-actions.explorer.refresh" ) ;
21+ } else if ( e . affectsConfiguration ( getSettingsKey ( "validation.secrets" ) ) ) {
22+ await restartLanguageServer ( context ) ;
2123 }
2224 } )
2325 ) ;
@@ -82,8 +84,7 @@ export function getGitHubApiUri(): string {
8284 }
8385}
8486
85- async function updateLanguageServerApiUrl ( context : vscode . ExtensionContext ) {
87+ async function restartLanguageServer ( context : vscode . ExtensionContext ) {
8688 await deactivateLanguageServer ( ) ;
87-
8889 await initLanguageServer ( context ) ;
8990}
You can’t perform that action at this time.
0 commit comments