reactive-vscode 0.0.1-beta.1 → 0.0.1-beta.3
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/LICENSE +21 -0
- package/README.md +33 -35
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/useAbsolutePath.d.ts +2 -1
- package/dist/composables/useActiveColorTheme.d.ts +1 -1
- package/dist/composables/useActiveDebugSession.d.ts +1 -1
- package/dist/composables/useActiveEditorDecorations.d.ts +4 -3
- package/dist/composables/useActiveNotebookEditor.d.ts +1 -1
- package/dist/composables/useActiveTerminal.d.ts +1 -1
- package/dist/composables/useActiveTextEditor.d.ts +1 -1
- package/dist/composables/useAllExtensions.d.ts +1 -1
- package/dist/composables/useCommand.d.ts +2 -1
- package/dist/composables/useCommands.d.ts +3 -2
- package/dist/composables/useCommentController.d.ts +1 -1
- package/dist/composables/useDefaultShell.d.ts +1 -1
- package/dist/composables/useDisposable.d.ts +2 -1
- package/dist/composables/useDocumentText.d.ts +4 -3
- package/dist/composables/useEditorDecorations.d.ts +5 -4
- package/dist/composables/useEvent.d.ts +2 -1
- package/dist/composables/useEventEmitter.d.ts +3 -3
- package/dist/composables/useFetchTasks.d.ts +4 -3
- package/dist/composables/useFileUri.d.ts +3 -2
- package/dist/composables/useFoldingRangeProvider.d.ts +3 -2
- package/dist/composables/useIsDarkTheme.d.ts +1 -1
- package/dist/composables/useIsTelemetryEnabled.d.ts +1 -1
- package/dist/composables/useL10nText.d.ts +2 -1
- package/dist/composables/useLogLevel.d.ts +1 -1
- package/dist/composables/useLogger.d.ts +10 -7
- package/dist/composables/useNotebookEditorSelection.d.ts +3 -2
- package/dist/composables/useNotebookEditorSelections.d.ts +3 -2
- package/dist/composables/useNotebookEditorVisibleRanges.d.ts +3 -2
- package/dist/composables/useOpenedTerminals.d.ts +1 -1
- package/dist/composables/useOutputChannel.d.ts +1 -1
- package/dist/composables/useStatusBarItem.d.ts +19 -0
- package/dist/composables/useTaskExecutions.d.ts +1 -1
- package/dist/composables/useTerminalState.d.ts +3 -2
- package/dist/composables/useTextEditorCommand.d.ts +2 -1
- package/dist/composables/useTextEditorCommands.d.ts +2 -1
- package/dist/composables/useTextEditorSelection.d.ts +3 -2
- package/dist/composables/useTextEditorSelections.d.ts +3 -2
- package/dist/composables/useTextEditorViewColumn.d.ts +3 -2
- package/dist/composables/useTextEditorVisibleRanges.d.ts +3 -2
- package/dist/composables/useTreeView.d.ts +3 -2
- package/dist/composables/useUri.d.ts +4 -3
- package/dist/composables/useViewBadge.d.ts +4 -3
- package/dist/composables/useViewTitle.d.ts +4 -3
- package/dist/composables/useViewVisibility.d.ts +4 -3
- package/dist/composables/useVisibleNotebookEditors.d.ts +1 -1
- package/dist/composables/useVisibleTextEditors.d.ts +1 -1
- package/dist/composables/useVscodeContext.d.ts +2 -1
- package/dist/composables/useWebviewView.d.ts +5 -4
- package/dist/composables/useWindowState.d.ts +2 -2
- package/dist/composables/useWorkspaceFolders.d.ts +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1670 -0
- package/dist/reactivity/apiWatch.d.ts +29 -0
- package/dist/reactivity/enums.d.ts +4 -0
- package/dist/reactivity/errorHandling.d.ts +24 -0
- package/dist/reactivity/index.d.ts +4 -0
- package/dist/reactivity/scheduler.d.ts +31 -0
- package/dist/reactivity/warning.d.ts +1 -0
- package/dist/utils/defineConfigs.d.ts +5 -2
- package/dist/utils/defineExtension.d.ts +4 -3
- package/dist/utils/executeCommand.d.ts +2 -1
- package/dist/utils/onActivate.d.ts +2 -1
- package/package.json +22 -15
- package/shim.d.ts +4 -0
- package/tsconfig.json +9 -0
- package/dist/composables/index.mjs +0 -49
- package/dist/composables/useAbsolutePath.mjs +0 -10
- package/dist/composables/useActiveColorTheme.mjs +0 -11
- package/dist/composables/useActiveDebugSession.mjs +0 -11
- package/dist/composables/useActiveEditorDecorations.mjs +0 -6
- package/dist/composables/useActiveNotebookEditor.mjs +0 -11
- package/dist/composables/useActiveTerminal.mjs +0 -11
- package/dist/composables/useActiveTextEditor.mjs +0 -11
- package/dist/composables/useAllExtensions.mjs +0 -11
- package/dist/composables/useCommand.mjs +0 -5
- package/dist/composables/useCommands.mjs +0 -5
- package/dist/composables/useCommentController.mjs +0 -5
- package/dist/composables/useDefaultShell.mjs +0 -11
- package/dist/composables/useDisposable.mjs +0 -7
- package/dist/composables/useDocumentText.mjs +0 -14
- package/dist/composables/useEditorDecorations.mjs +0 -8
- package/dist/composables/useEvent.mjs +0 -8
- package/dist/composables/useEventEmitter.mjs +0 -14
- package/dist/composables/useFetchTasks.mjs +0 -5
- package/dist/composables/useFileUri.mjs +0 -6
- package/dist/composables/useFoldingRangeProvider.mjs +0 -21
- package/dist/composables/useIsDarkTheme.mjs +0 -8
- package/dist/composables/useIsTelemetryEnabled.mjs +0 -11
- package/dist/composables/useL10nText.mjs +0 -7
- package/dist/composables/useLogLevel.mjs +0 -11
- package/dist/composables/useLogger.mjs +0 -31
- package/dist/composables/useNotebookEditorSelection.mjs +0 -23
- package/dist/composables/useNotebookEditorSelections.mjs +0 -23
- package/dist/composables/useNotebookEditorVisibleRanges.mjs +0 -15
- package/dist/composables/useOpenedTerminals.mjs +0 -13
- package/dist/composables/useOutputChannel.mjs +0 -5
- package/dist/composables/useTaskExecutions.mjs +0 -13
- package/dist/composables/useTerminalState.mjs +0 -15
- package/dist/composables/useTextEditorCommand.mjs +0 -5
- package/dist/composables/useTextEditorCommands.mjs +0 -5
- package/dist/composables/useTextEditorSelection.mjs +0 -23
- package/dist/composables/useTextEditorSelections.mjs +0 -23
- package/dist/composables/useTextEditorViewColumn.mjs +0 -15
- package/dist/composables/useTextEditorVisibleRanges.mjs +0 -15
- package/dist/composables/useTreeView.mjs +0 -33
- package/dist/composables/useUri.mjs +0 -32
- package/dist/composables/useViewBadge.mjs +0 -8
- package/dist/composables/useViewTitle.mjs +0 -8
- package/dist/composables/useViewVisibility.mjs +0 -16
- package/dist/composables/useVisibleNotebookEditors.mjs +0 -11
- package/dist/composables/useVisibleTextEditors.mjs +0 -11
- package/dist/composables/useVscodeContext.mjs +0 -10
- package/dist/composables/useWebviewView.mjs +0 -33
- package/dist/composables/useWindowState.mjs +0 -14
- package/dist/composables/useWorkspaceFolders.mjs +0 -11
- package/dist/index.mjs +0 -73
- package/dist/utils/createKeyedComposable.mjs +0 -22
- package/dist/utils/createSingletonComposable.mjs +0 -4
- package/dist/utils/defineConfigs.mjs +0 -33
- package/dist/utils/defineExtension.mjs +0 -20
- package/dist/utils/executeCommand.mjs +0 -4
- package/dist/utils/index.mjs +0 -9
- package/dist/utils/onActivate.mjs +0 -8
- package/dist/utils/onDeactivate.mjs +0 -4
- package/dist/utils/tryOnScopeDispose.mjs +0 -8
- package/dist/utils/types.mjs +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 _Kerman <https://github.com/KermanX>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,35 +1,33 @@
|
|
|
1
|
-
# reactive-vscode
|
|
2
|
-
|
|
3
|
-
[![npm version][npm-version-src]][npm-version-href]
|
|
4
|
-
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
5
|
-
[![
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
[
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
[npm-
|
|
27
|
-
[npm-
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669
|
|
35
|
-
[jsdocs-href]: https://www.jsdocs.io/package/reactive-vscode
|
|
1
|
+
# reactive-vscode
|
|
2
|
+
|
|
3
|
+
[![npm version][npm-version-src]][npm-version-href]
|
|
4
|
+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
5
|
+
[![License][license-src]][license-href]
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
**Develop VSCode extension with Vue Reactivity API**
|
|
9
|
+
|
|
10
|
+
[**Documentation**](https://kermanx.github.io/reactive-vscode/) | [**Why reactive-vscode**](https://kermanx.github.io/reactive-vscode/guide/why) | [**Functions**](https://kermanx.github.io/reactive-vscode/functions/) | [**Examples**](https://kermanx.github.io/reactive-vscode/examples/)
|
|
11
|
+
|
|
12
|
+
## License
|
|
13
|
+
|
|
14
|
+
[MIT](./LICENSE) License © 2024-PRESENT [_Kerman](https://github.com/KermanX)
|
|
15
|
+
|
|
16
|
+
Source code in [the `./packages/core/src/reactivity` directory](https://github.com/KermanX/reactive-vscode/blob/main/packages/core/src/reactivity) is ported from [`@vue/runtime-core`](https://github.com/vuejs/core/blob/main/packages/runtime-core). Licensed under a [MIT License](https://github.com/vueuse/vueuse/blob/main/LICENSE).
|
|
17
|
+
|
|
18
|
+
The logo <img src="https://kermanx.github.io/reactive-vscode/logo.svg" width="14"> is modified from [Vue Reactity Artworks](https://github.com/vue-reactivity/art). Licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-nc-sa/4.0/).
|
|
19
|
+
|
|
20
|
+
Part of the docs website is ported from [VueUse](https://github.com/vueuse/vueuse). Licensed under a [MIT License](https://github.com/vueuse/vueuse/blob/main/LICENSE).
|
|
21
|
+
|
|
22
|
+
<!-- Badges -->
|
|
23
|
+
|
|
24
|
+
[npm-version-src]: https://img.shields.io/npm/v/reactive-vscode?style=flat&colorA=080f12&colorB=1fa669
|
|
25
|
+
[npm-version-href]: https://npmjs.com/package/reactive-vscode
|
|
26
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/reactive-vscode?style=flat&colorA=080f12&colorB=1fa669
|
|
27
|
+
[npm-downloads-href]: https://npmjs.com/package/reactive-vscode
|
|
28
|
+
[bundle-src]: https://img.shields.io/bundlephobia/minzip/reactive-vscode?style=flat&colorA=080f12&colorB=1fa669&label=minzip
|
|
29
|
+
[bundle-href]: https://bundlephobia.com/result?p=reactive-vscode
|
|
30
|
+
[license-src]: https://img.shields.io/github/license/KermanX/reactive-vscode.svg?style=flat&colorA=080f12&colorB=1fa669
|
|
31
|
+
[license-href]: https://github.com/KermanX/reactive-vscode/blob/main/LICENSE
|
|
32
|
+
[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669
|
|
33
|
+
[jsdocs-href]: https://www.jsdocs.io/package/reactive-vscode
|
|
@@ -28,6 +28,7 @@ export * from './useNotebookEditorSelections';
|
|
|
28
28
|
export * from './useNotebookEditorVisibleRanges';
|
|
29
29
|
export * from './useOpenedTerminals';
|
|
30
30
|
export * from './useOutputChannel';
|
|
31
|
+
export * from './useStatusBarItem';
|
|
31
32
|
export * from './useTaskExecutions';
|
|
32
33
|
export * from './useTerminalState';
|
|
33
34
|
export * from './useTextEditorCommand';
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @reactive `window.activeColorTheme`
|
|
4
4
|
*/
|
|
5
|
-
export declare const useActiveColorTheme: () => import(
|
|
5
|
+
export declare const useActiveColorTheme: () => import('@vue/reactivity').ShallowRef<import('vscode').ColorTheme>;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @reactive `debug.activeDebugSession`
|
|
4
4
|
*/
|
|
5
|
-
export declare const useActiveDebugSession: () => import(
|
|
5
|
+
export declare const useActiveDebugSession: () => import('@vue/reactivity').ComputedRef<import('vscode').DebugSession | undefined>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { DecorationOptions, DecorationRenderOptions, Range, TextEditorDecorationType } from 'vscode';
|
|
2
|
+
import { MaybeRefOrGetter } from '../reactivity';
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* Reactively set decorations on the active editor. See `vscode::window.activeTextEditor`.
|
|
5
6
|
*
|
|
6
7
|
* @category editor
|
|
7
8
|
*/
|
|
8
|
-
export declare function useActiveEditorDecorations(
|
|
9
|
+
export declare function useActiveEditorDecorations(decorationTypeOrOptions: TextEditorDecorationType | DecorationRenderOptions, rangesOrOptions: MaybeRefOrGetter<readonly Range[] | readonly DecorationOptions[]>): void;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @reactive `window.activeNotebookEditor`
|
|
4
4
|
* @category editor
|
|
5
5
|
*/
|
|
6
|
-
export declare const useActiveNotebookEditor: () => import(
|
|
6
|
+
export declare const useActiveNotebookEditor: () => import('@vue/reactivity').ShallowRef<import('vscode').NotebookEditor | undefined>;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @reactive `window.activeTerminal`
|
|
4
4
|
* @category terminal
|
|
5
5
|
*/
|
|
6
|
-
export declare const useActiveTerminal: () => import(
|
|
6
|
+
export declare const useActiveTerminal: () => import('@vue/reactivity').ShallowRef<import('vscode').Terminal | undefined>;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @reactive `window.activeTextEditor`
|
|
4
4
|
* @category editor
|
|
5
5
|
*/
|
|
6
|
-
export declare const useActiveTextEditor: () => import(
|
|
6
|
+
export declare const useActiveTextEditor: () => import('@vue/reactivity').ShallowRef<import('vscode').TextEditor | undefined>;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @reactive `extensions.all`
|
|
4
4
|
*/
|
|
5
|
-
export declare const useAllExtensions: () => import(
|
|
5
|
+
export declare const useAllExtensions: () => import('@vue/reactivity').ComputedRef<readonly import('vscode').Extension<any>[]>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Commands } from '../utils';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* Register multiple commands. See `vscode::commands.registerCommand`.
|
|
4
5
|
*
|
|
5
6
|
* @category commands
|
|
6
7
|
*/
|
|
7
|
-
export declare function useCommands(commands: Commands): void;
|
|
8
|
+
export declare function useCommands(commands: Partial<Commands>): void;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @reactive `comments.createCommentController`
|
|
4
4
|
*/
|
|
5
|
-
export declare function useCommentController(id: string, label: string): import(
|
|
5
|
+
export declare function useCommentController(id: string, label: string): import('vscode').CommentController;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { TextDocument } from 'vscode';
|
|
2
|
+
import { MaybeRefOrGetter } from '../reactivity';
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* @reactive `TextDocument.getText`
|
|
5
6
|
* @category document
|
|
6
7
|
*/
|
|
7
|
-
export declare function useDocumentText(doc: MaybeRefOrGetter<TextDocument | undefined>): import(
|
|
8
|
+
export declare function useDocumentText(doc: MaybeRefOrGetter<TextDocument | undefined>): import('@vue/reactivity').ShallowRef<string | undefined>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { DecorationOptions, DecorationRenderOptions, Range, TextEditor, TextEditorDecorationType } from 'vscode';
|
|
2
|
+
import { MaybeRefOrGetter } from '../reactivity';
|
|
3
|
+
import { Nullable } from '../utils/types';
|
|
4
|
+
|
|
4
5
|
/**
|
|
5
6
|
* Reactively set decorations on the given editor. See `vscode::TextEditor.setDecorations`.
|
|
6
7
|
*
|
|
7
8
|
* @category editor
|
|
8
9
|
*/
|
|
9
|
-
export declare function useEditorDecorations(
|
|
10
|
+
export declare function useEditorDecorations(editor: MaybeRefOrGetter<Nullable<TextEditor>>, decorationTypeOrOptions: TextEditorDecorationType | DecorationRenderOptions, rangesOrOptions: MaybeRefOrGetter<readonly Range[] | readonly DecorationOptions[]>): void;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @reactive `EventEmitter`
|
|
5
5
|
*/
|
|
6
6
|
export declare function useEventEmitter<T>(listeners?: ((e: T) => any)[]): {
|
|
7
|
-
event: import(
|
|
8
|
-
fire:
|
|
9
|
-
addListener: import(
|
|
7
|
+
event: import('vscode').Event<T>;
|
|
8
|
+
fire: (data: T) => void;
|
|
9
|
+
addListener: import('vscode').Event<T>;
|
|
10
10
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { TaskFilter } from 'vscode';
|
|
2
|
+
import { MaybeRefOrGetter } from '../reactivity';
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* @reactive `tasks.fetchTasks`
|
|
5
6
|
*/
|
|
6
|
-
export declare function useFetchTasks(filter?: MaybeRefOrGetter<TaskFilter | undefined>): import(
|
|
7
|
+
export declare function useFetchTasks(filter?: MaybeRefOrGetter<TaskFilter | undefined>): import('@vue/reactivity').ComputedRef<Thenable<import('vscode').Task[]>>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { MaybeRefOrGetter } from '@vue/runtime-core';
|
|
2
1
|
import { Uri } from 'vscode';
|
|
2
|
+
import { MaybeRefOrGetter } from '../reactivity';
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* @reactive `Uri.file`
|
|
5
6
|
* @category utilities
|
|
6
7
|
*/
|
|
7
|
-
export declare function useFileUri(path: MaybeRefOrGetter<string>): import(
|
|
8
|
+
export declare function useFileUri(path: MaybeRefOrGetter<string>): import('@vue/reactivity').ShallowReactive<{
|
|
8
9
|
readonly scheme: string;
|
|
9
10
|
readonly authority: string;
|
|
10
11
|
readonly path: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { DocumentSelector, FoldingRangeProvider } from 'vscode';
|
|
2
|
+
import { MaybeRefOrGetter } from '../reactivity';
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* @reactive `languages.registerFoldingRangeProvider`
|
|
5
6
|
*/
|
|
@@ -6,16 +6,19 @@ declare function defaultGetPrefix(type: string): string;
|
|
|
6
6
|
* @category view
|
|
7
7
|
*/
|
|
8
8
|
export declare function useLogger(name: string, getPrefix?: typeof defaultGetPrefix): {
|
|
9
|
-
outputChannel: import(
|
|
9
|
+
outputChannel: import('vscode').OutputChannel;
|
|
10
10
|
createLoggerFunc: (type: string) => (...message: any[]) => void;
|
|
11
11
|
info: (...message: any[]) => void;
|
|
12
12
|
warn: (...message: any[]) => void;
|
|
13
13
|
error: (...message: any[]) => void;
|
|
14
|
-
append:
|
|
15
|
-
appendLine:
|
|
16
|
-
replace:
|
|
17
|
-
clear:
|
|
18
|
-
show:
|
|
19
|
-
|
|
14
|
+
append: (value: string) => void;
|
|
15
|
+
appendLine: (value: string) => void;
|
|
16
|
+
replace: (value: string) => void;
|
|
17
|
+
clear: () => void;
|
|
18
|
+
show: {
|
|
19
|
+
(preserveFocus?: boolean | undefined): void;
|
|
20
|
+
(column?: import('vscode').ViewColumn | undefined, preserveFocus?: boolean | undefined): void;
|
|
21
|
+
};
|
|
22
|
+
hide: () => void;
|
|
20
23
|
};
|
|
21
24
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { NotebookEditor } from 'vscode';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* @reactive `NotebookEditor.selection`
|
|
4
5
|
* @category editor
|
|
5
6
|
*/
|
|
6
|
-
export declare const useNotebookEditorSelection: (notebookEditor: NotebookEditor) => import(
|
|
7
|
+
export declare const useNotebookEditorSelection: (notebookEditor: NotebookEditor) => import('@vue/reactivity').WritableComputedRef<import('vscode').NotebookRange>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { NotebookEditor } from 'vscode';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* @reactive `NotebookEditor.selections`
|
|
4
5
|
* @category editor
|
|
5
6
|
*/
|
|
6
|
-
export declare const useNotebookEditorSelections: (notebookEditor: NotebookEditor) => import(
|
|
7
|
+
export declare const useNotebookEditorSelections: (notebookEditor: NotebookEditor) => import('@vue/reactivity').WritableComputedRef<readonly import('vscode').NotebookRange[]>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { NotebookEditor } from 'vscode';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* @reactive `NotebookEditor.visibleRanges`
|
|
4
5
|
* @category editor
|
|
5
6
|
*/
|
|
6
|
-
export declare const useNotebookEditorVisibleRanges: (notebookEditor: NotebookEditor) => import(
|
|
7
|
+
export declare const useNotebookEditorVisibleRanges: (notebookEditor: NotebookEditor) => import('@vue/reactivity').ComputedRef<readonly import('vscode').NotebookRange[]>;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @reactive `window.terminals`
|
|
4
4
|
* @category terminal
|
|
5
5
|
*/
|
|
6
|
-
export declare const useOpenedTerminals: () => import(
|
|
6
|
+
export declare const useOpenedTerminals: () => import('@vue/reactivity').ShallowRef<readonly import('vscode').Terminal[]>;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @reactive `window.createOutputChannel`
|
|
4
4
|
* @category view
|
|
5
5
|
*/
|
|
6
|
-
export declare function useOutputChannel(name: string, languageId?: string): import(
|
|
6
|
+
export declare function useOutputChannel(name: string, languageId?: string): import('vscode').OutputChannel;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { StatusBarAlignment, StatusBarItem } from 'vscode';
|
|
2
|
+
import { MaybeRefOrGetter } from '../reactivity';
|
|
3
|
+
|
|
4
|
+
export interface UseStatusBarItemOptions {
|
|
5
|
+
id?: string;
|
|
6
|
+
alignment?: StatusBarAlignment;
|
|
7
|
+
priority?: number;
|
|
8
|
+
name?: MaybeRefOrGetter<StatusBarItem['name']>;
|
|
9
|
+
text?: MaybeRefOrGetter<StatusBarItem['text']>;
|
|
10
|
+
tooltip?: MaybeRefOrGetter<StatusBarItem['tooltip']>;
|
|
11
|
+
color?: MaybeRefOrGetter<StatusBarItem['color']>;
|
|
12
|
+
backgroundColor?: MaybeRefOrGetter<StatusBarItem['backgroundColor']>;
|
|
13
|
+
command?: MaybeRefOrGetter<StatusBarItem['command']>;
|
|
14
|
+
accessibilityInformation?: MaybeRefOrGetter<StatusBarItem['accessibilityInformation']>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @reactive `window.createStatusBarItem`
|
|
18
|
+
*/
|
|
19
|
+
export declare function useStatusBarItem(options: UseStatusBarItemOptions): StatusBarItem;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @reactive `tasks.taskExecutions`
|
|
4
4
|
*/
|
|
5
|
-
export declare const useTaskExecutions: () => import(
|
|
5
|
+
export declare const useTaskExecutions: () => import('@vue/reactivity').ComputedRef<readonly import('vscode').TaskExecution[]>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Terminal } from 'vscode';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* @reactive `Terminal.state`
|
|
4
5
|
* @category terminal
|
|
5
6
|
*/
|
|
6
|
-
export declare const useTerminalState: (terminal: Terminal) => import(
|
|
7
|
+
export declare const useTerminalState: (terminal: Terminal) => import('@vue/reactivity').ComputedRef<import('vscode').TerminalState>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { TextEditor, TextEditorEdit } from 'vscode';
|
|
2
|
+
|
|
2
3
|
export type TextEditorCommandCallback = (textEditor: TextEditor, edit: TextEditorEdit, ...args: any[]) => void;
|
|
3
4
|
/**
|
|
4
5
|
* Register a text editor command. See `vscode::commands.registerTextEditorCommand`.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { TextEditor } from 'vscode';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* @reactive `TextEditor.selection`
|
|
4
5
|
* @category editor
|
|
5
6
|
*/
|
|
6
|
-
export declare const useTextEditorSelection: (textEditor: TextEditor) => import(
|
|
7
|
+
export declare const useTextEditorSelection: (textEditor: TextEditor) => import('@vue/reactivity').WritableComputedRef<import('vscode').Selection>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { TextEditor } from 'vscode';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* @reactive `TextEditor.selections`
|
|
4
5
|
* @category editor
|
|
5
6
|
*/
|
|
6
|
-
export declare const useTextEditorSelections: (textEditor: TextEditor) => import(
|
|
7
|
+
export declare const useTextEditorSelections: (textEditor: TextEditor) => import('@vue/reactivity').WritableComputedRef<readonly import('vscode').Selection[]>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { TextEditor } from 'vscode';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* @reactive `TextEditor.viewColumn`
|
|
4
5
|
* @category editor
|
|
5
6
|
*/
|
|
6
|
-
export declare const useTextEditorViewColumn: (textEditor: TextEditor) => import(
|
|
7
|
+
export declare const useTextEditorViewColumn: (textEditor: TextEditor) => import('@vue/reactivity').ComputedRef<import('vscode').ViewColumn | undefined>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { TextEditor } from 'vscode';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* @reactive `TextEditor.visibleRanges`
|
|
4
5
|
* @category editor
|
|
5
6
|
*/
|
|
6
|
-
export declare const useTextEditorVisibleRanges: (textEditor: TextEditor) => import(
|
|
7
|
+
export declare const useTextEditorVisibleRanges: (textEditor: TextEditor) => import('@vue/reactivity').ComputedRef<readonly import('vscode').Range[]>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { TreeDataProvider, TreeView, TreeViewOptions } from 'vscode';
|
|
2
|
+
import { MaybeRefOrGetter } from '../reactivity';
|
|
3
|
+
|
|
3
4
|
export interface TreeViewNode {
|
|
4
5
|
readonly children?: this[];
|
|
5
6
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Uri } from 'vscode';
|
|
2
|
+
import { MaybeRefOrGetter } from '../reactivity';
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* @reactive `Uri`
|
|
5
6
|
* @category utilities
|
|
6
7
|
*/
|
|
7
|
-
export declare function useUri(uri: MaybeRefOrGetter<Uri>): import(
|
|
8
|
+
export declare function useUri(uri: MaybeRefOrGetter<Uri>): import('@vue/reactivity').ShallowReactive<{
|
|
8
9
|
readonly scheme: string;
|
|
9
10
|
readonly authority: string;
|
|
10
11
|
readonly path: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { TreeView, ViewBadge, WebviewView } from 'vscode';
|
|
2
|
+
import { MaybeRefOrGetter } from '../reactivity';
|
|
3
|
+
import { Nullable } from '../utils/types';
|
|
4
|
+
|
|
4
5
|
type ViewWithBadge = Pick<TreeView<unknown> | WebviewView, 'badge'>;
|
|
5
6
|
/**
|
|
6
7
|
* Reactively set the badge of a view (`vscode::TreeView` or `vscode::WebviewView`).
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { TreeView, WebviewView } from 'vscode';
|
|
2
|
+
import { MaybeRefOrGetter } from '../reactivity';
|
|
3
|
+
import { Nullable } from '../utils/types';
|
|
4
|
+
|
|
4
5
|
type ViewWithTitle = Pick<TreeView<unknown> | WebviewView, 'title'>;
|
|
5
6
|
/**
|
|
6
7
|
* Reactively set the title of a view (`vscode::TreeView` or `vscode::WebviewView`).
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { TreeView, WebviewView } from 'vscode';
|
|
2
|
+
import { ComputedRef, MaybeRefOrGetter } from '../reactivity';
|
|
3
|
+
import { Nullable } from '../utils/types';
|
|
4
|
+
|
|
4
5
|
type ViewWithVisibility = Pick<TreeView<unknown> | WebviewView, 'visible' | 'onDidChangeVisibility'>;
|
|
5
6
|
/**
|
|
6
7
|
* Reactively get the visibility of a view (`vscode::TreeView` or `vscode::WebviewView`).
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @reactive `window.visibleNotebookEditors`
|
|
4
4
|
* @category editor
|
|
5
5
|
*/
|
|
6
|
-
export declare const useVisibleNotebookEditors: () => import(
|
|
6
|
+
export declare const useVisibleNotebookEditors: () => import('@vue/reactivity').ShallowRef<readonly import('vscode').NotebookEditor[]>;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @reactive `window.visibleTextEditors`
|
|
4
4
|
* @category editor
|
|
5
5
|
*/
|
|
6
|
-
export declare const useVisibleTextEditors: () => import(
|
|
6
|
+
export declare const useVisibleTextEditors: () => import('@vue/reactivity').ShallowRef<readonly import('vscode').TextEditor[]>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComputedRef, MaybeRefOrGetter, Ref, WritableComputedRef } from '../reactivity';
|
|
2
|
+
|
|
2
3
|
export declare function useVscodeContext<T>(name: string, value: ComputedRef<T> | (() => T), shouldUpdate?: MaybeRefOrGetter<boolean>): ComputedRef<T>;
|
|
3
4
|
export declare function useVscodeContext<T>(name: string, value: WritableComputedRef<T>, shouldUpdate?: MaybeRefOrGetter<boolean>): WritableComputedRef<T>;
|
|
4
5
|
export declare function useVscodeContext<T>(name: string, value: Ref<T>, shouldUpdate?: MaybeRefOrGetter<boolean>): Ref<T>;
|