Skip to content

函数 ​

分类
排序方式
过滤条件

chat

commands

useCommand-对 commands.registerCommand 的响应式 API。
useCommands-对 commands.registerCommand 的响应式 API。

debug

document

useDocumentText-对 TextDocument.getText 的响应式 API。

editor

useEditorDecorations-响应式地设置给定编辑器上的装饰。 @see {@linkcode TextEditor.setDecorations}

env

useEnvShell-对 env.shell 的响应式 API。
useLogLevel-对 env.logLevel 的响应式 API。

extension

useAllExtensions-对 extensions.all 的响应式 API。
useExtensionSecret-从扩展的机密存储中获取一个响应式的机密值。 - null indicates that the value has not been loaded yet. - undefined indicates that there is no value stored for the given key.

l10n

useL10nText-对 l10n.t 的响应式 API。

lifecycle

useDisposable-当当前作用域被释放时,释放传入的可释放对象。 @see {@linkcode Disposable}
useVscodeContext-响应式地设置一个 VS Code 上下文。参见 自定义 when 子句上下文。
defineConfig-Define configurations of an extension. @see {@linkcode workspace.getConfiguration}
defineService-定义一个只应被实例化一次的服务。

lm

useLmTools-对 lm.tools 的响应式 API。

tasks

useTaskExecutions-对 tasks.taskExecutions 的响应式 API。

terminal

useOpenedTerminals-对 window.terminals 的响应式 API。
useTerminal-对 window.createTerminal 的响应式 API。
useTerminalState-对 Terminal.state 的响应式 API。

utilities

useEvent-对 Event 的响应式 API。
useEventEmitter-对 EventEmitter 的响应式 API。

view

useTreeView-对 window.createTreeView 的响应式 API。
defineLogger-定义一个在激活前即可使用的记录器。 @see {@linkcode window.createOutputChannel}

window

useInputBox-对 window.createInputBox 的响应式 API。
useIsDarkTheme-判断当前颜色主题是否为深色主题。 @see {@linkcode ColorTheme.kind}
useQuickPick-创建一个可自定义的快速选择 UI。
useWindowActive-对 window.state.active 的响应式 API。
useWindowFocused-对 window.state.focused 的响应式 API。
useWindowState-对 window.state 的响应式 API。

workspace