一键导入
create-vscode-extension
// Scaffold a new VS Code extension project with GitHub repository. Use when the user wants to create a VS Code extension, start a new extension project, or set up a vscode extension.
// Scaffold a new VS Code extension project with GitHub repository. Use when the user wants to create a VS Code extension, start a new extension project, or set up a vscode extension.
Generate a daily summary of Mark's action items from Granola meeting notes in the last 24h (or since Friday on Mondays) and post to Slack via webhook. Use when Mark types /granola-summary or when the weekday 9am launchd cron fires.
Commit all current changes
Create GitHub pull requests using the gh CLI. Use when the user asks to create a PR, open a pull request, or submit changes for review.
| name | create-vscode-extension |
| description | Scaffold a new VS Code extension project with GitHub repository. Use when the user wants to create a VS Code extension, start a new extension project, or set up a vscode extension. |
Scaffold a complete VS Code extension using https://github.com/mskelton/vscode-notify as a template.
vscode-{title})Fetch Reference Files from https://github.com/mskelton/vscode-notify:
.github/workflows/build.yml.gitignore.prettierignore.prettierrceslint.config.mjspackage.jsontsconfig.jsonCreate Project Directory: vscode-{title}
Create Files:
package.json with new title, description, and repository URLREADME.md and src/extension.ts from templates belowInitialize Git and GitHub:
git init
git add .
git commit -m "Initial commit"
gh auth switch -u mskelton
gh repo create vscode-{title} --description "{description}" --public --source . --remote origin --push
import * as vscode from "vscode"
export function activate(context: vscode.ExtensionContext) {
console.log('Congratulations, your extension "{title}" is now active!')
const disposable = vscode.commands.registerCommand(
"{title}.helloWorld",
() => {
vscode.window.showInformationMessage("Hello World from {title}!")
},
)
context.subscriptions.push(disposable)
}
export function deactivate() {
console.log('Your extension "{title}" is now deactivated!')
}
# {title}
{description}
## Features
Describe specific features of your extension including screenshots.
## Extension Settings
This extension contributes the following settings:
- `{title}.thing`: Set to `blah` to do something
After creation, provide:
cd, npm install, code ., ext-pubnpm run package, npm run watch, npm run lint