Jul 1, 2024
VS Code Documentation: Utilize the extensive documentation available for creating extensions.
Install Required Libraries: Use the following command to install necessary libraries:
npm install -g yo generator-code
Run Yeoman Generator:
yo code
Setup Prompts:
wds-search-blog-example)Generated Code: The generator will create several files.
.eslint, .gitignore, vscodeignoreextension.jspackage.json, README, CHANGELOG, etc.f5 (Debug)
ctrl + shift + p
Hello World
Hello World from wds-search-blog-examplevscode.commands.registerCommandpackage.json for new commands
"commands": [
{
"command": "wds-search-blog-example.helloworld",
"title": "Hello World"
}
]
search wds blog example and update the activationEventsInstall Axios: For HTTP requests
npm install axios
Fetch RSS Data
axios.get(url)fast-xml-parserStore Blogs: Fetch and store on activation to avoid repeated requests
vscode.window.showQuickPick to display a searchable listlabel and detailvscode.env.openExternal(url)VSCE Tool: Install publishing tool
npm install -g vsce
Create Publisher Account: Use Azure DevOps
Update Package Metadata: Ensure publisher field in package.json
Login: With VSCE and personal access token
vsce login [publisher-name]
Publish: Execute publish command
vsce publish