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.
Files changed (129) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +33 -35
  3. package/dist/composables/index.d.ts +1 -0
  4. package/dist/composables/useAbsolutePath.d.ts +2 -1
  5. package/dist/composables/useActiveColorTheme.d.ts +1 -1
  6. package/dist/composables/useActiveDebugSession.d.ts +1 -1
  7. package/dist/composables/useActiveEditorDecorations.d.ts +4 -3
  8. package/dist/composables/useActiveNotebookEditor.d.ts +1 -1
  9. package/dist/composables/useActiveTerminal.d.ts +1 -1
  10. package/dist/composables/useActiveTextEditor.d.ts +1 -1
  11. package/dist/composables/useAllExtensions.d.ts +1 -1
  12. package/dist/composables/useCommand.d.ts +2 -1
  13. package/dist/composables/useCommands.d.ts +3 -2
  14. package/dist/composables/useCommentController.d.ts +1 -1
  15. package/dist/composables/useDefaultShell.d.ts +1 -1
  16. package/dist/composables/useDisposable.d.ts +2 -1
  17. package/dist/composables/useDocumentText.d.ts +4 -3
  18. package/dist/composables/useEditorDecorations.d.ts +5 -4
  19. package/dist/composables/useEvent.d.ts +2 -1
  20. package/dist/composables/useEventEmitter.d.ts +3 -3
  21. package/dist/composables/useFetchTasks.d.ts +4 -3
  22. package/dist/composables/useFileUri.d.ts +3 -2
  23. package/dist/composables/useFoldingRangeProvider.d.ts +3 -2
  24. package/dist/composables/useIsDarkTheme.d.ts +1 -1
  25. package/dist/composables/useIsTelemetryEnabled.d.ts +1 -1
  26. package/dist/composables/useL10nText.d.ts +2 -1
  27. package/dist/composables/useLogLevel.d.ts +1 -1
  28. package/dist/composables/useLogger.d.ts +10 -7
  29. package/dist/composables/useNotebookEditorSelection.d.ts +3 -2
  30. package/dist/composables/useNotebookEditorSelections.d.ts +3 -2
  31. package/dist/composables/useNotebookEditorVisibleRanges.d.ts +3 -2
  32. package/dist/composables/useOpenedTerminals.d.ts +1 -1
  33. package/dist/composables/useOutputChannel.d.ts +1 -1
  34. package/dist/composables/useStatusBarItem.d.ts +19 -0
  35. package/dist/composables/useTaskExecutions.d.ts +1 -1
  36. package/dist/composables/useTerminalState.d.ts +3 -2
  37. package/dist/composables/useTextEditorCommand.d.ts +2 -1
  38. package/dist/composables/useTextEditorCommands.d.ts +2 -1
  39. package/dist/composables/useTextEditorSelection.d.ts +3 -2
  40. package/dist/composables/useTextEditorSelections.d.ts +3 -2
  41. package/dist/composables/useTextEditorViewColumn.d.ts +3 -2
  42. package/dist/composables/useTextEditorVisibleRanges.d.ts +3 -2
  43. package/dist/composables/useTreeView.d.ts +3 -2
  44. package/dist/composables/useUri.d.ts +4 -3
  45. package/dist/composables/useViewBadge.d.ts +4 -3
  46. package/dist/composables/useViewTitle.d.ts +4 -3
  47. package/dist/composables/useViewVisibility.d.ts +4 -3
  48. package/dist/composables/useVisibleNotebookEditors.d.ts +1 -1
  49. package/dist/composables/useVisibleTextEditors.d.ts +1 -1
  50. package/dist/composables/useVscodeContext.d.ts +2 -1
  51. package/dist/composables/useWebviewView.d.ts +5 -4
  52. package/dist/composables/useWindowState.d.ts +2 -2
  53. package/dist/composables/useWorkspaceFolders.d.ts +1 -1
  54. package/dist/index.d.ts +1 -2
  55. package/dist/index.js +1670 -0
  56. package/dist/reactivity/apiWatch.d.ts +29 -0
  57. package/dist/reactivity/enums.d.ts +4 -0
  58. package/dist/reactivity/errorHandling.d.ts +24 -0
  59. package/dist/reactivity/index.d.ts +4 -0
  60. package/dist/reactivity/scheduler.d.ts +31 -0
  61. package/dist/reactivity/warning.d.ts +1 -0
  62. package/dist/utils/defineConfigs.d.ts +5 -2
  63. package/dist/utils/defineExtension.d.ts +4 -3
  64. package/dist/utils/executeCommand.d.ts +2 -1
  65. package/dist/utils/onActivate.d.ts +2 -1
  66. package/package.json +22 -15
  67. package/shim.d.ts +4 -0
  68. package/tsconfig.json +9 -0
  69. package/dist/composables/index.mjs +0 -49
  70. package/dist/composables/useAbsolutePath.mjs +0 -10
  71. package/dist/composables/useActiveColorTheme.mjs +0 -11
  72. package/dist/composables/useActiveDebugSession.mjs +0 -11
  73. package/dist/composables/useActiveEditorDecorations.mjs +0 -6
  74. package/dist/composables/useActiveNotebookEditor.mjs +0 -11
  75. package/dist/composables/useActiveTerminal.mjs +0 -11
  76. package/dist/composables/useActiveTextEditor.mjs +0 -11
  77. package/dist/composables/useAllExtensions.mjs +0 -11
  78. package/dist/composables/useCommand.mjs +0 -5
  79. package/dist/composables/useCommands.mjs +0 -5
  80. package/dist/composables/useCommentController.mjs +0 -5
  81. package/dist/composables/useDefaultShell.mjs +0 -11
  82. package/dist/composables/useDisposable.mjs +0 -7
  83. package/dist/composables/useDocumentText.mjs +0 -14
  84. package/dist/composables/useEditorDecorations.mjs +0 -8
  85. package/dist/composables/useEvent.mjs +0 -8
  86. package/dist/composables/useEventEmitter.mjs +0 -14
  87. package/dist/composables/useFetchTasks.mjs +0 -5
  88. package/dist/composables/useFileUri.mjs +0 -6
  89. package/dist/composables/useFoldingRangeProvider.mjs +0 -21
  90. package/dist/composables/useIsDarkTheme.mjs +0 -8
  91. package/dist/composables/useIsTelemetryEnabled.mjs +0 -11
  92. package/dist/composables/useL10nText.mjs +0 -7
  93. package/dist/composables/useLogLevel.mjs +0 -11
  94. package/dist/composables/useLogger.mjs +0 -31
  95. package/dist/composables/useNotebookEditorSelection.mjs +0 -23
  96. package/dist/composables/useNotebookEditorSelections.mjs +0 -23
  97. package/dist/composables/useNotebookEditorVisibleRanges.mjs +0 -15
  98. package/dist/composables/useOpenedTerminals.mjs +0 -13
  99. package/dist/composables/useOutputChannel.mjs +0 -5
  100. package/dist/composables/useTaskExecutions.mjs +0 -13
  101. package/dist/composables/useTerminalState.mjs +0 -15
  102. package/dist/composables/useTextEditorCommand.mjs +0 -5
  103. package/dist/composables/useTextEditorCommands.mjs +0 -5
  104. package/dist/composables/useTextEditorSelection.mjs +0 -23
  105. package/dist/composables/useTextEditorSelections.mjs +0 -23
  106. package/dist/composables/useTextEditorViewColumn.mjs +0 -15
  107. package/dist/composables/useTextEditorVisibleRanges.mjs +0 -15
  108. package/dist/composables/useTreeView.mjs +0 -33
  109. package/dist/composables/useUri.mjs +0 -32
  110. package/dist/composables/useViewBadge.mjs +0 -8
  111. package/dist/composables/useViewTitle.mjs +0 -8
  112. package/dist/composables/useViewVisibility.mjs +0 -16
  113. package/dist/composables/useVisibleNotebookEditors.mjs +0 -11
  114. package/dist/composables/useVisibleTextEditors.mjs +0 -11
  115. package/dist/composables/useVscodeContext.mjs +0 -10
  116. package/dist/composables/useWebviewView.mjs +0 -33
  117. package/dist/composables/useWindowState.mjs +0 -14
  118. package/dist/composables/useWorkspaceFolders.mjs +0 -11
  119. package/dist/index.mjs +0 -73
  120. package/dist/utils/createKeyedComposable.mjs +0 -22
  121. package/dist/utils/createSingletonComposable.mjs +0 -4
  122. package/dist/utils/defineConfigs.mjs +0 -33
  123. package/dist/utils/defineExtension.mjs +0 -20
  124. package/dist/utils/executeCommand.mjs +0 -4
  125. package/dist/utils/index.mjs +0 -9
  126. package/dist/utils/onActivate.mjs +0 -8
  127. package/dist/utils/onDeactivate.mjs +0 -4
  128. package/dist/utils/tryOnScopeDispose.mjs +0 -8
  129. 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
- [![bundle][bundle-src]][bundle-href]
6
- [![JSDocs][jsdocs-src]][jsdocs-href]
7
- [![License][license-src]][license-href]
8
-
9
- ![Header](./docs/public/header.png)
10
- **Develop VSCode extension with Vue 3 Composition API**
11
-
12
- [**Documentation**](https://kermanx.github.io/reactive-vscode/) | [**Why reactive-vscode**](https://kermanx.github.io/reactive-vscode/guide/why) | [**Implemented Composables**](https://kermanx.github.io/reactive-vscode/functions.html)
13
-
14
- 🚧 _**WIP**, not published yet_ 🚧
15
-
16
- ## License
17
-
18
- [MIT](./LICENSE) License © 2024-PRESENT [_Kerman](https://github.com/KermanX)
19
-
20
- 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/).
21
-
22
- 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).
23
-
24
- <!-- Badges -->
25
-
26
- [npm-version-src]: https://img.shields.io/npm/v/reactive-vscode?style=flat&colorA=080f12&colorB=1fa669
27
- [npm-version-href]: https://npmjs.com/package/reactive-vscode
28
- [npm-downloads-src]: https://img.shields.io/npm/dm/reactive-vscode?style=flat&colorA=080f12&colorB=1fa669
29
- [npm-downloads-href]: https://npmjs.com/package/reactive-vscode
30
- [bundle-src]: https://img.shields.io/bundlephobia/minzip/reactive-vscode?style=flat&colorA=080f12&colorB=1fa669&label=minzip
31
- [bundle-href]: https://bundlephobia.com/result?p=reactive-vscode
32
- [license-src]: https://img.shields.io/github/license/KermanX/reactive-vscode.svg?style=flat&colorA=080f12&colorB=1fa669
33
- [license-href]: https://github.com/KermanX/reactive-vscode/blob/main/LICENSE
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
+ ![Header](./docs/public/header.png)
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';
@@ -1,4 +1,5 @@
1
- import type { ComputedRef, MaybeRefOrGetter } from '@vue/runtime-core';
1
+ import { ComputedRef, MaybeRefOrGetter } from '../reactivity';
2
+
2
3
  /**
3
4
  * @category utilities
4
5
  * @reactive `ExtensionContext.asAbsolutePath`
@@ -2,4 +2,4 @@
2
2
  /**
3
3
  * @reactive `window.activeColorTheme`
4
4
  */
5
- export declare const useActiveColorTheme: () => import("@vue/reactivity").ShallowRef<import("vscode").ColorTheme>;
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("@vue/reactivity").ComputedRef<import("vscode").DebugSession | undefined>;
5
+ export declare const useActiveDebugSession: () => import('@vue/reactivity').ComputedRef<import('vscode').DebugSession | undefined>;
@@ -1,8 +1,9 @@
1
- import type { MaybeRefOrGetter } from '@vue/runtime-core';
2
- import type { DecorationOptions, DecorationRenderOptions, Range } from 'vscode';
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(options: DecorationRenderOptions, rangesOrOptions: MaybeRefOrGetter<readonly Range[] | readonly DecorationOptions[]>): void;
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("@vue/reactivity").ShallowRef<import("vscode").NotebookEditor | undefined>;
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("@vue/reactivity").ShallowRef<import("vscode").Terminal | undefined>;
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("@vue/reactivity").ShallowRef<import("vscode").TextEditor | undefined>;
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("@vue/reactivity").ComputedRef<readonly import("vscode").Extension<any>[]>;
5
+ export declare const useAllExtensions: () => import('@vue/reactivity').ComputedRef<readonly import('vscode').Extension<any>[]>;
@@ -1,4 +1,5 @@
1
- import type { Commands } from '../utils';
1
+ import { Commands } from '../utils';
2
+
2
3
  /**
3
4
  * Register a command. See `vscode::commands.registerCommand`.
4
5
  *
@@ -1,7 +1,8 @@
1
- import type { Commands } from '../utils';
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("vscode").CommentController;
5
+ export declare function useCommentController(id: string, label: string): import('vscode').CommentController;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * @reactive `env.shell`
3
3
  */
4
- export declare const useDefaultShell: () => import("@vue/reactivity").ComputedRef<string>;
4
+ export declare const useDefaultShell: () => import('@vue/reactivity').ComputedRef<string>;
@@ -1,4 +1,5 @@
1
- import type { Disposable } from 'vscode';
1
+ import { Disposable } from 'vscode';
2
+
2
3
  /**
3
4
  * Dispose the disposable when the current scope is disposed. See `vscode::Disposable`.
4
5
  *
@@ -1,7 +1,8 @@
1
- import type { MaybeRefOrGetter } from '@vue/runtime-core';
2
- import type { TextDocument } from 'vscode';
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("@vue/reactivity").ShallowRef<string | undefined>;
8
+ export declare function useDocumentText(doc: MaybeRefOrGetter<TextDocument | undefined>): import('@vue/reactivity').ShallowRef<string | undefined>;
@@ -1,9 +1,10 @@
1
- import type { MaybeRefOrGetter } from '@vue/runtime-core';
2
- import type { DecorationOptions, DecorationRenderOptions, Range, TextEditor } from 'vscode';
3
- import type { Nullable } from '../utils/types';
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(options: DecorationRenderOptions, editor: MaybeRefOrGetter<Nullable<TextEditor>>, rangesOrOptions: MaybeRefOrGetter<readonly Range[] | readonly DecorationOptions[]>): void;
10
+ export declare function useEditorDecorations(editor: MaybeRefOrGetter<Nullable<TextEditor>>, decorationTypeOrOptions: TextEditorDecorationType | DecorationRenderOptions, rangesOrOptions: MaybeRefOrGetter<readonly Range[] | readonly DecorationOptions[]>): void;
@@ -1,4 +1,5 @@
1
- import type { Event } from 'vscode';
1
+ import { Event } from 'vscode';
2
+
2
3
  /**
3
4
  * @category utilities
4
5
  * @reactive `Event`
@@ -4,7 +4,7 @@
4
4
  * @reactive `EventEmitter`
5
5
  */
6
6
  export declare function useEventEmitter<T>(listeners?: ((e: T) => any)[]): {
7
- event: import("vscode").Event<T>;
8
- fire: any;
9
- addListener: import("vscode").Event<T>;
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 type { MaybeRefOrGetter } from '@vue/runtime-core';
2
- import type { TaskFilter } from 'vscode';
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("@vue/reactivity").ComputedRef<Thenable<import("vscode").Task[]>>;
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("@vue/reactivity").ShallowReactive<{
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 type { MaybeRefOrGetter } from '@vue/runtime-core';
2
- import type { DocumentSelector, FoldingRangeProvider } from 'vscode';
1
+ import { DocumentSelector, FoldingRangeProvider } from 'vscode';
2
+ import { MaybeRefOrGetter } from '../reactivity';
3
+
3
4
  /**
4
5
  * @reactive `languages.registerFoldingRangeProvider`
5
6
  */
@@ -3,4 +3,4 @@
3
3
  *
4
4
  * @category window
5
5
  */
6
- export declare const useIsDarkTheme: () => import("@vue/reactivity").ComputedRef<boolean>;
6
+ export declare const useIsDarkTheme: () => import('@vue/reactivity').ComputedRef<boolean>;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * @reactive `env.isTelemetryEnabled`
3
3
  */
4
- export declare const useIsTelemetryEnabled: () => import("@vue/reactivity").ComputedRef<boolean>;
4
+ export declare const useIsTelemetryEnabled: () => import('@vue/reactivity').ComputedRef<boolean>;
@@ -1,4 +1,5 @@
1
- import type { ComputedRef, MaybeRefOrGetter } from '@vue/runtime-core';
1
+ import { ComputedRef, MaybeRefOrGetter } from '../reactivity';
2
+
2
3
  /**
3
4
  * @reactive `l10n.t`
4
5
  */
@@ -2,4 +2,4 @@
2
2
  /**
3
3
  * @reactive `env.logLevel`
4
4
  */
5
- export declare const useLogLevel: () => import("@vue/reactivity").ComputedRef<import("vscode").LogLevel>;
5
+ export declare const useLogLevel: () => import('@vue/reactivity').ComputedRef<import('vscode').LogLevel>;
@@ -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("vscode").OutputChannel;
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: any;
15
- appendLine: any;
16
- replace: any;
17
- clear: any;
18
- show: any;
19
- hide: any;
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 type { NotebookEditor } from 'vscode';
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("@vue/reactivity").WritableComputedRef<import("vscode").NotebookRange>;
7
+ export declare const useNotebookEditorSelection: (notebookEditor: NotebookEditor) => import('@vue/reactivity').WritableComputedRef<import('vscode').NotebookRange>;
@@ -1,6 +1,7 @@
1
- import type { NotebookEditor } from 'vscode';
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("@vue/reactivity").WritableComputedRef<readonly import("vscode").NotebookRange[]>;
7
+ export declare const useNotebookEditorSelections: (notebookEditor: NotebookEditor) => import('@vue/reactivity').WritableComputedRef<readonly import('vscode').NotebookRange[]>;
@@ -1,6 +1,7 @@
1
- import type { NotebookEditor } from 'vscode';
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("@vue/reactivity").ComputedRef<readonly import("vscode").NotebookRange[]>;
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("@vue/reactivity").ShallowRef<readonly import("vscode").Terminal[]>;
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("vscode").OutputChannel;
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("@vue/reactivity").ComputedRef<readonly import("vscode").TaskExecution[]>;
5
+ export declare const useTaskExecutions: () => import('@vue/reactivity').ComputedRef<readonly import('vscode').TaskExecution[]>;
@@ -1,6 +1,7 @@
1
- import type { Terminal } from 'vscode';
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("@vue/reactivity").ComputedRef<import("vscode").TerminalState>;
7
+ export declare const useTerminalState: (terminal: Terminal) => import('@vue/reactivity').ComputedRef<import('vscode').TerminalState>;
@@ -1,4 +1,5 @@
1
- import type { TextEditor, TextEditorEdit } from 'vscode';
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,4 +1,5 @@
1
- import type { TextEditorCommandCallback } from './useTextEditorCommand';
1
+ import { TextEditorCommandCallback } from './useTextEditorCommand';
2
+
2
3
  /**
3
4
  * Register multiple text editor commands. See `vscode::commands.registerTextEditorCommand`.
4
5
  *
@@ -1,6 +1,7 @@
1
- import type { TextEditor } from 'vscode';
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("@vue/reactivity").WritableComputedRef<import("vscode").Selection>;
7
+ export declare const useTextEditorSelection: (textEditor: TextEditor) => import('@vue/reactivity').WritableComputedRef<import('vscode').Selection>;
@@ -1,6 +1,7 @@
1
- import type { TextEditor } from 'vscode';
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("@vue/reactivity").WritableComputedRef<readonly import("vscode").Selection[]>;
7
+ export declare const useTextEditorSelections: (textEditor: TextEditor) => import('@vue/reactivity').WritableComputedRef<readonly import('vscode').Selection[]>;
@@ -1,6 +1,7 @@
1
- import type { TextEditor } from 'vscode';
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("@vue/reactivity").ComputedRef<import("vscode").ViewColumn | undefined>;
7
+ export declare const useTextEditorViewColumn: (textEditor: TextEditor) => import('@vue/reactivity').ComputedRef<import('vscode').ViewColumn | undefined>;
@@ -1,6 +1,7 @@
1
- import type { TextEditor } from 'vscode';
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("@vue/reactivity").ComputedRef<readonly import("vscode").Range[]>;
7
+ export declare const useTextEditorVisibleRanges: (textEditor: TextEditor) => import('@vue/reactivity').ComputedRef<readonly import('vscode').Range[]>;
@@ -1,5 +1,6 @@
1
- import type { MaybeRefOrGetter } from '@vue/runtime-core';
2
- import type { TreeDataProvider, TreeView, TreeViewOptions } from 'vscode';
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 type { MaybeRefOrGetter } from '@vue/runtime-core';
2
- import type { Uri } from 'vscode';
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("@vue/reactivity").ShallowReactive<{
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 type { MaybeRefOrGetter } from '@vue/runtime-core';
2
- import type { TreeView, ViewBadge, WebviewView } from 'vscode';
3
- import type { Nullable } from '../utils/types';
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 type { MaybeRefOrGetter } from '@vue/runtime-core';
2
- import type { TreeView, WebviewView } from 'vscode';
3
- import type { Nullable } from '../utils/types';
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 type { ComputedRef, MaybeRefOrGetter } from '@vue/runtime-core';
2
- import type { TreeView, WebviewView } from 'vscode';
3
- import type { Nullable } from '../utils/types';
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("@vue/reactivity").ShallowRef<readonly import("vscode").NotebookEditor[]>;
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("@vue/reactivity").ShallowRef<readonly import("vscode").TextEditor[]>;
6
+ export declare const useVisibleTextEditors: () => import('@vue/reactivity').ShallowRef<readonly import('vscode').TextEditor[]>;
@@ -1,4 +1,5 @@
1
- import type { ComputedRef, MaybeRefOrGetter, Ref, WritableComputedRef } from '@vue/runtime-core';
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>;