File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed
src/vs/workbench/services/workspaces/common Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -126,23 +126,26 @@ export class WorkspaceTrustManagementService extends Disposable implements IWork
126
126
private registerListeners ( ) : void {
127
127
128
128
// Resolve the workspace uris and resolve the initialization promise
129
- this . resolveCanonicalWorkspaceUris ( ) . then ( async ( ) => {
130
- this . _initialized = true ;
131
- await this . updateWorkspaceTrust ( ) ;
132
-
133
- this . _workspaceResolvedPromiseResolve ( ) ;
134
- if ( ! this . environmentService . remoteAuthority ) {
135
- this . _workspaceTrustInitializedPromiseResolve ( ) ;
136
- }
137
- } ) ;
129
+ this . resolveCanonicalWorkspaceUris ( )
130
+ . then ( async ( ) => {
131
+ this . _initialized = true ;
132
+ await this . updateWorkspaceTrust ( ) ;
133
+ } )
134
+ . finally ( ( ) => {
135
+ this . _workspaceResolvedPromiseResolve ( ) ;
136
+ if ( ! this . environmentService . remoteAuthority ) {
137
+ this . _workspaceTrustInitializedPromiseResolve ( ) ;
138
+ }
139
+ } ) ;
138
140
139
141
// Remote - resolve remote authority
140
142
if ( this . environmentService . remoteAuthority ) {
141
143
this . remoteAuthorityResolverService . resolveAuthority ( this . environmentService . remoteAuthority )
142
144
. then ( async result => {
143
145
this . _remoteAuthority = result ;
144
146
await this . updateWorkspaceTrust ( ) ;
145
-
147
+ } )
148
+ . finally ( ( ) => {
146
149
this . _workspaceTrustInitializedPromiseResolve ( ) ;
147
150
} ) ;
148
151
}
You can’t perform that action at this time.
0 commit comments