reactive-vscode 1.0.0-beta.2 → 1.0.1
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.
- package/README.md +0 -4
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -43
- package/dist/index.js +783 -892
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { chat, commands, debug, env, extensions, l10n, lm, window, workspace } from 'vscode';
|
|
1
2
|
import { ChatParticipant } from 'vscode';
|
|
2
3
|
import { ChatRequestHandler } from 'vscode';
|
|
3
4
|
import { ColorTheme } from 'vscode';
|
|
@@ -15,6 +16,7 @@ import { Extension } from 'vscode';
|
|
|
15
16
|
import { ExtensionContext } from 'vscode';
|
|
16
17
|
import { ExtensionTerminalOptions } from 'vscode';
|
|
17
18
|
import { GlobPattern } from 'vscode';
|
|
19
|
+
import { InputBox } from 'vscode';
|
|
18
20
|
import { InputBoxValidationMessage } from 'vscode';
|
|
19
21
|
import { LanguageModelToolInformation } from 'vscode';
|
|
20
22
|
import { LogLevel } from 'vscode';
|
|
@@ -25,6 +27,7 @@ import { Memento } from 'vscode';
|
|
|
25
27
|
import { NotebookEditor } from 'vscode';
|
|
26
28
|
import { NotebookRange } from 'vscode';
|
|
27
29
|
import { QuickInputButton } from 'vscode';
|
|
30
|
+
import { QuickPick } from 'vscode';
|
|
28
31
|
import { QuickPickItem } from 'vscode';
|
|
29
32
|
import { QuickPickItemButtonEvent } from 'vscode';
|
|
30
33
|
import { Range } from 'vscode';
|
|
@@ -125,6 +128,7 @@ export declare function defineLogger(name: string): {
|
|
|
125
128
|
};
|
|
126
129
|
hide: () => void;
|
|
127
130
|
logger: ComputedRef<LogOutputChannel | null>;
|
|
131
|
+
logLevel: ComputedRef<LogLevel>;
|
|
128
132
|
};
|
|
129
133
|
|
|
130
134
|
/**
|
|
@@ -609,29 +613,11 @@ export declare function useGlobalState<T>(key: string, defaultValue: T): Ref<T>;
|
|
|
609
613
|
* @reactive {@linkcode window.createInputBox}
|
|
610
614
|
*/
|
|
611
615
|
export declare function useInputBox(options?: InputBoxProps): {
|
|
616
|
+
inputBox: InputBox;
|
|
612
617
|
/**
|
|
613
618
|
* @see {@linkcode InputBox.value}
|
|
614
619
|
*/
|
|
615
620
|
value: Ref<string, string> | ShallowRef<string, string> | WritableComputedRef<string, string>;
|
|
616
|
-
valueSelection: readonly [number, number] | undefined;
|
|
617
|
-
placeholder: string | undefined;
|
|
618
|
-
password: boolean;
|
|
619
|
-
onDidChangeValue: Event_2<string>;
|
|
620
|
-
onDidAccept: Event_2<void>;
|
|
621
|
-
buttons: readonly QuickInputButton[];
|
|
622
|
-
onDidTriggerButton: Event_2<QuickInputButton>;
|
|
623
|
-
prompt: string | undefined;
|
|
624
|
-
validationMessage: string | InputBoxValidationMessage | undefined;
|
|
625
|
-
title: string | undefined;
|
|
626
|
-
step: number | undefined;
|
|
627
|
-
totalSteps: number | undefined;
|
|
628
|
-
enabled: boolean;
|
|
629
|
-
busy: boolean;
|
|
630
|
-
ignoreFocusOut: boolean;
|
|
631
|
-
show(): void;
|
|
632
|
-
hide(): void;
|
|
633
|
-
onDidHide: Event_2<void>;
|
|
634
|
-
dispose(): void;
|
|
635
621
|
};
|
|
636
622
|
|
|
637
623
|
/**
|
|
@@ -699,6 +685,7 @@ export declare const useOpenedTerminals: () => ShallowRef<readonly Terminal[], r
|
|
|
699
685
|
* @reactive {@linkcode window.createQuickPick}
|
|
700
686
|
*/
|
|
701
687
|
export declare function useQuickPick<T extends QuickPickItem>(options?: QuickPickProps<T>): {
|
|
688
|
+
quickPick: QuickPick<T>;
|
|
702
689
|
/**
|
|
703
690
|
* @see {@linkcode QuickPick.value}
|
|
704
691
|
*/
|
|
@@ -711,29 +698,6 @@ export declare function useQuickPick<T extends QuickPickItem>(options?: QuickPic
|
|
|
711
698
|
* @see {@linkcode QuickPick.selectedItems}
|
|
712
699
|
*/
|
|
713
700
|
selectedItems: Ref<readonly T[], readonly T[]> | ShallowRef<readonly T[], readonly T[]> | WritableComputedRef<readonly T[], readonly T[]>;
|
|
714
|
-
placeholder: string | undefined;
|
|
715
|
-
onDidChangeValue: Event_2<string>;
|
|
716
|
-
onDidAccept: Event_2<void>;
|
|
717
|
-
buttons: readonly QuickInputButton[];
|
|
718
|
-
onDidTriggerButton: Event_2<QuickInputButton>;
|
|
719
|
-
onDidTriggerItemButton: Event_2<QuickPickItemButtonEvent<T>>;
|
|
720
|
-
items: readonly T[];
|
|
721
|
-
canSelectMany: boolean;
|
|
722
|
-
matchOnDescription: boolean;
|
|
723
|
-
matchOnDetail: boolean;
|
|
724
|
-
keepScrollPosition?: boolean;
|
|
725
|
-
onDidChangeActive: Event_2<readonly T[]>;
|
|
726
|
-
onDidChangeSelection: Event_2<readonly T[]>;
|
|
727
|
-
title: string | undefined;
|
|
728
|
-
step: number | undefined;
|
|
729
|
-
totalSteps: number | undefined;
|
|
730
|
-
enabled: boolean;
|
|
731
|
-
busy: boolean;
|
|
732
|
-
ignoreFocusOut: boolean;
|
|
733
|
-
show(): void;
|
|
734
|
-
hide(): void;
|
|
735
|
-
onDidHide: Event_2<void>;
|
|
736
|
-
dispose(): void;
|
|
737
701
|
};
|
|
738
702
|
|
|
739
703
|
/* Excluded from this release type: useReactiveOptions */
|
|
@@ -1062,7 +1026,7 @@ export declare interface WebviewViewProps extends WebviewCreationOptions {
|
|
|
1062
1026
|
*/
|
|
1063
1027
|
badge?: MaybeRefOrGetter<WebviewView['badge']>;
|
|
1064
1028
|
/**
|
|
1065
|
-
* @see {@linkcode
|
|
1029
|
+
* @see {@linkcode WebviewView.onDidDispose}
|
|
1066
1030
|
*/
|
|
1067
1031
|
onDidDispose?: EventListener_2<WebviewView['onDidDispose']>;
|
|
1068
1032
|
/**
|