mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
Use excludive selectors for search editor contributions to fix #91453.
cc @jrieken
This commit is contained in:
parent
fca7107884
commit
339681f631
2 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
"displayName": "%displayName%",
|
"displayName": "%displayName%",
|
||||||
"description": "%description%",
|
"description": "%description%",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
|
"enableProposedApi": true,
|
||||||
"publisher": "vscode",
|
"publisher": "vscode",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
|
@ -8,7 +8,7 @@ import * as pathUtils from 'path';
|
||||||
|
|
||||||
const FILE_LINE_REGEX = /^(\S.*):$/;
|
const FILE_LINE_REGEX = /^(\S.*):$/;
|
||||||
const RESULT_LINE_REGEX = /^(\s+)(\d+)(:| )(\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 DIRECTIVES = ['# Query:', '# Flags:', '# Including:', '# Excluding:', '# ContextLines:'];
|
||||||
const FLAGS = ['RegExp', 'CaseSensitive', 'IgnoreExcludeSettings', 'WordMatch'];
|
const FLAGS = ['RegExp', 'CaseSensitive', 'IgnoreExcludeSettings', 'WordMatch'];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue