Skip to content

Commit 4151c70

Browse files
author
minjk-bl
committed
Fix check updates for jupyterlab-visualpython
1 parent 8ec7ba5 commit 4151c70

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

visualpython/js/com/com_Config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,11 @@ define([
782782
checkVpVersion(background=false) {
783783
let that = this;
784784
let nowVersion = this.getVpInstalledVersion();
785-
this.getPackageVersion().then(function(latestVersion) {
785+
let packageName = 'visualpython';
786+
if (this.extensionType === 'lab') {
787+
packageName = 'jupyterlab-visualpython';
788+
}
789+
this.getPackageVersion(packageName).then(function(latestVersion) {
786790
if (nowVersion === latestVersion) {
787791
// if it's already up to date
788792
// hide version update icon

0 commit comments

Comments
 (0)