Skip to content

Commit

Permalink
fixes #13867
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Oct 17, 2016
1 parent c613e1b commit 9583734
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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, <IMessageWithAction>{
message: nls.localize('netVersionError', "The Microsoft .NET Framework 4.5 is required. Please follow the link to install it."),
actions: [
Expand Down

0 comments on commit 9583734

Please sign in to comment.