checkProposedApiEnabled and isProposedApiEnabled must be called with proposal name, add proposals for package.json-based API, https://github.com/microsoft/vscode/issues/131165

This commit is contained in:
Johannes Rieken
2021-11-12 14:46:33 +01:00
parent 23f79187b9
commit e79a9c811a
17 changed files with 72 additions and 52 deletions

View File

@@ -84,7 +84,7 @@ class ResourceLabelFormattersHandler implements IWorkbenchContribution {
constructor(@ILabelService labelService: ILabelService) {
resourceLabelFormattersExtPoint.setHandler((extensions, delta) => {
delta.added.forEach(added => added.value.forEach(formatter => {
if (!isProposedApiEnabled(added.description, undefined) && formatter.formatting.workspaceTooltip) {
if (!isProposedApiEnabled(added.description, 'contribLabelFormatterWorkspaceTooltip') && formatter.formatting.workspaceTooltip) {
// workspaceTooltip is only proposed
formatter.formatting.workspaceTooltip = undefined;
}