Skip to content

Commit

Permalink
#448 Removed code to always create a resource viewer, since one can b…
Browse files Browse the repository at this point in the history
…e opened as desired via the menu.

Removed redundant logger.info line
  • Loading branch information
tombogle committed Oct 31, 2023
1 parent ef784e7 commit 03d95fb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions extensions/src/resource-viewer/resource-viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,6 @@ export async function activate(context: ExecutionActivationContext): Promise<voi
resourceWebViewProvider,
);

// Create a webview or get an existing webview if one already exists for this type
// Note: here, we are using `existingId: '?'` to indicate we do not want to create a new webview
// if one already exists. The webview that already exists could have been created by anyone
// anywhere; it just has to match `webViewType`.
papi.webViews.getWebView(resourceWebViewType, undefined, { existingId: '?' });

// Await the registration promises at the end so we don't hold everything else up
context.registrations.add(await resourceWebViewProviderPromise, await openResourceViewerPromise);

Expand Down
2 changes: 0 additions & 2 deletions extensions/src/resource-viewer/resource-viewer.web-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,6 @@ function ScriptureTextPanelUsxEditor({ usx, onChanged }: ScriptureTextPanelUsxPr
globalThis.webViewComponent = function ResourceViewer({
useWebViewState,
}: WebViewProps): JSX.Element {
logger.info('Preparing to display the Resource Viewer');

const [projectId] = useWebViewState<string>('projectId', '');

logger.info(`Resource Viewer project ID: ${projectId}`);
Expand Down

0 comments on commit 03d95fb

Please sign in to comment.