mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Revert IDE client discovery path changes
This commit is contained in:
@@ -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', 'qwen-code-ide-server-12345-123.json'),
|
path.join('/tmp/gemini/ide', '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', 'qwen-code-ide-server-12345-111.json'),
|
path.join('/tmp/gemini/ide', 'qwen-code-ide-server-12345-111.json'),
|
||||||
'utf8',
|
'utf8',
|
||||||
);
|
);
|
||||||
expect(fs.promises.readFile).not.toHaveBeenCalledWith(
|
expect(fs.promises.readFile).not.toHaveBeenCalledWith(
|
||||||
path.join('/tmp', 'not-a-config-file.txt'),
|
path.join('/tmp/gemini/ide', 'not-a-config-file.txt'),
|
||||||
'utf8',
|
'utf8',
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -591,7 +591,7 @@ export class IdeClient {
|
|||||||
// exist.
|
// exist.
|
||||||
}
|
}
|
||||||
|
|
||||||
const portFileDir = os.tmpdir();
|
const portFileDir = path.join(os.tmpdir(), 'gemini', 'ide');
|
||||||
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