mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
chore: make Windows paths better
This commit is contained in:
committed by
Keith Guerin
parent
450cb19ee9
commit
8d112f55b3
@@ -17,6 +17,7 @@ import { vi } from 'vitest';
|
|||||||
import stripAnsi from 'strip-ansi';
|
import stripAnsi from 'strip-ansi';
|
||||||
import { act, useState } from 'react';
|
import { act, useState } from 'react';
|
||||||
import os from 'node:os';
|
import os from 'node:os';
|
||||||
|
import path from 'node:path';
|
||||||
import { LoadedSettings } from '../config/settings.js';
|
import { LoadedSettings } from '../config/settings.js';
|
||||||
import { KeypressProvider } from '../ui/contexts/KeypressContext.js';
|
import { KeypressProvider } from '../ui/contexts/KeypressContext.js';
|
||||||
import { SettingsContext } from '../ui/contexts/SettingsContext.js';
|
import { SettingsContext } from '../ui/contexts/SettingsContext.js';
|
||||||
@@ -502,7 +503,22 @@ const configProxy = new Proxy({} as Config, {
|
|||||||
get(_target, prop) {
|
get(_target, prop) {
|
||||||
if (prop === 'getTargetDir') {
|
if (prop === 'getTargetDir') {
|
||||||
return () =>
|
return () =>
|
||||||
'/Users/test/project/foo/bar/and/some/more/directories/to/make/it/long';
|
path.join(
|
||||||
|
path.parse(process.cwd()).root,
|
||||||
|
'Users',
|
||||||
|
'test',
|
||||||
|
'project',
|
||||||
|
'foo',
|
||||||
|
'bar',
|
||||||
|
'and',
|
||||||
|
'some',
|
||||||
|
'more',
|
||||||
|
'directories',
|
||||||
|
'to',
|
||||||
|
'make',
|
||||||
|
'it',
|
||||||
|
'long',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (prop === 'getUseBackgroundColor') {
|
if (prop === 'getUseBackgroundColor') {
|
||||||
return () => true;
|
return () => true;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user