Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Nisar Hassan Naqvi <[email protected]>
  • Loading branch information
nisarhassan12 committed May 26, 2020
1 parent ca6b505 commit b1616c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/editor-preview/src/browser/editor-preview-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ export class EditorPreviewManager extends WidgetOpenHandler<EditorPreviewWidget
protected init(): void {
super.init();
this.onCreated(widget => {
alert('Widget Created');
if (widget instanceof EditorPreviewWidget) {
alert('Preview Widget Created');
return this.handlePreviewWidgetCreated(widget);
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ export class SearchInWorkspaceResultTreeWidget extends TreeWidget {
} else {
fileUri = new URI(node.fileUri);
}

alert(preview);
const opts: EditorOpenerOptions | undefined = !DiffUris.isDiffUri(fileUri) ? {
selection: {
start: {
Expand All @@ -702,7 +702,8 @@ export class SearchInWorkspaceResultTreeWidget extends TreeWidget {
character: node.character - 1 + node.length
}
},
mode: 'reveal'
mode: 'reveal',
preview,
} : undefined;

const editorWidget = await this.editorManager.open(fileUri, opts);
Expand Down

0 comments on commit b1616c2

Please sign in to comment.