Skip to content

Commit

Permalink
v1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
thegecko committed Feb 23, 2023
1 parent ac79c32 commit d4bd22a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "svd-viewer",
"displayName": "SVD Viewer",
"description": "Standalone SVD Viewer extension extracted from cortex-debug",
"version": "1.2.0",
"version": "1.2.1",
"preview": true,
"publisher": "cortex-debug",
"author": "Rob Moran <github@thegecko.org>",
Expand Down
10 changes: 7 additions & 3 deletions src/debug-tracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,13 @@ export class DebugTracker {
}

private async getTracker(): Promise<IDebugTracker | undefined> {
const trackerExtension = vscode.extensions.getExtension<IDebugTracker>(DEBUG_TRACKER_EXTENSION);
if (trackerExtension) {
return trackerExtension.activate();
try {
const trackerExtension = vscode.extensions.getExtension<IDebugTracker>(DEBUG_TRACKER_EXTENSION);
if (trackerExtension) {
return trackerExtension.activate();
}
} catch(_e) {
// Ignore error
}

return undefined;
Expand Down

0 comments on commit d4bd22a

Please sign in to comment.