mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 08:08:39 +01:00
resolvers: add appQuality and appCommit (#182532)
Currently remote extensions use a hack to read the product.json, but this can't be done on web. Instead expose proper API to get the appQuality and appCommit.
This commit is contained in:
@@ -397,7 +397,15 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
registerIssueUriRequestHandler(handler: vscode.IssueUriRequestHandler) {
|
||||
checkProposedApiEnabled(extension, 'handleIssueUri');
|
||||
return extHostIssueReporter.registerIssueUriRequestHandler(extension, handler);
|
||||
}
|
||||
},
|
||||
get appQuality(): string | undefined {
|
||||
checkProposedApiEnabled(extension, 'resolvers');
|
||||
return initData.quality;
|
||||
},
|
||||
get appCommit(): string | undefined {
|
||||
checkProposedApiEnabled(extension, 'resolvers');
|
||||
return initData.commit;
|
||||
},
|
||||
};
|
||||
if (!initData.environment.extensionTestsLocationURI) {
|
||||
// allow to patch env-function when running tests
|
||||
|
||||
Reference in New Issue
Block a user