mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
Rrename Gemini references to Qwen and fix IDE connection path
This commit is contained in:
@@ -28,7 +28,7 @@ async function restoreAction(
|
|||||||
return {
|
return {
|
||||||
type: 'message',
|
type: 'message',
|
||||||
messageType: 'error',
|
messageType: 'error',
|
||||||
content: 'Could not determine the .gemini directory path.',
|
content: 'Could not determine the .qwen directory path.',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ export function PermissionsModifyTrustDialog({
|
|||||||
{needsRestart && (
|
{needsRestart && (
|
||||||
<Box marginLeft={1} marginTop={1}>
|
<Box marginLeft={1} marginTop={1}>
|
||||||
<Text color={theme.status.warning}>
|
<Text color={theme.status.warning}>
|
||||||
To apply the trust changes, Gemini CLI must be restarted. Press
|
To apply the trust changes, Qwen Code must be restarted. Press
|
||||||
'r' to restart CLI now.
|
'r' to restart CLI now.
|
||||||
</Text>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -324,7 +324,7 @@ describe('IdeClient', () => {
|
|||||||
|
|
||||||
expect(result).toEqual(config);
|
expect(result).toEqual(config);
|
||||||
expect(fs.promises.readFile).toHaveBeenCalledWith(
|
expect(fs.promises.readFile).toHaveBeenCalledWith(
|
||||||
path.join('/tmp/gemini/ide', 'qwen-code-ide-server-12345-123.json'),
|
path.join('/tmp', 'qwen-code-ide-server-12345-123.json'),
|
||||||
'utf8',
|
'utf8',
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
@@ -518,11 +518,11 @@ describe('IdeClient', () => {
|
|||||||
|
|
||||||
expect(result).toEqual(validConfig);
|
expect(result).toEqual(validConfig);
|
||||||
expect(fs.promises.readFile).toHaveBeenCalledWith(
|
expect(fs.promises.readFile).toHaveBeenCalledWith(
|
||||||
path.join('/tmp/gemini/ide', 'qwen-code-ide-server-12345-111.json'),
|
path.join('/tmp', 'qwen-code-ide-server-12345-111.json'),
|
||||||
'utf8',
|
'utf8',
|
||||||
);
|
);
|
||||||
expect(fs.promises.readFile).not.toHaveBeenCalledWith(
|
expect(fs.promises.readFile).not.toHaveBeenCalledWith(
|
||||||
path.join('/tmp/gemini/ide', 'not-a-config-file.txt'),
|
path.join('/tmp', 'not-a-config-file.txt'),
|
||||||
'utf8',
|
'utf8',
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -591,7 +591,7 @@ export class IdeClient {
|
|||||||
// exist.
|
// exist.
|
||||||
}
|
}
|
||||||
|
|
||||||
const portFileDir = path.join(os.tmpdir(), 'gemini', 'ide');
|
const portFileDir = os.tmpdir();
|
||||||
let portFiles;
|
let portFiles;
|
||||||
try {
|
try {
|
||||||
portFiles = await fs.promises.readdir(portFileDir);
|
portFiles = await fs.promises.readdir(portFileDir);
|
||||||
|
|||||||
Reference in New Issue
Block a user