Skip to content

Commit 3cfdc68

Browse files
committed
fix: don't throw error, if TargetPlatform not found inside manifest
1 parent 2dea855 commit 3cfdc68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lsptoolshost/dotnetRuntimeExtensionResolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export class DotnetRuntimeExtensionResolver implements IHostExecutableResolver {
153153
const contents = await readFile(vsixManifestFile, 'utf-8');
154154
const targetPlatformMatch = /TargetPlatform="(.*)"/.exec(contents);
155155
if (!targetPlatformMatch) {
156-
throw new Error(`Could not find extension target platform in ${vsixManifestFile}`);
156+
return undefined;
157157
}
158158

159159
const targetPlatform = targetPlatformMatch[1];

0 commit comments

Comments
 (0)