Skip to content

Commit

Permalink
Use excludive selectors for search editor contributions to fix #91453.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Kearl committed Nov 6, 2020
1 parent fca7107 commit 339681f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions extensions/search-result/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"displayName": "%displayName%",
"description": "%description%",
"version": "1.0.0",
"enableProposedApi": true,
"publisher": "vscode",
"license": "MIT",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion extensions/search-result/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as pathUtils from 'path';

const FILE_LINE_REGEX = /^(\S.*):$/;
const RESULT_LINE_REGEX = /^(\s+)(\d+)(:| )(\s+)(.*)$/;
const SEARCH_RESULT_SELECTOR = { language: 'search-result' };
const SEARCH_RESULT_SELECTOR = { language: 'search-result', exclusive: true };
const DIRECTIVES = ['# Query:', '# Flags:', '# Including:', '# Excluding:', '# ContextLines:'];
const FLAGS = ['RegExp', 'CaseSensitive', 'IgnoreExcludeSettings', 'WordMatch'];

Expand Down

0 comments on commit 339681f

Please sign in to comment.