未验证 提交 5fc00acc 编写于 作者: A Asher

Fix incorrect reporting that an update failed

上级 e480f652
...@@ -512,10 +512,10 @@ index eab8591492..26668701f7 100644 ...@@ -512,10 +512,10 @@ index eab8591492..26668701f7 100644
options.logService.error(`${logPrefix} socketFactory.connect() failed. Error:`); options.logService.error(`${logPrefix} socketFactory.connect() failed. Error:`);
diff --git a/src/vs/server/browser/client.ts b/src/vs/server/browser/client.ts diff --git a/src/vs/server/browser/client.ts b/src/vs/server/browser/client.ts
new file mode 100644 new file mode 100644
index 0000000000..96fbd4b0bb index 0000000000..a27a6f3a45
--- /dev/null --- /dev/null
+++ b/src/vs/server/browser/client.ts +++ b/src/vs/server/browser/client.ts
@@ -0,0 +1,270 @@ @@ -0,0 +1,266 @@
+import { Emitter } from 'vs/base/common/event'; +import { Emitter } from 'vs/base/common/event';
+import { URI } from 'vs/base/common/uri'; +import { URI } from 'vs/base/common/uri';
+import { localize } from 'vs/nls'; +import { localize } from 'vs/nls';
...@@ -696,10 +696,6 @@ index 0000000000..96fbd4b0bb ...@@ -696,10 +696,6 @@ index 0000000000..96fbd4b0bb
+ } + }
+ +
+ const json = await response.json(); + const json = await response.json();
+ if (!json.isLatest) {
+ throw new Error("Update failed");
+ }
+
+ (services.get(INotificationService) as INotificationService).info(`Updated to ${json.version}`); + (services.get(INotificationService) as INotificationService).info(`Updated to ${json.version}`);
+ }; + };
+ +
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册