initial proposal of InputBoxValidationSeverity

This commit is contained in:
Tyler Leonhardt
2022-03-19 09:30:45 -07:00
parent f5d9ed8aca
commit 68802ccc44
6 changed files with 71 additions and 11 deletions

View File

@@ -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,