File tree Expand file tree Collapse file tree
src/vs/workbench/services/files/electron-browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,11 +87,11 @@ export class FileService implements IFileService {
8787 this . registerListeners ( ) ;
8888 }
8989
90- private onFileServiceError ( msg : string ) : void {
90+ private onFileServiceError ( msg : any ) : void {
9191 errors . onUnexpectedError ( msg ) ;
9292
9393 // Detect if we run < .NET Framework 4.5
94- if ( msg && msg . indexOf ( FileService . NET_VERSION_ERROR ) >= 0 && ! this . storageService . getBoolean ( FileService . NET_VERSION_ERROR_IGNORE_KEY , StorageScope . WORKSPACE ) ) {
94+ if ( typeof msg === 'string' && msg . indexOf ( FileService . NET_VERSION_ERROR ) >= 0 && ! this . storageService . getBoolean ( FileService . NET_VERSION_ERROR_IGNORE_KEY , StorageScope . WORKSPACE ) ) {
9595 this . messageService . show ( Severity . Warning , < IMessageWithAction > {
9696 message : nls . localize ( 'netVersionError' , "The Microsoft .NET Framework 4.5 is required. Please follow the link to install it." ) ,
9797 actions : [
You can’t perform that action at this time.
0 commit comments