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> {
109109
110110 const workspaceUri = vscode . workspace . workspaceFolders ?. [ 0 ] . uri ;
111111 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 ;
113114 }
114115
115116 try {
116117 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 ( ) } ` ) ;
124122 }
125123 } catch ( error ) {
126124 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