Skip to content

Commit 91e15d8

Browse files
committed
Refactor checkpoint management to use for relative time display and implement temporary checkpoints for safe workspace restoration and reversion
1 parent 90d5d2f commit 91e15d8

7 files changed

Lines changed: 263 additions & 76 deletions

File tree

‎packages/vscode/src/commands/apply-chat-response-command/utils/clipboard-parser/clipboard-parser.spec.ts‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,23 @@ describe('clipboard-parser', () => {
148148
)
149149
})
150150

151+
it('should parse html comment with leading slash in path', () => {
152+
const text = load_test_case_file(
153+
'html-comment-leading-slash',
154+
'html-comment-leading-slash.txt'
155+
)
156+
const result = parse_multiple_files({
157+
response: text,
158+
is_single_root_folder_workspace: true
159+
})
160+
161+
expect(result).toHaveLength(1)
162+
expect(result[0].file_path).toBe('src/index.js')
163+
expect(result[0].content).toBe(
164+
load_test_case_file('html-comment-leading-slash', 'file-1.txt')
165+
)
166+
})
167+
151168
it('should handle workspace prefixes', () => {
152169
const text = load_test_case_file(
153170
'with-workspace-prefix',
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export default {
2+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Lorem ipsum
2+
3+
<!--/src/index.js-->
4+
```javascript
5+
export default {
6+
}
7+
```

0 commit comments

Comments
 (0)