提交 95837347 编写于 作者: B Benjamin Pasero

fixes #13867

上级 c613e1bd
......@@ -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: [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册