API extension service incompatible
Opened this issue · 0 comments
Bug Description: API Conflict
Console Log Error:
abstractExtensionService.ts:841 Extension 'ZainChen.json cannot use PROPOSED API (must started out of dev or enabled via --enable-proposed-api)
updateEnableProposedApi @ abstractExtensionService.ts:841
localProcessExtensionHost.ts:265 Extension Host
How to Reproduce
This is difficult to assess as I only noticed it investigating a Prisma Language Server bug
It may be related to this but it may also be pre-existing.
If related then steps are most likely
- build blitz.js standard build up to and including blitz prisma generate
- add prisma extension [prisma.prisma]
- run blitz dev
The bug seems to be caused by an error in the underlying extension.json file. Is it possible this is changed by another extension?
Expected Behaviour
No console errors!
Actual Behaviour
Console error due to
`public updateEnableProposedApi(extension: IExtensionDescription): void {
if (this._allowProposedApiFromProduct(extension.identifier)) {
// fast lane -> proposed api is available to all extensions
// that are listed in product.json-files
extension.enableProposedApi = true;
} else if (extension.enableProposedApi && !extension.isBuiltin) {
if (
!this.enableProposedApiForAll &&
this.enableProposedApiFor.indexOf(extension.identifier.value.toLowerCase()) < 0
) {
extension.enableProposedApi = false;
console.error(`Extension '${extension.identifier.value} cannot use PROPOSED API (must started out of dev
or enabled via --enable-proposed-api)`); // ie. this is the error
} else if (this._environmentService.isBuilt) {
// proposed api is available when developing or when an extension was explicitly
// spelled out via a command line argument
console.warn(`Extension '${extension.identifier.value}' uses PROPOSED API which is subject to change and
removal without notice.`);
}
}
}`
Environment
VS Code {
Version: 1.54.3
Commit: 2b9aebd5354a3629c3aba0a5f5df49f43d6689f8
Date: 2021-03-15T10:55:24.277Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Linux x64 5.4.99-12983-g8b7876ab9f5e}
Running blitz.js in Debian Buster
Your Extension Version v2.02
Feel free to request any additional information