Skip to content

Commit 84cffdb

Browse files
committed
tab: Add info deletion demo
1 parent f3ed308 commit 84cffdb

File tree

5 files changed

+40
-0
lines changed

5 files changed

+40
-0
lines changed

.github/workflows/pages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
uses: actions/upload-pages-artifact@v3
3232
with:
3333
path: '.'
34+
retention-days: 1
3435

3536
- name: Deploy to GitHub Pages
3637
id: deployment

demos/delete-info-suffix/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Delete Info Suffix
2+
3+
## Tags
4+
- deletion
5+
- refactoring
6+
7+
## Demo Videos
8+
9+
### Amp Tab
10+
![Amp Tab Demo](amp_tab.mp4)
11+
12+
### Cursor Tab
13+
![Cursor Tab Demo](cursor_tab.mp4)
14+
15+
## How to Reproduce
16+
17+
1. Go to https://github.com/sourcegraph/cody
18+
2. Checkout to commit `3d51966e8b98972e0ae76b3077a581d34b3d129f`
19+
3. Navigate to `vscode/src/autoedits/renderer/decorators/base.ts`
20+
4. Follow the steps from the video
21+
22+
## Description
23+
24+
This demo demonstrates AI-assisted refactoring by deleting the "Info" suffix from TypeScript identifiers. It showcases how Amp Tab handles systematic renaming and refactoring operations across related code elements, maintaining consistency and correctness throughout the codebase.
2.37 MB
Binary file not shown.
1.74 MB
Binary file not shown.

index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,21 @@ <h1 class="text-3xl font-bold">Amp Tab Demos</h1>
105105
"amp": "demos/auto-import-typescript/amp_tab.mp4",
106106
"cursor": "demos/auto-import-typescript/cursor_tab.mp4"
107107
}
108+
},
109+
{
110+
"id": "delete-info-suffix",
111+
"title": "Delete Info Suffix",
112+
"description": "Demonstrates AI-assisted refactoring by deleting the \"Info\" suffix from TypeScript identifiers. Shows systematic renaming and refactoring operations across related code elements.",
113+
"tags": ["deletion", "refactoring"],
114+
"videos": {
115+
"amp": "demos/delete-info-suffix/amp_tab.mp4",
116+
"cursor": "demos/delete-info-suffix/cursor_tab.mp4"
117+
},
118+
"reproduction": {
119+
"repo": "https://github.com/sourcegraph/cody",
120+
"commit": "3d51966e8b98972e0ae76b3077a581d34b3d129f",
121+
"file": "vscode/src/autoedits/renderer/decorators/base.ts"
122+
}
108123
}
109124
]
110125
};

0 commit comments

Comments
 (0)