File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import * as vscode from "vscode" ;
22import { deactivateLanguageServer , initLanguageServer } from "../workflow/languageServer" ;
3+ import { resetGitHubContext } from "../git/repository" ;
34
45const settingsKey = "github-actions" ;
56const DEFAULT_GITHUB_API = "https://api.github.com" ;
@@ -11,9 +12,12 @@ export function initConfiguration(context: vscode.ExtensionContext) {
1112 pinnedWorkflowsChangeHandlers . forEach ( h => h ( ) ) ;
1213 } else if (
1314 e . affectsConfiguration ( getSettingsKey ( "use-enterprise" ) ) ||
14- e . affectsConfiguration ( "github-enterprise.uri" )
15+ ( isUseEnterprise ( ) &&
16+ ( e . affectsConfiguration ( "github-enterprise.uri" ) || e . affectsConfiguration ( getSettingsKey ( "remote-name" ) ) ) )
1517 ) {
1618 updateLanguageServerApiUrl ( context ) ;
19+ resetGitHubContext ( ) ;
20+ vscode . commands . executeCommand ( "github-actions.explorer.refresh" ) ;
1721 }
1822 } )
1923 ) ;
You can’t perform that action at this time.
0 commit comments