diff --git a/src/lsptoolshost/dotnetRuntimeExtensionResolver.ts b/src/lsptoolshost/dotnetRuntimeExtensionResolver.ts index 174e72bc5..76a2b5b9c 100644 --- a/src/lsptoolshost/dotnetRuntimeExtensionResolver.ts +++ b/src/lsptoolshost/dotnetRuntimeExtensionResolver.ts @@ -153,7 +153,7 @@ export class DotnetRuntimeExtensionResolver implements IHostExecutableResolver { const contents = await readFile(vsixManifestFile, 'utf-8'); const targetPlatformMatch = /TargetPlatform="(.*)"/.exec(contents); if (!targetPlatformMatch) { - throw new Error(`Could not find extension target platform in ${vsixManifestFile}`); + return undefined; } const targetPlatform = targetPlatformMatch[1];