Skip to content

Commit

Permalink
search-in-workspace: add noselect to line result nodes
Browse files Browse the repository at this point in the history
The commit adds `noselect` to the line result nodes so thier inner text
is not selectable, aligning with the rest of the framework and vscode.
  • Loading branch information
Archie27376 authored and alvsan09 committed Nov 2, 2021
1 parent e91bea4 commit f09fc1a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ export class SearchInWorkspaceResultTreeWidget extends TreeWidget {
after = node.lineText.text.substr(node.lineText.character + node.length);
title = node.lineText.text.trim();
}
return <div className={`resultLine noWrapInfo ${node.selected ? 'selected' : ''}`} title={title}>
return <div className={`resultLine noWrapInfo noselect ${node.selected ? 'selected' : ''}`} title={title}>
{this.searchInWorkspacePreferences['search.lineNumbers'] && <span className='theia-siw-lineNumber'>{node.line}</span>}
<span>
{before}
Expand Down

0 comments on commit f09fc1a

Please sign in to comment.