Skip to content

Commit 0e296f3

Browse files
committed
Update document symbol regex to support optional line numbers and bump editor version to 1.807.0
1 parent 25d4c66 commit 0e296f3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/editor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "gemini-coder",
33
"displayName": "Code Web Chat",
44
"description": "AI coding in free chatbots (CWC)",
5-
"version": "1.806.0",
5+
"version": "1.807.0",
66
"scripts": {
77
"build": "npx vsce package --no-dependencies",
88
"vscode:prepublish": "rimraf out && npm run compile",

apps/editor/src/views/panel/backend/utils/replace-document-symbol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as fs from 'fs'
55
export const replace_document_symbol = async (params: {
66
instruction: string
77
}): Promise<string> => {
8-
const regex = /#Document\(([a-fA-F0-9]+)\)/g
8+
const regex = /#Document\(([a-fA-F0-9]+)(?::\d+)?\)/g
99

1010
const matches = Array.from(params.instruction.matchAll(regex))
1111

0 commit comments

Comments
 (0)