mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 08:38:56 +01:00
initial proposal of InputBoxValidationSeverity
This commit is contained in:
@@ -619,6 +619,10 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
return extHostQuickOpen.showWorkspaceFolderPick(options);
|
||||
},
|
||||
showInputBox(options?: vscode.InputBoxOptions, token?: vscode.CancellationToken) {
|
||||
if (options?.validateInput2) {
|
||||
checkProposedApiEnabled(extension, 'inputBoxSeverity');
|
||||
options.validateInput = options.validateInput2 as any;
|
||||
}
|
||||
return extHostQuickOpen.showInput(options, token);
|
||||
},
|
||||
showOpenDialog(options) {
|
||||
@@ -702,7 +706,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
return extHostQuickOpen.createQuickPick(extension);
|
||||
},
|
||||
createInputBox(): vscode.InputBox {
|
||||
return extHostQuickOpen.createInputBox(extension.identifier);
|
||||
return extHostQuickOpen.createInputBox(extension);
|
||||
},
|
||||
get activeColorTheme(): vscode.ColorTheme {
|
||||
return extHostTheming.activeColorTheme;
|
||||
@@ -1328,6 +1332,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
WorkspaceTrustState: extHostTypes.WorkspaceTrustState,
|
||||
LanguageStatusSeverity: extHostTypes.LanguageStatusSeverity,
|
||||
QuickPickItemKind: extHostTypes.QuickPickItemKind,
|
||||
InputBoxValidationSeverity: extHostTypes.InputBoxValidationSeverity,
|
||||
TextTabInput: extHostTypes.TextTabInput,
|
||||
TextDiffTabInput: extHostTypes.TextDiffTabInput,
|
||||
CustomEditorTabInput: extHostTypes.CustomEditorTabInput,
|
||||
|
||||
Reference in New Issue
Block a user