Skip to content

Commit

Permalink
Fix #115633
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Kearl committed Feb 2, 2021
1 parent 04e6c86 commit 501274f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ export const openNewSearchEditor =

const args: OpenSearchEditorArgs = { query: selected || undefined };
Object.entries(_args).forEach(([name, value]) => {
(args as any)[name as any] = (typeof value === 'string') ? configurationResolverService.resolve(lastActiveWorkspaceRoot, value) : value;
if (value !== undefined) {
(args as any)[name as any] = (typeof value === 'string') ? configurationResolverService.resolve(lastActiveWorkspaceRoot, value) : value;
}
});
const existing = editorService.getEditors(EditorsOrder.MOST_RECENTLY_ACTIVE).find(id => id.editor.getTypeId() === SearchEditorInput.ID);
let editor: SearchEditor;
Expand Down

0 comments on commit 501274f

Please sign in to comment.