Skip to content createExtension
registerCommand
- Registration instructions
registerCommands
- Registration instructions
executeCommand
executeCommands
getConfiguration
- get workspace configuration
messag
- {type:‘info’|‘error’,message:string
,buttons:[‘ok’]}: Pop up message
openFile
addEventListener
- Listen to file switching, terminal, content change, add, delete and other events in vscode
addEventListeners
- Listen to file switching, terminal, content change, add, delete and other events in vscode
createTerminal
- Quickly create a terminal
createCompletionItem
- Generate the prompt content of registerCompletionItemProvider
registerCompletionItemProvider
- Generate the corresponding prompt according to the input
isDark
- Determine whether the current vscode theme is dark
getSelection
- Get the information of the line where the current mouse is located
getActiveTextEditorLanguageId
- Get a type of the current file javascriptreact | typescriptreact | vue, etc.
createProgress
- Create an execution progress bar in vscode
registerInlayHintsProvider
- Give a hint similar to copilot.
getCopyText
- Read the pasteboard Content.
setCopyText
- Plug the content into the pasteboard.
updateText
jumpToLine
- Open a file and jump to a certain line
createBottomBar
- Create the bottom bar button
nextTick
- Create the bottom bar button
createSquare
watchFiles
- Monitor changes in file content and deletion
createEvents
- Tools for subscribing to event communication
getActiveText
- Get the text content of the current activation tab
fold
unFold
registerDefinitionProvider
- It provides option + click to achieve the function of fast jump.
registerHoverProvider
- Provide a callback for mouse hover
registerCodeActionsProvide
- Registered Code Action Provider
openExternalUrl
- Open the external url in the browser
getLineText
- Get the text of a certain line
useTheme
- Theme Configuration and Operatation
isInPosition
- Determine whether one area is a sub-area of another
getCurrentFileUrl
- Get the path of the current activation file
getLocale
- Get the local language environment
rename
createDefinitionLocation
- Create jump address data after left-clicking after pressing option
setStyle
- Add style to a certain area
createStyle
getActiveTextEdito
- Get the currently activated editor
getKeyWord
- Get the keywords at the position
setCommandParam
- Set the click command parameter of MarkdownString
getOffsetFromPosition
- Get the offset from position
getRootPat
- Get the root directory path of the project
registerCodeLensProvide
- Register the text button at the head of the text and tie the event.
createCodeLen
- Quickly create items in provideCodeLenses
saveFil
createStyleAnimaion
createStyleAnimation
- Add style animation group
getWordRangeAtPosition
- Get the area of keywords for your location