Skip to content

Commit 8e22123

Browse files
committed
Bump editor version to 1.878.0 and fix gitignore path normalization for Windows
- when loading .gitignore files, account for windows style of paths
1 parent 6c0cb3b commit 8e22123

2 files changed

Lines changed: 4 additions & 5 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": "Fast and safe way to code with AI (CWC)",
5-
"version": "1.877.0",
5+
"version": "1.878.0",
66
"scripts": {
77
"build": "npx vsce package --no-dependencies",
88
"vscode:prepublish": "rimraf out && npm run compile",

apps/editor/src/context/providers/workspace/workspace-provider.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1560,10 +1560,9 @@ export class WorkspaceProvider
15601560
const workspace_root = this.get_workspace_root_for_file(gitignore_path)
15611561
if (!workspace_root) continue
15621562

1563-
const relative_gitignore_path = path.relative(
1564-
workspace_root,
1565-
path.dirname(gitignore_path)
1566-
)
1563+
const relative_gitignore_path = path
1564+
.relative(workspace_root, path.dirname(gitignore_path))
1565+
.replace(/\\/g, '/')
15671566

15681567
try {
15691568
const gitignore_content = fs.readFileSync(gitignore_path, 'utf-8')

0 commit comments

Comments
 (0)