You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -362,6 +364,20 @@ export class WorkspaceD extends EventEmitter implements
362
364
}
363
365
}
364
366
367
+
privatecheckVersion(){
368
+
this.request({cmd: "version"}).then(version=>{
369
+
if(version.major<TARGET_VERSION[0])
370
+
returnvscode.window.showErrorMessage("workspace-d is outdated! (target="+formatVersion(TARGET_VERSION)+", workspaced="+formatVersion([version.major,version.minor,version.patch])+")");
371
+
if(version.minor<TARGET_VERSION[1])
372
+
returnvscode.window.showErrorMessage("workspace-d is outdated! (target="+formatVersion(TARGET_VERSION)+", workspaced="+formatVersion([version.major,version.minor,version.patch])+")");
373
+
if(version.path<TARGET_VERSION[2])
374
+
returnvscode.window.showErrorMessage("workspace-d is outdated! (target="+formatVersion(TARGET_VERSION)+", workspaced="+formatVersion([version.major,version.minor,version.patch])+")");
375
+
this.setupDub();
376
+
},()=>{
377
+
vscode.window.showErrorMessage("Could not identify workspace-d version. Please update workspace-d!");
0 commit comments