From 958373475df1fd3dd5319bd8f2d7186772af7494 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Mon, 17 Oct 2016 08:42:29 +0200 Subject: [PATCH] fixes #13867 --- .../workbench/services/files/electron-browser/fileService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/services/files/electron-browser/fileService.ts b/src/vs/workbench/services/files/electron-browser/fileService.ts index a291b13bb69c2..36e5686163642 100644 --- a/src/vs/workbench/services/files/electron-browser/fileService.ts +++ b/src/vs/workbench/services/files/electron-browser/fileService.ts @@ -87,11 +87,11 @@ export class FileService implements IFileService { this.registerListeners(); } - private onFileServiceError(msg: string): void { + private onFileServiceError(msg: any): void { errors.onUnexpectedError(msg); // Detect if we run < .NET Framework 4.5 - if (msg && msg.indexOf(FileService.NET_VERSION_ERROR) >= 0 && !this.storageService.getBoolean(FileService.NET_VERSION_ERROR_IGNORE_KEY, StorageScope.WORKSPACE)) { + if (typeof msg === 'string' && msg.indexOf(FileService.NET_VERSION_ERROR) >= 0 && !this.storageService.getBoolean(FileService.NET_VERSION_ERROR_IGNORE_KEY, StorageScope.WORKSPACE)) { this.messageService.show(Severity.Warning, { message: nls.localize('netVersionError', "The Microsoft .NET Framework 4.5 is required. Please follow the link to install it."), actions: [