Saber2pr's Blog

VscodePlugInPathDependent

1. Plug-in path context.extensionPath

Used to get the basePath of assets

two。 Currently open file path (workspace path)

Vscode.workspace.workspaceFolders (maybe the editor opens more than one folder at the same time)

(the original vscode.workspace.rootPath is obsolete)