diff --git a/core/src/plugins/typescript/statusbar/Versions.tsx b/core/src/plugins/typescript/statusbar/Versions.tsx index 390254e1..b24bda14 100644 --- a/core/src/plugins/typescript/statusbar/Versions.tsx +++ b/core/src/plugins/typescript/statusbar/Versions.tsx @@ -142,8 +142,15 @@ export const Versions: React.ComponentType)) } if ('text' in result) { - // TODO resolve this case - console.log('text', result) + const matchVersion = suggestedVersions.filter(({ id }) => id.includes(result.text)) + matchVersion.length > 0 + ? onChange?.(matchVersion[0]?.value.toString()) + : messenger.then(m => m.display('error', <> +

Invalid TypeScript Version

+

Version {matchVersion[0]?.id} is not available.

+ {/* TODO support help jump */} +

Click it and find help.

+ )) } } catch (e) { console.error(e)