HBuilderX API根对象可以通过require(‘hbuilderx’)引入。
const hx = require('hbuilderx')
以下列出目前可用的API列表
- commands
- languages
- window
- workspace
- env
- Clipboard
- ConfigurationChangeEvent
- WorkspaceFoldersChangeEvent
- TextDocumentWillSaveEvent
- TextDocumentChangeEvent
- TextEditor
- TextDocument
- TextLine
- Range
- OutputChannel
- Configuration
- DiagnosticCollection
- DiagnosticItem
- WorkspaceEdit
- TextEdit
- WorkspaceFolder
- InputBoxOptions
- QuickPickOptions
- QuickPickItem
- TreeViewOptions
- WebViewOptions
- WebViewPanel
- WebView
- TreeDataProvider
- TreeItem
- CommandInfo
- Disposable
- UriHandler
- Uri