@lvce-editor/api 9.31.0 → 9.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ShowQuickInputOptions } from '../ShowQuickInputOptions/ShowQuickInputOptions.ts';
|
|
2
2
|
import type { ShowQuickPickOptions } from '../ShowQuickPickOptions/ShowQuickPickOptions.ts';
|
|
3
3
|
export declare const showFileQuickPick: () => Promise<void>;
|
|
4
|
+
/** Shows a freeform text field without a results list. Returns undefined on cancellation. */
|
|
4
5
|
export declare const showQuickInput: (options?: ShowQuickInputOptions) => Promise<string | undefined>;
|
|
5
6
|
export declare const showQuickPick: (options: ShowQuickPickOptions) => Promise<unknown>;
|
|
@@ -3,6 +3,7 @@ import { executeCommand } from "../ExecuteCommand/ExecuteCommand.js";
|
|
|
3
3
|
export const showFileQuickPick = async () => {
|
|
4
4
|
await executeCommand('QuickPick.showFile');
|
|
5
5
|
};
|
|
6
|
+
/** Shows a freeform text field without a results list. Returns undefined on cancellation. */
|
|
6
7
|
export const showQuickInput = async (options = {}) => {
|
|
7
8
|
return ExtensionManagementWorker.invoke('ExtensionHostQuickPick.showQuickInput', options);
|
|
8
9
|
};
|
|
@@ -3,4 +3,6 @@ export interface ShowQuickPickOptions {
|
|
|
3
3
|
readonly acceptInput?: boolean;
|
|
4
4
|
readonly items: readonly QuickPickItem[];
|
|
5
5
|
readonly placeholder?: string;
|
|
6
|
+
/** Text accepts freeform input without a results list; select filters items (the default). */
|
|
7
|
+
readonly type?: 'text' | 'select';
|
|
6
8
|
}
|