reactive-vscode 0.0.1-beta.3 → 0.0.1-beta.5
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/dist/composables/useAbsolutePath.d.ts +1 -1
- package/dist/composables/useActiveEditorDecorations.d.ts +1 -1
- package/dist/composables/useDocumentText.d.ts +1 -1
- package/dist/composables/useEditorDecorations.d.ts +1 -1
- package/dist/composables/useFetchTasks.d.ts +1 -1
- package/dist/composables/useFileUri.d.ts +1 -1
- package/dist/composables/useFoldingRangeProvider.d.ts +1 -1
- package/dist/composables/useL10nText.d.ts +1 -1
- package/dist/composables/useNotebookEditorSelection.d.ts +2 -1
- package/dist/composables/useNotebookEditorSelections.d.ts +2 -1
- package/dist/composables/useNotebookEditorVisibleRanges.d.ts +2 -1
- package/dist/composables/useStatusBarItem.d.ts +1 -1
- package/dist/composables/useTextEditorSelection.d.ts +4 -2
- package/dist/composables/useTextEditorSelections.d.ts +4 -2
- package/dist/composables/useTextEditorViewColumn.d.ts +2 -1
- package/dist/composables/useTextEditorVisibleRanges.d.ts +2 -1
- package/dist/composables/useTreeView.d.ts +1 -1
- package/dist/composables/useUri.d.ts +1 -1
- package/dist/composables/useViewBadge.d.ts +1 -1
- package/dist/composables/useViewTitle.d.ts +1 -1
- package/dist/composables/useViewVisibility.d.ts +1 -1
- package/dist/composables/useVscodeContext.d.ts +1 -1
- package/dist/composables/useWebviewView.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +597 -590
- package/dist/utils/defineConfigs.d.ts +1 -1
- package/dist/utils/types.d.ts +3 -0
- package/package.json +4 -6
- package/dist/reactivity/apiWatch.d.ts +0 -29
- package/dist/reactivity/enums.d.ts +0 -4
- package/dist/reactivity/errorHandling.d.ts +0 -24
- package/dist/reactivity/index.d.ts +0 -4
- package/dist/reactivity/scheduler.d.ts +0 -31
- package/dist/reactivity/warning.d.ts +0 -1
- package/shim.d.ts +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from '@reactive-vscode/reactivity';
|
|
1
2
|
import { DecorationOptions, DecorationRenderOptions, Range, TextEditorDecorationType } from 'vscode';
|
|
2
|
-
import { MaybeRefOrGetter } from '../reactivity';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Reactively set decorations on the active editor. See `vscode::window.activeTextEditor`.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from '@reactive-vscode/reactivity';
|
|
1
2
|
import { DecorationOptions, DecorationRenderOptions, Range, TextEditor, TextEditorDecorationType } from 'vscode';
|
|
2
|
-
import { MaybeRefOrGetter } from '../reactivity';
|
|
3
3
|
import { Nullable } from '../utils/types';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { NotebookEditor } from 'vscode';
|
|
2
|
+
import { MaybeNullableRefOrGetter } from '../utils';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @reactive `NotebookEditor.selection`
|
|
5
6
|
* @category editor
|
|
6
7
|
*/
|
|
7
|
-
export declare
|
|
8
|
+
export declare function useNotebookEditorSelection(notebookEditor: MaybeNullableRefOrGetter<NotebookEditor>): import('@vue/reactivity').WritableComputedRef<import('vscode').NotebookRange>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { NotebookEditor } from 'vscode';
|
|
2
|
+
import { MaybeNullableRefOrGetter } from '../utils';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @reactive `NotebookEditor.selections`
|
|
5
6
|
* @category editor
|
|
6
7
|
*/
|
|
7
|
-
export declare
|
|
8
|
+
export declare function useNotebookEditorSelections(notebookEditor: MaybeNullableRefOrGetter<NotebookEditor>): import('@vue/reactivity').WritableComputedRef<readonly import('vscode').NotebookRange[]>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { NotebookEditor } from 'vscode';
|
|
2
|
+
import { MaybeNullableRefOrGetter } from '../utils';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @reactive `NotebookEditor.visibleRanges`
|
|
5
6
|
* @category editor
|
|
6
7
|
*/
|
|
7
|
-
export declare
|
|
8
|
+
export declare function useNotebookEditorVisibleRanges(notebookEditor: MaybeNullableRefOrGetter<NotebookEditor>): import('@vue/reactivity').ComputedRef<readonly import('vscode').NotebookRange[]>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MaybeRefOrGetter } from '@reactive-vscode/reactivity';
|
|
2
|
+
import { TextEditor, TextEditorSelectionChangeKind } from 'vscode';
|
|
3
|
+
import { MaybeNullableRefOrGetter } from '../utils';
|
|
2
4
|
|
|
3
5
|
/**
|
|
4
6
|
* @reactive `TextEditor.selection`
|
|
5
7
|
* @category editor
|
|
6
8
|
*/
|
|
7
|
-
export declare
|
|
9
|
+
export declare function useTextEditorSelection(textEditor: MaybeNullableRefOrGetter<TextEditor>, acceptKind?: MaybeRefOrGetter<(TextEditorSelectionChangeKind | undefined)[]>): import('@vue/reactivity').WritableComputedRef<import('vscode').Selection>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MaybeRefOrGetter } from '@reactive-vscode/reactivity';
|
|
2
|
+
import { TextEditor, TextEditorSelectionChangeKind } from 'vscode';
|
|
3
|
+
import { MaybeNullableRefOrGetter } from '../utils';
|
|
2
4
|
|
|
3
5
|
/**
|
|
4
6
|
* @reactive `TextEditor.selections`
|
|
5
7
|
* @category editor
|
|
6
8
|
*/
|
|
7
|
-
export declare
|
|
9
|
+
export declare function useTextEditorSelections(textEditor: MaybeNullableRefOrGetter<TextEditor>, acceptKind?: MaybeRefOrGetter<(TextEditorSelectionChangeKind | undefined)[]>): import('@vue/reactivity').WritableComputedRef<readonly import('vscode').Selection[]>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { TextEditor } from 'vscode';
|
|
2
|
+
import { MaybeNullableRefOrGetter } from '../utils';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @reactive `TextEditor.viewColumn`
|
|
5
6
|
* @category editor
|
|
6
7
|
*/
|
|
7
|
-
export declare
|
|
8
|
+
export declare function useTextEditorViewColumn(textEditor: MaybeNullableRefOrGetter<TextEditor>): import('@vue/reactivity').ComputedRef<import('vscode').ViewColumn | undefined>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { TextEditor } from 'vscode';
|
|
2
|
+
import { MaybeNullableRefOrGetter } from '../utils';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @reactive `TextEditor.visibleRanges`
|
|
5
6
|
* @category editor
|
|
6
7
|
*/
|
|
7
|
-
export declare
|
|
8
|
+
export declare function useTextEditorVisibleRanges(textEditor: MaybeNullableRefOrGetter<TextEditor>): import('@vue/reactivity').ComputedRef<readonly import('vscode').Range[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from '@reactive-vscode/reactivity';
|
|
1
2
|
import { TreeView, ViewBadge, WebviewView } from 'vscode';
|
|
2
|
-
import { MaybeRefOrGetter } from '../reactivity';
|
|
3
3
|
import { Nullable } from '../utils/types';
|
|
4
4
|
|
|
5
5
|
type ViewWithBadge = Pick<TreeView<unknown> | WebviewView, 'badge'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from '@reactive-vscode/reactivity';
|
|
1
2
|
import { TreeView, WebviewView } from 'vscode';
|
|
2
|
-
import { MaybeRefOrGetter } from '../reactivity';
|
|
3
3
|
import { Nullable } from '../utils/types';
|
|
4
4
|
|
|
5
5
|
type ViewWithTitle = Pick<TreeView<unknown> | WebviewView, 'title'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { ComputedRef, MaybeRefOrGetter } from '@reactive-vscode/reactivity';
|
|
1
2
|
import { TreeView, WebviewView } from 'vscode';
|
|
2
|
-
import { ComputedRef, MaybeRefOrGetter } from '../reactivity';
|
|
3
3
|
import { Nullable } from '../utils/types';
|
|
4
4
|
|
|
5
5
|
type ViewWithVisibility = Pick<TreeView<unknown> | WebviewView, 'visible' | 'onDidChangeVisibility'>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComputedRef, MaybeRefOrGetter, Ref, WritableComputedRef } from '
|
|
1
|
+
import { ComputedRef, MaybeRefOrGetter, Ref, WritableComputedRef } from '@reactive-vscode/reactivity';
|
|
2
2
|
|
|
3
3
|
export declare function useVscodeContext<T>(name: string, value: ComputedRef<T> | (() => T), shouldUpdate?: MaybeRefOrGetter<boolean>): ComputedRef<T>;
|
|
4
4
|
export declare function useVscodeContext<T>(name: string, value: WritableComputedRef<T>, shouldUpdate?: MaybeRefOrGetter<boolean>): WritableComputedRef<T>;
|
package/dist/index.d.ts
CHANGED