File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
extensions/typescript-language-features/src Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -109,18 +109,16 @@ async function preload(logger: Logger): Promise<void> {
109
109
110
110
const workspaceUri = vscode . workspace . workspaceFolders ?. [ 0 ] . uri ;
111
111
if ( ! workspaceUri || workspaceUri . scheme !== 'vscode-vfs' || workspaceUri . authority !== 'github' ) {
112
- return undefined ;
112
+ logger . info ( `Skipped loading workspace contents for repository ${ workspaceUri ?. toString ( ) } ` ) ;
113
+ return ;
113
114
}
114
115
115
116
try {
116
117
const remoteHubApi = await RemoteRepositories . getApi ( ) ;
117
- if ( remoteHubApi . loadWorkspaceContents !== undefined ) {
118
- if ( await remoteHubApi . loadWorkspaceContents ( workspaceUri ) ) {
119
- logger . info ( `Successfully loaded workspace content for repository ${ workspaceUri . toString ( ) } ` ) ;
120
- } else {
121
- logger . info ( `Failed to load workspace content for repository ${ workspaceUri . toString ( ) } ` ) ;
122
- }
123
-
118
+ if ( await remoteHubApi . loadWorkspaceContents ?.( workspaceUri ) ) {
119
+ logger . info ( `Successfully loaded workspace content for repository ${ workspaceUri . toString ( ) } ` ) ;
120
+ } else {
121
+ logger . info ( `Failed to load workspace content for repository ${ workspaceUri . toString ( ) } ` ) ;
124
122
}
125
123
} catch ( error ) {
126
124
logger . info ( `Loading workspace content for repository ${ workspaceUri . toString ( ) } failed: ${ error instanceof Error ? error . toString ( ) : 'Unknown reason' } ` ) ;
You can’t perform that action at this time.
0 commit comments