VSCE: fix release script
Created by: taras-yemets
The latest VSCE release failed with error.
The error was caused by the release script trying to parse as JSON the yarn vsce show sourcegraph.sourcegraph --json
which appeared to be not a valid JSON string. The output is prepended by the command name and arguments; thus, it couldn't be parsed as JSON, causing failure.
Example output:
$ /Users/taras/projects/sourcegraph/node_modules/.bin/vsce show sourcegraph.sourcegraph --json
{
"extensionName": "sourcegraph",
...other
}
Suggested fix: trim everything before the JSON string.
Test plan
VSCE release script runs successfully.