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