mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-19 14:22:19 +01:00
move languageStatus API proposal into its own file, adopt TypeScript usage, https://github.com/microsoft/vscode/issues/131165
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
"license": "MIT",
|
||||
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
|
||||
"enableProposedApi": true,
|
||||
"enabledApiProposals": [
|
||||
"languageStatus"
|
||||
],
|
||||
"capabilities": {
|
||||
"virtualWorkspaces": {
|
||||
"supported": "limited",
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
"include": [
|
||||
"src/**/*",
|
||||
"../../src/vscode-dts/vscode.d.ts",
|
||||
"../../src/vscode-dts/vscode.proposed.languageStatus.d.ts",
|
||||
"../../src/vscode-dts/vscode.proposed.d.ts"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -517,7 +517,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
return extHostLanguageFeatures.registerInlayHintsProvider(extension, selector, provider);
|
||||
},
|
||||
createLanguageStatusItem(id: string, selector: vscode.DocumentSelector): vscode.LanguageStatusItem {
|
||||
checkProposedApiEnabled(extension);
|
||||
checkProposedApiEnabled(extension, 'languageStatus');
|
||||
return extHostLanguages.createLanguageStatusItem(extension, id, selector);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY.
|
||||
|
||||
export const allApiProposals = Object.freeze({
|
||||
|
||||
languageStatus: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.languageStatus.d.ts'
|
||||
});
|
||||
export type ApiProposalName = keyof typeof allApiProposals;
|
||||
export const allApiProposalNames = <readonly ApiProposalName[]><unknown>Object.keys(allApiProposals);
|
||||
|
||||
Vendored
-25
@@ -2726,32 +2726,7 @@ declare module 'vscode' {
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region languageStatus: https://github.com/microsoft/vscode/issues/129037
|
||||
|
||||
enum LanguageStatusSeverity {
|
||||
Information = 0,
|
||||
Warning = 1,
|
||||
Error = 2
|
||||
}
|
||||
|
||||
interface LanguageStatusItem {
|
||||
readonly id: string;
|
||||
selector: DocumentSelector;
|
||||
// todo@jrieken replace with boolean ala needsAttention
|
||||
severity: LanguageStatusSeverity;
|
||||
name: string | undefined;
|
||||
text: string;
|
||||
detail?: string;
|
||||
command: Command | undefined;
|
||||
accessibilityInformation?: AccessibilityInformation;
|
||||
dispose(): void;
|
||||
}
|
||||
|
||||
namespace languages {
|
||||
export function createLanguageStatusItem(id: string, selector: DocumentSelector): LanguageStatusItem;
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region scmActionButton: https://github.com/microsoft/vscode/issues/133935
|
||||
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
// https://github.com/microsoft/vscode/issues/129037
|
||||
|
||||
declare module 'vscode' {
|
||||
|
||||
enum LanguageStatusSeverity {
|
||||
Information = 0,
|
||||
Warning = 1,
|
||||
Error = 2
|
||||
}
|
||||
|
||||
interface LanguageStatusItem {
|
||||
readonly id: string;
|
||||
selector: DocumentSelector;
|
||||
// todo@jrieken replace with boolean ala needsAttention
|
||||
severity: LanguageStatusSeverity;
|
||||
name: string | undefined;
|
||||
text: string;
|
||||
detail?: string;
|
||||
command: Command | undefined;
|
||||
accessibilityInformation?: AccessibilityInformation;
|
||||
dispose(): void;
|
||||
}
|
||||
|
||||
namespace languages {
|
||||
export function createLanguageStatusItem(id: string, selector: DocumentSelector): LanguageStatusItem;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user