From 339681f6311437daa4bb20c10191ba568deadd4f Mon Sep 17 00:00:00 2001 From: Jackson Kearl Date: Fri, 6 Nov 2020 11:23:39 -0800 Subject: [PATCH] Use excludive selectors for search editor contributions to fix #91453. cc @jrieken --- extensions/search-result/package.json | 1 + extensions/search-result/src/extension.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/search-result/package.json b/extensions/search-result/package.json index 7b43da243cf..9635a6c51df 100644 --- a/extensions/search-result/package.json +++ b/extensions/search-result/package.json @@ -3,6 +3,7 @@ "displayName": "%displayName%", "description": "%description%", "version": "1.0.0", + "enableProposedApi": true, "publisher": "vscode", "license": "MIT", "engines": { diff --git a/extensions/search-result/src/extension.ts b/extensions/search-result/src/extension.ts index 0c0c9b85f5f..ba6f3cf7b82 100644 --- a/extensions/search-result/src/extension.ts +++ b/extensions/search-result/src/extension.ts @@ -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'];