mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-01 21:20:44 +00:00
fix config test
This commit is contained in:
parent
b0c3e5d884
commit
2e80f7ffbc
3 changed files with 6 additions and 1 deletions
|
|
@ -29,6 +29,10 @@ export async function handleLink(args: InstallArgs) {
|
|||
installMetadata,
|
||||
requestConsentOrFail.bind(null, requestConsentNonInteractive),
|
||||
);
|
||||
if (!extension) {
|
||||
console.log('Link extension failed to install.');
|
||||
return;
|
||||
}
|
||||
console.log(
|
||||
`Extension "${extension.name}" linked successfully and enabled.`,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ export async function handleList() {
|
|||
const extensionManager = await getExtensionManager();
|
||||
const extensions = extensionManager.getLoadedExtensions();
|
||||
|
||||
if (extensions.length === 0) {
|
||||
if (!extensions || extensions.length === 0) {
|
||||
console.log('No extensions installed.');
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -208,6 +208,7 @@ describe('Server Config (config.ts)', () => {
|
|||
telemetry: TELEMETRY_SETTINGS,
|
||||
model: MODEL,
|
||||
usageStatisticsEnabled: false,
|
||||
overrideExtensions: [],
|
||||
};
|
||||
|
||||
beforeEach(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue