Rrename Gemini references to Qwen and fix IDE connection path

This commit is contained in:
Alexander Farber
2025-12-10 13:13:56 +01:00
parent 68295d0bbf
commit 6d3cf4cd98
4 changed files with 6 additions and 6 deletions

View File

@@ -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.',
}; };
} }

View File

@@ -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
&apos;r&apos; to restart CLI now. &apos;r&apos; to restart CLI now.
</Text> </Text>
</Box> </Box>

View File

@@ -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',
); );
}); });

View File

@@ -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);