docs: update english documentation and add missing images
This commit is contained in:
@@ -26,6 +26,7 @@ VS Code extensions can do much more than many people expect:
|
||||
* **Add AI capabilities**: create AI assistants with Chat Participant API, call models with Language Model API
|
||||
|
||||
<!--  -->
|
||||

|
||||
|
||||
## 1.2 Core Architecture of a VS Code Extension
|
||||
|
||||
@@ -53,6 +54,7 @@ VS Code editor
|
||||
```
|
||||
|
||||
<!--  -->
|
||||

|
||||
|
||||
## 1.3 What Extension Are We Building?
|
||||
|
||||
@@ -67,6 +69,7 @@ We will build a VS Code extension named **"AI Project Bot"**, an AI project assi
|
||||
| Shortcuts | Custom keybindings to trigger common actions quickly |
|
||||
|
||||
<!--  -->
|
||||

|
||||
|
||||
## 1.4 Tutorial Roadmap
|
||||
|
||||
@@ -145,6 +148,7 @@ ai-project-bot/
|
||||
| `contributes` | All contributed features (commands, menus, keybindings, views, etc.) |
|
||||
|
||||
<!--  -->
|
||||

|
||||
|
||||
## 2.3 Understand extension.ts: The Extension "Brain"
|
||||
|
||||
@@ -185,6 +189,7 @@ Press **F5**, and VS Code opens a new **Extension Development Host** window. Thi
|
||||
In the new window, press **Ctrl+Shift+P**, type "Hello World," and you will see a message popup. This means your extension is running.
|
||||
|
||||
<!--  -->
|
||||

|
||||
|
||||
> **Debug tip**: after code changes, in Extension Development Host press **Ctrl+Shift+P** -> **Developer: Reload Window** to reload extension quickly.
|
||||
|
||||
@@ -268,6 +273,7 @@ This config does three things:
|
||||
3. Adds a "+" button in the view title bar for project creation
|
||||
|
||||
<!--  -->
|
||||

|
||||
|
||||
## 3.3 Implement TreeDataProvider
|
||||
|
||||
@@ -394,6 +400,7 @@ export function activate(context: vscode.ExtensionContext) {
|
||||
Now press F5 for debugging. You will see AI Project Bot in activity bar. Expand template list and click any template to create a project.
|
||||
|
||||
<!--  -->
|
||||

|
||||
|
||||
# Chapter 4: Implement AI Chat Participant (5 Minutes)
|
||||
|
||||
@@ -531,6 +538,7 @@ export function activate(context: vscode.ExtensionContext) {
|
||||
Now input `@project-bot /explain what does this code do?` in Chat panel, and your extension will call model and generate explanation.
|
||||
|
||||
<!--  -->
|
||||

|
||||
|
||||
# Chapter 5: File/Snippet Chat and Multi-file Q&A (5 Minutes)
|
||||
|
||||
@@ -632,6 +640,7 @@ export function registerSelectionCommands(context: vscode.ExtensionContext) {
|
||||
```
|
||||
|
||||
<!--  -->
|
||||

|
||||
|
||||
## 5.3 Multi-file Q&A: Batch Analyze File Relationships
|
||||
|
||||
@@ -729,6 +738,7 @@ export function registerMultiFileCommands(context: vscode.ExtensionContext) {
|
||||
Usage: in explorer, hold `Ctrl` (`Cmd` on Mac) to multi-select files, right-click and choose "AI: Analyze Relationships of Selected Files." AI reads all selected files and returns analysis.
|
||||
|
||||
<!--  -->
|
||||

|
||||
|
||||
# Chapter 6: Shortcuts and UX Optimization (3 Minutes)
|
||||
|
||||
@@ -799,6 +809,7 @@ export function createStatusBarItem(context: vscode.ExtensionContext) {
|
||||
`$(hubot)` is VS Code built-in icon syntax. You can find all icons in [Codicon library](https://microsoft.github.io/vscode-codicons/dist/codicon.html).
|
||||
|
||||
<!--  -->
|
||||

|
||||
|
||||
# Chapter 7: Publish to Marketplace (Optional)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user