fix windows escaping (and broken tests) (#19011)

This commit is contained in:
Tommaso Sciortino
2026-02-13 14:19:08 -08:00
committed by GitHub
parent c7237f0c79
commit e7e4c68c5c
4 changed files with 16 additions and 14 deletions

View File

@@ -13,6 +13,7 @@ import type { Config, FileSearch } from '@google/gemini-cli-core';
import {
FileSearchFactory,
FileDiscoveryService,
escapePath,
} from '@google/gemini-cli-core';
import type { FileSystemStructure } from '@google/gemini-cli-test-utils';
import { createTmpDir, cleanupTmpDir } from '@google/gemini-cli-test-utils';
@@ -90,7 +91,7 @@ describe('useAtCompletion', () => {
'src/',
'src/components/',
'file.txt',
'src/components/Button\\ with\\ spaces.tsx',
`${escapePath('src/components/Button with spaces.tsx')}`,
'src/components/Button.tsx',
'src/index.js',
]);