mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 13:29:44 +00:00
finalize icons contribution point (for #119101)
This commit is contained in:
parent
0a843d1727
commit
5245ce3866
|
@ -8,7 +8,6 @@
|
|||
export const allApiProposals = Object.freeze({
|
||||
authSession: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.authSession.d.ts',
|
||||
commentsResolvedState: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.commentsResolvedState.d.ts',
|
||||
contribIcons: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribIcons.d.ts',
|
||||
contribLabelFormatterWorkspaceTooltip: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribLabelFormatterWorkspaceTooltip.d.ts',
|
||||
contribMenuBarHome: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribMenuBarHome.d.ts',
|
||||
contribRemoteHelp: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribRemoteHelp.d.ts',
|
||||
|
|
|
@ -10,7 +10,6 @@ import { Registry } from 'vs/platform/registry/common/platform';
|
|||
import { CSSIcon } from 'vs/base/common/codicons';
|
||||
import * as resources from 'vs/base/common/resources';
|
||||
import { IExtensionDescription } from 'vs/platform/extensions/common/extensions';
|
||||
import { isProposedApiEnabled } from 'vs/workbench/services/extensions/common/extensions';
|
||||
import { extname, posix } from 'vs/base/common/path';
|
||||
|
||||
interface IIconExtensionPoint {
|
||||
|
@ -79,11 +78,6 @@ export class IconExtensionPoint {
|
|||
const extensionValue = <IIconExtensionPoint>extension.value;
|
||||
const collector = extension.collector;
|
||||
|
||||
if (!isProposedApiEnabled(extension.description, 'contribIcons')) {
|
||||
collector.error(nls.localize('invalid.icons.proposedAPI', "'configuration.icons is a proposed contribution point. It requires 'package.json#enabledApiProposals: [\"contribIcons\"]' and is only available when running out of dev or with the following command line switch: --enable-proposed-api {0}", extension.description.identifier.value));
|
||||
return;
|
||||
}
|
||||
|
||||
if (!extensionValue || typeof extensionValue !== 'object') {
|
||||
collector.error(nls.localize('invalid.icons.configuration', "'configuration.icons' must be an object with the icon names as properties."));
|
||||
return;
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
// empty placeholder declaration for the `icons`-contribution point
|
||||
|
||||
// https://github.com/microsoft/vscode/issues/119101 @aeschli
|
Loading…
Reference in a new issue