fix(plugin): make the latest user sdk compatible for old plugin core

This commit is contained in:
charlie
2022-04-22 13:53:03 +08:00
committed by Andelf
parent c363c47a21
commit 1963a9709c

View File

@@ -394,9 +394,14 @@ export class LSPluginUser
this._caller.debugTag = `#${baseInfo.id} [${baseInfo.name}]`
}
await this._execCallableAPIAsync('setSDKMetadata', {
version: this._version,
})
try {
await this._execCallableAPIAsync('setSDKMetadata', {
version: this._version,
})
} catch (e) {
console.warn(e)
}
callback && callback.call(this, baseInfo)
} catch (e) {