Skip to content

Commit 9583734

Browse files
author
Benjamin Pasero
committed
1 parent c613e1b commit 9583734

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/workbench/services/files/electron-browser/fileService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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: [

0 commit comments

Comments
 (0)