@codingame/monaco-vscode-search-service-override 1.85.0 → 1.85.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +2 -2
  3. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +2 -2
  4. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +3 -3
  5. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsRemoveReplace.js +2 -2
  6. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsSymbol.js +1 -1
  7. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +2 -2
  8. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +2 -2
  9. package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +1 -1
  10. package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +1 -1
  11. package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +3 -3
  12. package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +5 -5
  13. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +3 -3
  14. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +2 -2
  15. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +1 -1
  16. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +1 -1
  17. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorModel.js +1 -1
  18. package/override/vs/workbench/contrib/notebook/browser/notebookEditor.js +0 -3
  19. package/override/vs/workbench/contrib/notebook/common/notebookEditorInput.js +0 -3
  20. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +0 -72
  21. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css.js +0 -6
  22. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +0 -184
  23. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +0 -51
  24. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +0 -389
  25. package/vscode/src/vs/workbench/contrib/search/common/constants.js +0 -68
  26. package/vscode/src/vs/workbench/contrib/searchEditor/browser/constants.js +0 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-search-service-override",
3
- "version": "1.85.0",
3
+ "version": "1.85.1",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -18,7 +18,7 @@
18
18
  "module": "index.js",
19
19
  "types": "index.d.ts",
20
20
  "dependencies": {
21
- "vscode": "npm:@codingame/monaco-vscode-api@1.85.0",
21
+ "vscode": "npm:@codingame/monaco-vscode-api@1.85.1",
22
22
  "monaco-editor": "0.45.0"
23
23
  }
24
24
  }
@@ -25,9 +25,9 @@ import { Extensions as Extensions$4 } from 'vscode/vscode/vs/workbench/common/co
25
25
  import { CommandsRegistry } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
26
26
  import { assertType } from 'monaco-editor/esm/vs/base/common/types.js';
27
27
  import { getWorkspaceSymbols } from 'vscode/vscode/vs/workbench/contrib/search/common/search';
28
- import { ShowAllSymbolsActionId, QuickTextSearchActionId } from '../common/constants.js';
28
+ import { ShowAllSymbolsActionId, QuickTextSearchActionId } from 'vscode/vscode/vs/workbench/contrib/search/common/constants';
29
29
  import './searchActionsCopy.js';
30
- import './searchActionsFind.js';
30
+ import 'vscode/vscode/vs/workbench/contrib/search/browser/searchActionsFind';
31
31
  import './searchActionsNav.js';
32
32
  import './searchActionsRemoveReplace.js';
33
33
  import './searchActionsSymbol.js';
@@ -2,10 +2,10 @@ import * as nls from 'monaco-editor/esm/vs/nls.js';
2
2
  import { IClipboardService } from 'monaco-editor/esm/vs/platform/clipboard/common/clipboardService.js';
3
3
  import { ILabelService } from 'monaco-editor/esm/vs/platform/label/common/label.js';
4
4
  import { IViewsService } from 'vscode/vscode/vs/workbench/common/views';
5
- import { CopyMatchCommandId, FileMatchOrMatchFocusKey, CopyPathCommandId, FileMatchOrFolderMatchWithResourceFocusKey, CopyAllCommandId, HasSearchResults } from '../common/constants.js';
5
+ import { CopyMatchCommandId, FileMatchOrMatchFocusKey, CopyPathCommandId, FileMatchOrFolderMatchWithResourceFocusKey, CopyAllCommandId, HasSearchResults } from 'vscode/vscode/vs/workbench/contrib/search/common/constants';
6
6
  import { FileMatch, FolderMatchWithResource, Match, FolderMatch, searchMatchComparer } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchModel';
7
7
  import { registerAction2, Action2, MenuId } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
8
- import { category, getSearchView } from './searchActionsBase.js';
8
+ import { category, getSearchView } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchActionsBase';
9
9
  import { isWindows } from 'monaco-editor/esm/vs/base/common/platform.js';
10
10
 
11
11
  registerAction2(class CopyMatchCommandAction extends Action2 {
@@ -2,8 +2,8 @@ import { isMacintosh } from 'monaco-editor/esm/vs/base/common/platform.js';
2
2
  import * as nls from 'monaco-editor/esm/vs/nls.js';
3
3
  import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
4
4
  import { IViewsService } from 'vscode/vscode/vs/workbench/common/views';
5
- import { ToggleQueryDetailsActionId, SearchViewFocusedKey, CloseReplaceWidgetActionId, SearchViewVisibleKey, ReplaceInputBoxFocusedKey, ToggleCaseSensitiveCommandId, FileMatchOrFolderMatchFocusKey, ToggleWholeWordCommandId, ToggleRegexCommandId, TogglePreserveCaseId, OpenMatch, FileMatchOrMatchFocusKey, OpenMatchToSide, AddCursorsAtSearchResults, FocusNextInputActionId, InputBoxFocusedKey, FocusPreviousInputActionId, SearchInputBoxFocusedKey, FocusSearchFromResults, FirstMatchFocusKey, ToggleSearchOnTypeActionId, FocusSearchListCommandID, FocusNextSearchResultActionId, HasSearchResults, FocusPreviousSearchResultActionId, ReplaceInFilesActionId } from '../common/constants.js';
6
- import { InSearchEditor } from '../../searchEditor/browser/constants.js';
5
+ import { ToggleQueryDetailsActionId, SearchViewFocusedKey, CloseReplaceWidgetActionId, SearchViewVisibleKey, ReplaceInputBoxFocusedKey, ToggleCaseSensitiveCommandId, FileMatchOrFolderMatchFocusKey, ToggleWholeWordCommandId, ToggleRegexCommandId, TogglePreserveCaseId, OpenMatch, FileMatchOrMatchFocusKey, OpenMatchToSide, AddCursorsAtSearchResults, FocusNextInputActionId, InputBoxFocusedKey, FocusPreviousInputActionId, SearchInputBoxFocusedKey, FocusSearchFromResults, FirstMatchFocusKey, ToggleSearchOnTypeActionId, FocusSearchListCommandID, FocusNextSearchResultActionId, HasSearchResults, FocusPreviousSearchResultActionId, ReplaceInFilesActionId } from 'vscode/vscode/vs/workbench/contrib/search/common/constants';
6
+ import { InSearchEditor } from 'vscode/vscode/vs/workbench/contrib/searchEditor/browser/constants';
7
7
  import { FolderMatch } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchModel';
8
8
  import { SearchEditorInput } from '../../searchEditor/browser/searchEditorInput.js';
9
9
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
@@ -11,7 +11,7 @@ import { ContextKeyExpr, IContextKeyService } from 'monaco-editor/esm/vs/platfor
11
11
  import { assertIsDefined } from 'monaco-editor/esm/vs/base/common/types.js';
12
12
  import { registerAction2, Action2, MenuId } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
13
13
  import { ToggleCaseSensitiveKeybinding, ToggleWholeWordKeybinding, ToggleRegexKeybinding, TogglePreserveCaseKeybinding } from 'monaco-editor/esm/vs/editor/contrib/find/browser/findModel.js';
14
- import { category, getSearchView, openSearchView } from './searchActionsBase.js';
14
+ import { category, getSearchView, openSearchView } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchActionsBase';
15
15
  import { CONTEXT_ACCESSIBILITY_MODE_ENABLED } from 'monaco-editor/esm/vs/platform/accessibility/common/accessibility.js';
16
16
  import { getActiveElement } from 'monaco-editor/esm/vs/base/browser/dom.js';
17
17
 
@@ -3,14 +3,14 @@ import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configurati
3
3
  import { getSelectionKeyboardEvent } from 'monaco-editor/esm/vs/platform/list/browser/listService.js';
4
4
  import { IViewsService } from 'vscode/vscode/vs/workbench/common/views';
5
5
  import { searchRemoveIcon, searchReplaceIcon } from './searchIcons.js';
6
- import { RemoveActionId, SearchViewVisibleKey, FileMatchOrMatchFocusKey, ReplaceActionId, ReplaceActiveKey, MatchFocusKey, IsEditableItemKey, ReplaceAllInFileActionId, FileFocusKey, ReplaceAllInFolderActionId, FolderFocusKey } from '../common/constants.js';
6
+ import { RemoveActionId, SearchViewVisibleKey, FileMatchOrMatchFocusKey, ReplaceActionId, ReplaceActiveKey, MatchFocusKey, IsEditableItemKey, ReplaceAllInFileActionId, FileFocusKey, ReplaceAllInFolderActionId, FolderFocusKey } from 'vscode/vscode/vs/workbench/contrib/search/common/constants';
7
7
  import { IReplaceService } from 'vscode/vscode/vs/workbench/contrib/search/browser/replace';
8
8
  import { arrayContainsElementOrParent, SearchResult, Match, MatchInNotebook, FileMatch, FolderMatch } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchModel';
9
9
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
10
10
  import { IUriIdentityService } from 'monaco-editor/esm/vs/platform/uriIdentity/common/uriIdentity.js';
11
11
  import { ContextKeyExpr } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
12
12
  import { registerAction2, Action2, MenuId } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
13
- import { category, getSearchView, getElementsToOperateOn, shouldRefocus } from './searchActionsBase.js';
13
+ import { category, getSearchView, getElementsToOperateOn, shouldRefocus } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchActionsBase';
14
14
  import { equals } from 'monaco-editor/esm/vs/base/common/arrays.js';
15
15
 
16
16
  registerAction2(class RemoveAction extends Action2 {
@@ -1,5 +1,5 @@
1
1
  import * as nls from 'monaco-editor/esm/vs/nls.js';
2
- import { ShowAllSymbolsActionId } from '../common/constants.js';
2
+ import { ShowAllSymbolsActionId } from 'vscode/vscode/vs/workbench/contrib/search/common/constants';
3
3
  import { registerAction2, Action2, MenuId } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
4
4
  import { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
5
5
 
@@ -1,7 +1,7 @@
1
1
  import * as nls from 'monaco-editor/esm/vs/nls.js';
2
- import { QuickTextSearchActionId } from '../common/constants.js';
2
+ import { QuickTextSearchActionId } from 'vscode/vscode/vs/workbench/contrib/search/common/constants';
3
3
  import { registerAction2, Action2 } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
4
- import { category } from './searchActionsBase.js';
4
+ import { category } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchActionsBase';
5
5
  import { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
6
6
  import { TEXT_SEARCH_QUICK_ACCESS_PREFIX } from './quickTextSearch/textSearchQuickAccess.js';
7
7
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
@@ -2,14 +2,14 @@ import * as nls from 'monaco-editor/esm/vs/nls.js';
2
2
  import { WorkbenchListFocusContextKey } from 'monaco-editor/esm/vs/platform/list/browser/listService.js';
3
3
  import { IViewsService } from 'vscode/vscode/vs/workbench/common/views';
4
4
  import { searchStopIcon, searchRefreshIcon, searchCollapseAllIcon, searchExpandAllIcon, searchClearIcon, searchShowAsList, searchShowAsTree } from './searchIcons.js';
5
- import { ClearSearchHistoryCommandId, CancelSearchActionId, SearchViewVisibleKey, RefreshSearchResultsActionId, ViewHasSearchPatternKey, CollapseSearchResultsActionId, HasSearchResults, ViewHasSomeCollapsibleKey, ExpandSearchResultsActionId, ClearSearchResultsActionId, ViewHasReplacePatternKey, ViewHasFilePatternKey, ViewAsTreeActionId, InTreeViewKey, ViewAsListActionId } from '../common/constants.js';
5
+ import { ClearSearchHistoryCommandId, CancelSearchActionId, SearchViewVisibleKey, RefreshSearchResultsActionId, ViewHasSearchPatternKey, CollapseSearchResultsActionId, HasSearchResults, ViewHasSomeCollapsibleKey, ExpandSearchResultsActionId, ClearSearchResultsActionId, ViewHasReplacePatternKey, ViewHasFilePatternKey, ViewAsTreeActionId, InTreeViewKey, ViewAsListActionId } from 'vscode/vscode/vs/workbench/contrib/search/common/constants';
6
6
  import { ISearchHistoryService } from 'vscode/vscode/vs/workbench/contrib/search/common/searchHistoryService';
7
7
  import { FolderMatchWorkspaceRoot, Match, FolderMatch, FolderMatchNoRoot, SearchResult, FileMatch } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchModel';
8
8
  import { VIEW_ID } from 'vscode/vscode/vs/workbench/services/search/common/search';
9
9
  import { ContextKeyExpr } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
10
10
  import { registerAction2, Action2, MenuId } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
11
11
  import { SearchStateKey, SearchUIState } from 'vscode/vscode/vs/workbench/contrib/search/common/search';
12
- import { category, getSearchView } from './searchActionsBase.js';
12
+ import { category, getSearchView } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchActionsBase';
13
13
 
14
14
  registerAction2(class ClearSearchHistoryCommandAction extends Action2 {
15
15
  constructor() {
@@ -1,5 +1,5 @@
1
1
  import { ContextScopedFindInput } from 'monaco-editor/esm/vs/platform/history/browser/contextScopedHistoryWidget.js';
2
- import { NotebookFindInputFilterButton } from '../../notebook/browser/contrib/find/notebookFindReplaceWidget.js';
2
+ import { NotebookFindInputFilterButton } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget';
3
3
  import * as nls from 'monaco-editor/esm/vs/nls.js';
4
4
 
5
5
  class SearchFindInput extends ContextScopedFindInput {
@@ -15,7 +15,7 @@ import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiati
15
15
  import { MenuWorkbenchToolBar } from 'monaco-editor/esm/vs/platform/actions/browser/toolbar.js';
16
16
  import { IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
17
17
  import { ServiceCollection } from 'monaco-editor/esm/vs/platform/instantiation/common/serviceCollection.js';
18
- import { MatchFocusKey, FileFocusKey, FolderFocusKey, IsEditableItemKey } from '../common/constants.js';
18
+ import { MatchFocusKey, FileFocusKey, FolderFocusKey, IsEditableItemKey } from 'vscode/vscode/vs/workbench/contrib/search/common/constants';
19
19
  import { defaultCountBadgeStyles } from 'monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js';
20
20
 
21
21
  var FolderMatchRenderer_1, FileMatchRenderer_1, MatchRenderer_1;
@@ -47,14 +47,14 @@ import { ResourceLabels } from 'vscode/vscode/vs/workbench/browser/labels';
47
47
  import { ViewPane } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
48
48
  import { Memento } from 'vscode/vscode/vs/workbench/common/memento';
49
49
  import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views';
50
- import { NotebookEditor } from '../../../../../../../override/vs/workbench/contrib/notebook/browser/notebookEditor.js';
50
+ import { NotebookEditor } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditor';
51
51
  import { IncludePatternInputWidget, ExcludePatternInputWidget } from './patternInputWidget.js';
52
- import { appendKeyBindingLabel } from './searchActionsBase.js';
52
+ import { appendKeyBindingLabel } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchActionsBase';
53
53
  import { searchDetailsIcon } from './searchIcons.js';
54
54
  import { renderSearchMessage } from './searchMessage.js';
55
55
  import { SearchAccessibilityProvider, SearchDelegate, FolderMatchRenderer, FileMatchRenderer, MatchRenderer } from './searchResultsView.js';
56
56
  import { SearchWidget } from './searchWidget.js';
57
- import { SearchViewVisibleKey, FirstMatchFocusKey, FileMatchOrMatchFocusKey, FileMatchOrFolderMatchFocusKey, FileMatchOrFolderMatchWithResourceFocusKey, FileFocusKey, FolderFocusKey, ResourceFolderFocusKey, HasSearchResults, MatchFocusKey, ViewHasSearchPatternKey, ViewHasReplacePatternKey, ViewHasFilePatternKey, ViewHasSomeCollapsibleKey, InTreeViewKey, SearchViewFocusedKey, InputBoxFocusedKey, PatternIncludesFocusedKey, PatternExcludesFocusedKey, IsEditableItemKey, OpenInEditorCommandId } from '../common/constants.js';
57
+ import { SearchViewVisibleKey, FirstMatchFocusKey, FileMatchOrMatchFocusKey, FileMatchOrFolderMatchFocusKey, FileMatchOrFolderMatchWithResourceFocusKey, FileFocusKey, FolderFocusKey, ResourceFolderFocusKey, HasSearchResults, MatchFocusKey, ViewHasSearchPatternKey, ViewHasReplacePatternKey, ViewHasFilePatternKey, ViewHasSomeCollapsibleKey, InTreeViewKey, SearchViewFocusedKey, InputBoxFocusedKey, PatternIncludesFocusedKey, PatternExcludesFocusedKey, IsEditableItemKey, OpenInEditorCommandId } from 'vscode/vscode/vs/workbench/contrib/search/common/constants';
58
58
  import { IReplaceService } from 'vscode/vscode/vs/workbench/contrib/search/browser/replace';
59
59
  import { SearchStateKey, SearchUIState, getOutOfWorkspaceEditorResources } from 'vscode/vscode/vs/workbench/contrib/search/common/search';
60
60
  import { SearchHistoryService, ISearchHistoryService } from 'vscode/vscode/vs/workbench/contrib/search/common/searchHistoryService';
@@ -17,20 +17,20 @@ import { IKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/com
17
17
  import { KeybindingsRegistry } from 'monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js';
18
18
  import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
19
19
  import { ContextScopedReplaceInput } from 'monaco-editor/esm/vs/platform/history/browser/contextScopedHistoryWidget.js';
20
- import { appendKeyBindingLabel, isSearchViewFocused, getSearchView } from './searchActionsBase.js';
21
- import { ReplaceActiveKey, SearchInputBoxFocusedKey, ReplaceInputBoxFocusedKey, ToggleCaseSensitiveCommandId, ToggleWholeWordCommandId, ToggleRegexCommandId, TogglePreserveCaseId, SearchViewVisibleKey } from '../common/constants.js';
20
+ import { appendKeyBindingLabel, isSearchViewFocused, getSearchView } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchActionsBase';
21
+ import { ReplaceActiveKey, SearchInputBoxFocusedKey, ReplaceInputBoxFocusedKey, ToggleCaseSensitiveCommandId, ToggleWholeWordCommandId, ToggleRegexCommandId, TogglePreserveCaseId, SearchViewVisibleKey } from 'vscode/vscode/vs/workbench/contrib/search/common/constants';
22
22
  import { IAccessibilityService } from 'monaco-editor/esm/vs/platform/accessibility/common/accessibility.js';
23
23
  import { isMacintosh } from 'monaco-editor/esm/vs/base/common/platform.js';
24
24
  import { Toggle } from 'monaco-editor/esm/vs/base/browser/ui/toggle/toggle.js';
25
25
  import { IViewsService } from 'vscode/vscode/vs/workbench/common/views';
26
26
  import { searchReplaceAllIcon, searchHideReplaceIcon, searchShowContextIcon, searchShowReplaceIcon } from './searchIcons.js';
27
- import { ToggleSearchEditorContextLinesCommandId } from '../../searchEditor/browser/constants.js';
27
+ import { ToggleSearchEditorContextLinesCommandId } from 'vscode/vscode/vs/workbench/contrib/searchEditor/browser/constants';
28
28
  import { showHistoryKeybindingHint } from 'monaco-editor/esm/vs/platform/history/browser/historyWidgetKeybindingHint.js';
29
29
  import { defaultToggleStyles, defaultInputBoxStyles } from 'monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js';
30
- import { NotebookFindFilters } from '../../notebook/browser/contrib/find/findFilters.js';
30
+ import { NotebookFindFilters } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/contrib/find/findFilters';
31
31
  import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
32
32
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
33
- import { NotebookEditorInput } from '../../../../../../../override/vs/workbench/contrib/notebook/common/notebookEditorInput.js';
33
+ import { NotebookEditorInput } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
34
34
  import { SearchFindInput } from './searchFindInput.js';
35
35
 
36
36
  var SearchWidget_1;
@@ -14,10 +14,10 @@ import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
14
14
  import { EditorExtensions, DEFAULT_EDITOR_ASSOCIATION } from 'vscode/vscode/vs/workbench/common/editor';
15
15
  import { ActiveEditorContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
16
16
  import { IViewsService } from 'vscode/vscode/vs/workbench/common/views';
17
- import { getSearchView } from '../../search/browser/searchActionsBase.js';
17
+ import { getSearchView } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchActionsBase';
18
18
  import { searchRefreshIcon, searchNewEditorIcon } from '../../search/browser/searchIcons.js';
19
- import { HasSearchResults, SearchViewFocusedKey, SearchInputBoxFocusedKey } from '../../search/common/constants.js';
20
- import { InSearchEditor, OpenNewEditorCommandId, OpenEditorCommandId, SearchEditorID, ToggleSearchEditorContextLinesCommandId, SearchEditorScheme } from './constants.js';
19
+ import { HasSearchResults, SearchViewFocusedKey, SearchInputBoxFocusedKey } from 'vscode/vscode/vs/workbench/contrib/search/common/constants';
20
+ import { InSearchEditor, OpenNewEditorCommandId, OpenEditorCommandId, SearchEditorID, ToggleSearchEditorContextLinesCommandId, SearchEditorScheme } from 'vscode/vscode/vs/workbench/contrib/searchEditor/browser/constants';
21
21
  import { SearchEditor } from './searchEditor.js';
22
22
  import { openNewSearchEditor, createEditorFromSearchResult, toggleSearchEditorCaseSensitiveCommand, toggleSearchEditorWholeWordCommand, toggleSearchEditorRegexCommand, toggleSearchEditorContextLinesCommand, modifySearchEditorContextLinesCommand, selectAllSearchEditorMatchesCommand, openSearchEditor } from './searchEditorActions.js';
23
23
  import { SearchEditorInput, SEARCH_EDITOR_EXT, getOrMakeSearchEditorInput } from './searchEditorInput.js';
@@ -30,11 +30,11 @@ import { IWorkspaceContextService } from 'monaco-editor/esm/vs/platform/workspac
30
30
  import { AbstractTextCodeEditor } from 'vscode/vscode/vs/workbench/browser/parts/editor/textCodeEditor';
31
31
  import { IncludePatternInputWidget, ExcludePatternInputWidget } from '../../search/browser/patternInputWidget.js';
32
32
  import { SearchWidget } from '../../search/browser/searchWidget.js';
33
- import { InputBoxFocusedKey } from '../../search/common/constants.js';
33
+ import { InputBoxFocusedKey } from 'vscode/vscode/vs/workbench/contrib/search/common/constants';
34
34
  import { QueryBuilder } from 'vscode/vscode/vs/workbench/services/search/common/queryBuilder';
35
35
  import { getOutOfWorkspaceEditorResources } from 'vscode/vscode/vs/workbench/contrib/search/common/search';
36
36
  import { SearchModel } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchModel';
37
- import { SearchEditorID, InSearchEditor, SearchEditorInputTypeId } from './constants.js';
37
+ import { SearchEditorID, InSearchEditor, SearchEditorInputTypeId } from 'vscode/vscode/vs/workbench/contrib/searchEditor/browser/constants';
38
38
  import { serializeSearchResultForEditor } from './searchEditorSerialization.js';
39
39
  import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
40
40
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
@@ -7,7 +7,7 @@ import { ILabelService } from 'monaco-editor/esm/vs/platform/label/common/label.
7
7
  import { ITelemetryService } from 'monaco-editor/esm/vs/platform/telemetry/common/telemetry.js';
8
8
  import { IWorkspaceContextService } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
9
9
  import { IViewsService } from 'vscode/vscode/vs/workbench/common/views';
10
- import { getSearchView } from '../../search/browser/searchActionsBase.js';
10
+ import { getSearchView } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchActionsBase';
11
11
  import { SearchEditorInput, getOrMakeSearchEditorInput } from './searchEditorInput.js';
12
12
  import { serializeSearchResultForEditor } from './searchEditorSerialization.js';
13
13
  import { IConfigurationResolverService } from 'vscode/vscode/vs/workbench/services/configurationResolver/common/configurationResolver';
@@ -12,7 +12,7 @@ import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/st
12
12
  import { ITelemetryService } from 'monaco-editor/esm/vs/platform/telemetry/common/telemetry.js';
13
13
  import { EditorResourceAccessor } from 'vscode/vscode/vs/workbench/common/editor';
14
14
  import { Memento } from 'vscode/vscode/vs/workbench/common/memento';
15
- import { SearchEditorInputTypeId, SearchEditorScheme, SearchEditorWorkingCopyTypeId, SearchEditorFindMatchClass } from './constants.js';
15
+ import { SearchEditorInputTypeId, SearchEditorScheme, SearchEditorWorkingCopyTypeId, SearchEditorFindMatchClass } from 'vscode/vscode/vs/workbench/contrib/searchEditor/browser/constants';
16
16
  import { SearchEditorModel, searchEditorModelFactory } from './searchEditorModel.js';
17
17
  import { serializeSearchConfiguration, parseSavedSearchEditor, defaultSearchConfig } from './searchEditorSerialization.js';
18
18
  import { IPathService } from 'vscode/vscode/vs/workbench/services/path/common/pathService';
@@ -5,7 +5,7 @@ import { parseSavedSearchEditor, parseSerializedSearchEditor } from './searchEdi
5
5
  import { IWorkingCopyBackupService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyBackup';
6
6
  import { assertIsDefined } from 'monaco-editor/esm/vs/base/common/types.js';
7
7
  import { createTextBufferFactoryFromStream } from 'monaco-editor/esm/vs/editor/common/model/textModel.js';
8
- import { SearchEditorWorkingCopyTypeId } from './constants.js';
8
+ import { SearchEditorWorkingCopyTypeId } from 'vscode/vscode/vs/workbench/contrib/searchEditor/browser/constants';
9
9
  import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
10
10
  import { ResourceMap } from 'monaco-editor/esm/vs/base/common/map.js';
11
11
  import { SEARCH_RESULT_LANGUAGE_ID } from 'vscode/vscode/vs/workbench/services/search/common/search';
@@ -1,3 +0,0 @@
1
- class NotebookEditor {}
2
-
3
- export { NotebookEditor };
@@ -1,3 +0,0 @@
1
- class NotebookEditorInput {}
2
-
3
- export { NotebookEditorInput };
@@ -1,72 +0,0 @@
1
- import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
2
- import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
3
-
4
- class NotebookFindFilters extends Disposable {
5
- get markupInput() {
6
- return this._markupInput;
7
- }
8
- set markupInput(value) {
9
- if (this._markupInput !== value) {
10
- this._markupInput = value;
11
- this._onDidChange.fire({ markupInput: value });
12
- }
13
- }
14
- get markupPreview() {
15
- return this._markupPreview;
16
- }
17
- set markupPreview(value) {
18
- if (this._markupPreview !== value) {
19
- this._markupPreview = value;
20
- this._onDidChange.fire({ markupPreview: value });
21
- }
22
- }
23
- get codeInput() {
24
- return this._codeInput;
25
- }
26
- set codeInput(value) {
27
- if (this._codeInput !== value) {
28
- this._codeInput = value;
29
- this._onDidChange.fire({ codeInput: value });
30
- }
31
- }
32
- get codeOutput() {
33
- return this._codeOutput;
34
- }
35
- set codeOutput(value) {
36
- if (this._codeOutput !== value) {
37
- this._codeOutput = value;
38
- this._onDidChange.fire({ codeOutput: value });
39
- }
40
- }
41
- constructor(markupInput, markupPreview, codeInput, codeOutput) {
42
- super();
43
- this._onDidChange = this._register(( new Emitter()));
44
- this.onDidChange = this._onDidChange.event;
45
- this._markupInput = true;
46
- this._markupPreview = true;
47
- this._codeInput = true;
48
- this._codeOutput = true;
49
- this._markupInput = markupInput;
50
- this._markupPreview = markupPreview;
51
- this._codeInput = codeInput;
52
- this._codeOutput = codeOutput;
53
- this._initialMarkupInput = markupInput;
54
- this._initialMarkupPreview = markupPreview;
55
- this._initialCodeInput = codeInput;
56
- this._initialCodeOutput = codeOutput;
57
- }
58
- isModified() {
59
- return (this._markupInput !== this._initialMarkupInput
60
- || this._markupPreview !== this._initialMarkupPreview
61
- || this._codeInput !== this._initialCodeInput
62
- || this._codeOutput !== this._initialCodeOutput);
63
- }
64
- update(v) {
65
- this._markupInput = v.markupInput;
66
- this._markupPreview = v.markupPreview;
67
- this._codeInput = v.codeInput;
68
- this._codeOutput = v.codeOutput;
69
- }
70
- }
71
-
72
- export { NotebookFindFilters };
@@ -1,6 +0,0 @@
1
- import n from '../../../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
2
-
3
- var css = ".monaco-workbench .simple-fr-find-part-wrapper{background-color:var(--vscode-editorWidget-background)!important;border-bottom-left-radius:4px;border-bottom-right-radius:4px;box-shadow:0 0 8px 2px var(--vscode-widget-shadow);color:var(--vscode-editorWidget-foreground);max-width:calc(100% - 64px);overflow:hidden;padding:0 var(--notebook-find-horizontal-padding);position:absolute;right:18px;top:-45px;transition:top .2s linear;visibility:hidden;width:var(--notebook-find-width);z-index:10}.monaco-workbench.reduce-motion .simple-fr-find-part-wrapper{transition:top 0ms linear}.monaco-workbench .notebookOverlay .simple-fr-find-part-wrapper.visible{z-index:100}.monaco-workbench .simple-fr-find-part,.monaco-workbench .simple-fr-replace-part{align-items:center;display:flex;margin:0 0 0 17px;padding:4px;pointer-events:all;position:relative;top:0;z-index:10}.monaco-workbench .simple-fr-find-part-wrapper .find-replace-progress{height:2px;position:absolute;width:100%}.monaco-workbench .simple-fr-find-part-wrapper .find-replace-progress .monaco-progress-container{top:0!important;z-index:100!important}.monaco-workbench .simple-fr-find-part-wrapper .monaco-findInput{width:224px}.monaco-workbench .simple-fr-find-part-wrapper .button{align-items:center;background-position:50%;background-repeat:no-repeat;cursor:pointer;display:flex;flex:initial;height:20px;justify-content:center;margin-left:3px;width:20px}.monaco-workbench .simple-fr-find-part-wrapper.visible .simple-fr-find-part{visibility:visible}.monaco-workbench .simple-fr-find-part-wrapper .toggle{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;margin-left:0;pointer-events:all;position:absolute;top:0;width:18px}.monaco-workbench .simple-fr-find-part-wrapper.visible{visibility:visible}.monaco-workbench .simple-fr-find-part-wrapper.visible-transition{top:0}.monaco-workbench .simple-fr-find-part .monaco-findInput{flex:1}.monaco-workbench .simple-fr-find-part .button{background-position:50%;background-repeat:no-repeat;cursor:pointer;display:flex;flex:initial;height:20px;margin-left:3px;min-width:20px;width:20px}.monaco-workbench .simple-fr-find-part-wrapper .button.disabled{cursor:default;opacity:.3}.monaco-workbench .simple-fr-find-part-wrapper .monaco-custom-toggle.disabled{background-color:inherit!important;cursor:default;opacity:.3;pointer-events:none;user-select:none;-webkit-user-select:none}.monaco-workbench .simple-fr-find-part-wrapper .find-filter-button{box-sizing:border-box;color:inherit;cursor:pointer;float:left;margin-left:2px;user-select:none;-webkit-user-select:none}.find-filter-button .monaco-action-bar .action-label{padding:0}.monaco-workbench .simple-fr-find-part .monaco-inputbox>.ibwrapper>.input,.monaco-workbench .simple-fr-replace-part .monaco-inputbox>.ibwrapper>.input{height:24px}.monaco-workbench .simple-fr-find-part-wrapper .monaco-sash{background-color:var(--vscode-editorWidget-resizeBorder,var(--vscode-editorWidget-border));left:0!important}";
4
- n(css,{});
5
-
6
- export { css, css as default };
@@ -1,184 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
2
- import * as dom from 'monaco-editor/esm/vs/base/browser/dom.js';
3
- import './notebookFindReplaceWidget.css.js';
4
- import * as nls from 'monaco-editor/esm/vs/nls.js';
5
- import { IContextMenuService } from 'monaco-editor/esm/vs/platform/contextview/browser/contextView.js';
6
- import { registerIcon } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
7
- import { registerThemingParticipant } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
8
- import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
9
- import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
10
- import { Separator, Action, ActionRunner } from 'monaco-editor/esm/vs/base/common/actions.js';
11
- import { DropdownMenuActionViewItem } from 'monaco-editor/esm/vs/base/browser/ui/dropdown/dropdownActionViewItem.js';
12
- import { ActionBar } from 'monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.js';
13
- import { filterIcon } from 'vscode/vscode/vs/workbench/contrib/extensions/browser/extensionsIcons';
14
- import { isSafari } from 'monaco-editor/esm/vs/base/common/platform.js';
15
- import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
16
-
17
- registerIcon('find-filter', Codicon.filter, ( nls.localizeWithPath(
18
- 'vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget',
19
- 'findFilterIcon',
20
- 'Icon for Find Filter in find widget.'
21
- )));
22
- const NOTEBOOK_FIND_FILTERS = ( nls.localizeWithPath(
23
- 'vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget',
24
- 'notebook.find.filter.filterAction',
25
- "Find Filters"
26
- ));
27
- const NOTEBOOK_FIND_IN_MARKUP_INPUT = ( nls.localizeWithPath(
28
- 'vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget',
29
- 'notebook.find.filter.findInMarkupInput',
30
- "Markdown Source"
31
- ));
32
- const NOTEBOOK_FIND_IN_MARKUP_PREVIEW = ( nls.localizeWithPath(
33
- 'vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget',
34
- 'notebook.find.filter.findInMarkupPreview',
35
- "Rendered Markdown"
36
- ));
37
- const NOTEBOOK_FIND_IN_CODE_INPUT = ( nls.localizeWithPath(
38
- 'vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget',
39
- 'notebook.find.filter.findInCodeInput',
40
- "Code Cell Source"
41
- ));
42
- const NOTEBOOK_FIND_IN_CODE_OUTPUT = ( nls.localizeWithPath(
43
- 'vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget',
44
- 'notebook.find.filter.findInCodeOutput',
45
- "Code Cell Output"
46
- ));
47
- const NOTEBOOK_FIND_WIDGET_INITIAL_WIDTH = 318;
48
- const NOTEBOOK_FIND_WIDGET_INITIAL_HORIZONTAL_PADDING = 4;
49
- let NotebookFindFilterActionViewItem = class NotebookFindFilterActionViewItem extends DropdownMenuActionViewItem {
50
- constructor(filters, action, actionRunner, contextMenuService) {
51
- super(action, { getActions: () => this.getActions() }, contextMenuService, {
52
- actionRunner,
53
- classNames: action.class,
54
- anchorAlignmentProvider: () => 1
55
- });
56
- this.filters = filters;
57
- }
58
- render(container) {
59
- super.render(container);
60
- this.updateChecked();
61
- }
62
- getActions() {
63
- const markdownInput = {
64
- checked: this.filters.markupInput,
65
- class: undefined,
66
- enabled: true,
67
- id: 'findInMarkdownInput',
68
- label: NOTEBOOK_FIND_IN_MARKUP_INPUT,
69
- run: async () => {
70
- this.filters.markupInput = !this.filters.markupInput;
71
- },
72
- tooltip: ''
73
- };
74
- const markdownPreview = {
75
- checked: this.filters.markupPreview,
76
- class: undefined,
77
- enabled: true,
78
- id: 'findInMarkdownInput',
79
- label: NOTEBOOK_FIND_IN_MARKUP_PREVIEW,
80
- run: async () => {
81
- this.filters.markupPreview = !this.filters.markupPreview;
82
- },
83
- tooltip: ''
84
- };
85
- const codeInput = {
86
- checked: this.filters.codeInput,
87
- class: undefined,
88
- enabled: true,
89
- id: 'findInCodeInput',
90
- label: NOTEBOOK_FIND_IN_CODE_INPUT,
91
- run: async () => {
92
- this.filters.codeInput = !this.filters.codeInput;
93
- },
94
- tooltip: ''
95
- };
96
- const codeOutput = {
97
- checked: this.filters.codeOutput,
98
- class: undefined,
99
- enabled: true,
100
- id: 'findInCodeOutput',
101
- label: NOTEBOOK_FIND_IN_CODE_OUTPUT,
102
- run: async () => {
103
- this.filters.codeOutput = !this.filters.codeOutput;
104
- },
105
- tooltip: '',
106
- dispose: () => null
107
- };
108
- if (isSafari) {
109
- return [
110
- markdownInput,
111
- codeInput
112
- ];
113
- }
114
- else {
115
- return [
116
- markdownInput,
117
- markdownPreview,
118
- ( new Separator()),
119
- codeInput,
120
- codeOutput,
121
- ];
122
- }
123
- }
124
- updateChecked() {
125
- this.element.classList.toggle('checked', this._action.checked);
126
- }
127
- };
128
- NotebookFindFilterActionViewItem = ( __decorate([
129
- ( __param(3, IContextMenuService))
130
- ], NotebookFindFilterActionViewItem));
131
- class NotebookFindInputFilterButton extends Disposable {
132
- constructor(filters, contextMenuService, instantiationService, options, tooltip = NOTEBOOK_FIND_FILTERS) {
133
- super();
134
- this.filters = filters;
135
- this.contextMenuService = contextMenuService;
136
- this.instantiationService = instantiationService;
137
- this._actionbar = null;
138
- this._toggleStyles = options.toggleStyles;
139
- this._filtersAction = ( new Action(
140
- 'notebookFindFilterAction',
141
- tooltip,
142
- 'notebook-filters ' + ThemeIcon.asClassName(filterIcon)
143
- ));
144
- this._filtersAction.checked = false;
145
- this._filterButtonContainer = dom.$('.find-filter-button');
146
- this._filterButtonContainer.classList.add('monaco-custom-toggle');
147
- this.createFilters(this._filterButtonContainer);
148
- }
149
- get container() {
150
- return this._filterButtonContainer;
151
- }
152
- get width() {
153
- return 2 + 2 + 2 + 16 ;
154
- }
155
- applyStyles(filterChecked) {
156
- const toggleStyles = this._toggleStyles;
157
- this._filterButtonContainer.style.border = '1px solid transparent';
158
- this._filterButtonContainer.style.borderRadius = '3px';
159
- this._filterButtonContainer.style.borderColor = (filterChecked && toggleStyles.inputActiveOptionBorder) || '';
160
- this._filterButtonContainer.style.color = (filterChecked && toggleStyles.inputActiveOptionForeground) || 'inherit';
161
- this._filterButtonContainer.style.backgroundColor = (filterChecked && toggleStyles.inputActiveOptionBackground) || '';
162
- }
163
- createFilters(container) {
164
- this._actionbar = this._register(( new ActionBar(container, {
165
- actionViewItemProvider: action => {
166
- if (action.id === this._filtersAction.id) {
167
- return this.instantiationService.createInstance(NotebookFindFilterActionViewItem, this.filters, action, ( new ActionRunner()));
168
- }
169
- return undefined;
170
- }
171
- })));
172
- this._actionbar.push(this._filtersAction, { icon: true, label: false });
173
- }
174
- }
175
- registerThemingParticipant((theme, collector) => {
176
- collector.addRule(`
177
- .notebook-editor {
178
- --notebook-find-width: ${NOTEBOOK_FIND_WIDGET_INITIAL_WIDTH}px;
179
- --notebook-find-horizontal-padding: ${NOTEBOOK_FIND_WIDGET_INITIAL_HORIZONTAL_PADDING}px;
180
- }
181
- `);
182
- });
183
-
184
- export { NotebookFindInputFilterButton };
@@ -1,51 +0,0 @@
1
- import * as dom from 'monaco-editor/esm/vs/base/browser/dom.js';
2
- import * as nls from 'monaco-editor/esm/vs/nls.js';
3
- import { searchComparer, FileMatch, Match, FolderMatch } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchModel';
4
- import { VIEW_ID } from 'vscode/vscode/vs/workbench/services/search/common/search';
5
-
6
- const category = { value: ( nls.localizeWithPath(
7
- 'vs/workbench/contrib/search/browser/searchActionsBase',
8
- 'search',
9
- "Search"
10
- )), original: 'Search' };
11
- function isSearchViewFocused(viewsService) {
12
- const searchView = getSearchView(viewsService);
13
- return !!(searchView && dom.isAncestorOfActiveElement(searchView.getContainer()));
14
- }
15
- function appendKeyBindingLabel(label, inputKeyBinding) {
16
- return doAppendKeyBindingLabel(label, inputKeyBinding);
17
- }
18
- function getSearchView(viewsService) {
19
- return viewsService.getActiveViewWithId(VIEW_ID);
20
- }
21
- function getElementsToOperateOn(viewer, currElement, sortConfig) {
22
- let elements = viewer.getSelection().filter((x) => x !== null).sort((a, b) => searchComparer(a, b, sortConfig.sortOrder));
23
- if (currElement && !(elements.length > 1 && elements.includes(currElement))) {
24
- elements = [currElement];
25
- }
26
- return elements;
27
- }
28
- function shouldRefocus(elements, focusElement) {
29
- if (!focusElement) {
30
- return false;
31
- }
32
- return !focusElement || elements.includes(focusElement) || hasDownstreamMatch(elements, focusElement);
33
- }
34
- function hasDownstreamMatch(elements, focusElement) {
35
- for (const elem of elements) {
36
- if ((elem instanceof FileMatch && focusElement instanceof Match && elem.matches().includes(focusElement)) ||
37
- (elem instanceof FolderMatch && ((focusElement instanceof FileMatch && elem.getDownstreamFileMatch(focusElement.resource)) ||
38
- (focusElement instanceof Match && elem.getDownstreamFileMatch(focusElement.parent().resource))))) {
39
- return true;
40
- }
41
- }
42
- return false;
43
- }
44
- function openSearchView(viewsService, focus) {
45
- return viewsService.openView(VIEW_ID, focus).then(view => (view ?? undefined));
46
- }
47
- function doAppendKeyBindingLabel(label, keyBinding) {
48
- return keyBinding ? label + ' (' + keyBinding.getLabel() + ')' : label;
49
- }
50
-
51
- export { appendKeyBindingLabel, category, getElementsToOperateOn, getSearchView, isSearchViewFocused, openSearchView, shouldRefocus };
@@ -1,389 +0,0 @@
1
- import { dirname } from 'monaco-editor/esm/vs/base/common/resources.js';
2
- import * as nls from 'monaco-editor/esm/vs/nls.js';
3
- import { ICommandService } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
4
- import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
5
- import { IListService } from 'monaco-editor/esm/vs/platform/list/browser/listService.js';
6
- import { IViewsService } from 'vscode/vscode/vs/workbench/common/views';
7
- import { RestrictSearchToFolderId, SearchViewVisibleKey, ResourceFolderFocusKey, ExcludeFolderFromSearchId, RevealInSideBarForSearchResults, FileFocusKey, HasSearchResults, FindInFilesActionId, FindInFolderId, FindInWorkspaceId } from '../common/constants.js';
8
- import { OpenEditorCommandId } from '../../searchEditor/browser/constants.js';
9
- import { FileMatch, Match } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchModel';
10
- import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
11
- import { ContextKeyExpr } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
12
- import { registerAction2, Action2, MenuId } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
13
- import { resolveResourcesForSearchIncludes } from 'vscode/vscode/vs/workbench/services/search/common/queryBuilder';
14
- import { IExplorerService, getMultiSelectedResources } from 'vscode/vscode/vs/workbench/contrib/files/browser/files';
15
- import { IFileService } from 'monaco-editor/esm/vs/platform/files/common/files.js';
16
- import { IWorkspaceContextService } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
17
- import { VIEWLET_ID, FilesExplorerFocusCondition, ExplorerFolderContext, ExplorerRootContext } from 'vscode/vscode/vs/workbench/contrib/files/common/files';
18
- import { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite';
19
- import { onUnexpectedError } from 'monaco-editor/esm/vs/base/common/errors.js';
20
- import { category, getSearchView, openSearchView, getElementsToOperateOn } from './searchActionsBase.js';
21
- import { IConfigurationResolverService } from 'vscode/vscode/vs/workbench/services/configurationResolver/common/configurationResolver';
22
- import { IHistoryService } from 'vscode/vscode/vs/workbench/services/history/common/history';
23
- import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
24
-
25
- registerAction2(class RestrictSearchToFolderAction extends Action2 {
26
- constructor() {
27
- super({
28
- id: RestrictSearchToFolderId,
29
- title: {
30
- value: ( nls.localizeWithPath(
31
- 'vs/workbench/contrib/search/browser/searchActionsFind',
32
- 'restrictResultsToFolder',
33
- "Restrict Search to Folder"
34
- )),
35
- original: 'Restrict Search to Folder'
36
- },
37
- category,
38
- keybinding: {
39
- weight: 200 ,
40
- when: ( ContextKeyExpr.and(SearchViewVisibleKey, ResourceFolderFocusKey)),
41
- primary: 1024 | 512 | 36 ,
42
- },
43
- menu: [
44
- {
45
- id: MenuId.SearchContext,
46
- group: 'search',
47
- order: 3,
48
- when: ( ContextKeyExpr.and(ResourceFolderFocusKey))
49
- }
50
- ]
51
- });
52
- }
53
- async run(accessor, folderMatch) {
54
- await searchWithFolderCommand(accessor, false, true, undefined, folderMatch);
55
- }
56
- });
57
- registerAction2(class ExcludeFolderFromSearchAction extends Action2 {
58
- constructor() {
59
- super({
60
- id: ExcludeFolderFromSearchId,
61
- title: {
62
- value: ( nls.localizeWithPath(
63
- 'vs/workbench/contrib/search/browser/searchActionsFind',
64
- 'excludeFolderFromSearch',
65
- "Exclude Folder from Search"
66
- )),
67
- original: 'Exclude Folder from Search'
68
- },
69
- category,
70
- menu: [
71
- {
72
- id: MenuId.SearchContext,
73
- group: 'search',
74
- order: 4,
75
- when: ( ContextKeyExpr.and(ResourceFolderFocusKey))
76
- }
77
- ]
78
- });
79
- }
80
- async run(accessor, folderMatch) {
81
- await searchWithFolderCommand(accessor, false, false, undefined, folderMatch);
82
- }
83
- });
84
- registerAction2(class RevealInSideBarForSearchResultsAction extends Action2 {
85
- constructor() {
86
- super({
87
- id: RevealInSideBarForSearchResults,
88
- title: {
89
- value: ( nls.localizeWithPath(
90
- 'vs/workbench/contrib/search/browser/searchActionsFind',
91
- 'revealInSideBar',
92
- "Reveal in Explorer View"
93
- )),
94
- original: 'Reveal in Explorer View'
95
- },
96
- category,
97
- menu: [{
98
- id: MenuId.SearchContext,
99
- when: ( ContextKeyExpr.and(FileFocusKey, HasSearchResults)),
100
- group: 'search_3',
101
- order: 1
102
- }]
103
- });
104
- }
105
- async run(accessor, args) {
106
- const paneCompositeService = accessor.get(IPaneCompositePartService);
107
- const explorerService = accessor.get(IExplorerService);
108
- const contextService = accessor.get(IWorkspaceContextService);
109
- const searchView = getSearchView(accessor.get(IViewsService));
110
- if (!searchView) {
111
- return;
112
- }
113
- let fileMatch;
114
- if (!(args instanceof FileMatch)) {
115
- args = searchView.getControl().getFocus()[0];
116
- }
117
- if (args instanceof FileMatch) {
118
- fileMatch = args;
119
- }
120
- else {
121
- return;
122
- }
123
- paneCompositeService.openPaneComposite(VIEWLET_ID, 0 , false).then((viewlet) => {
124
- if (!viewlet) {
125
- return;
126
- }
127
- const explorerViewContainer = viewlet.getViewPaneContainer();
128
- const uri = fileMatch.resource;
129
- if (uri && contextService.isInsideWorkspace(uri)) {
130
- const explorerView = explorerViewContainer.getExplorerView();
131
- explorerView.setExpanded(true);
132
- explorerService.select(uri, true).then(() => explorerView.focus(), onUnexpectedError);
133
- }
134
- });
135
- }
136
- });
137
- registerAction2(class FindInFilesAction extends Action2 {
138
- constructor() {
139
- super({
140
- id: FindInFilesActionId,
141
- title: {
142
- value: ( nls.localizeWithPath(
143
- 'vs/workbench/contrib/search/browser/searchActionsFind',
144
- 'findInFiles',
145
- "Find in Files"
146
- )),
147
- mnemonicTitle: ( nls.localizeWithPath(
148
- 'vs/workbench/contrib/search/browser/searchActionsFind',
149
- { key: 'miFindInFiles', comment: ['&& denotes a mnemonic'] },
150
- "Find &&in Files"
151
- )),
152
- original: 'Find in Files'
153
- },
154
- metadata: {
155
- description: ( nls.localizeWithPath(
156
- 'vs/workbench/contrib/search/browser/searchActionsFind',
157
- 'findInFiles.description',
158
- "Open a workspace search"
159
- )),
160
- args: [
161
- {
162
- name: ( nls.localizeWithPath(
163
- 'vs/workbench/contrib/search/browser/searchActionsFind',
164
- 'findInFiles.args',
165
- "A set of options for the search"
166
- )),
167
- schema: {
168
- type: 'object',
169
- properties: {
170
- query: { 'type': 'string' },
171
- replace: { 'type': 'string' },
172
- preserveCase: { 'type': 'boolean' },
173
- triggerSearch: { 'type': 'boolean' },
174
- filesToInclude: { 'type': 'string' },
175
- filesToExclude: { 'type': 'string' },
176
- isRegex: { 'type': 'boolean' },
177
- isCaseSensitive: { 'type': 'boolean' },
178
- matchWholeWord: { 'type': 'boolean' },
179
- useExcludeSettingsAndIgnoreFiles: { 'type': 'boolean' },
180
- onlyOpenEditors: { 'type': 'boolean' },
181
- }
182
- }
183
- },
184
- ]
185
- },
186
- category,
187
- keybinding: {
188
- weight: 200 ,
189
- primary: 2048 | 1024 | 36 ,
190
- },
191
- menu: [{
192
- id: MenuId.MenubarEditMenu,
193
- group: '4_find_global',
194
- order: 1,
195
- }],
196
- f1: true
197
- });
198
- }
199
- async run(accessor, args = {}) {
200
- findInFilesCommand(accessor, args);
201
- }
202
- });
203
- registerAction2(class FindInFolderAction extends Action2 {
204
- constructor() {
205
- super({
206
- id: FindInFolderId,
207
- title: {
208
- value: ( nls.localizeWithPath(
209
- 'vs/workbench/contrib/search/browser/searchActionsFind',
210
- 'findInFolder',
211
- "Find in Folder..."
212
- )),
213
- original: 'Find in Folder...'
214
- },
215
- category,
216
- keybinding: {
217
- weight: 200 ,
218
- when: ( ContextKeyExpr.and(FilesExplorerFocusCondition, ExplorerFolderContext)),
219
- primary: 1024 | 512 | 36 ,
220
- },
221
- menu: [
222
- {
223
- id: MenuId.ExplorerContext,
224
- group: '4_search',
225
- order: 10,
226
- when: ( ContextKeyExpr.and(ExplorerFolderContext))
227
- }
228
- ]
229
- });
230
- }
231
- async run(accessor, resource) {
232
- await searchWithFolderCommand(accessor, true, true, resource);
233
- }
234
- });
235
- registerAction2(class FindInWorkspaceAction extends Action2 {
236
- constructor() {
237
- super({
238
- id: FindInWorkspaceId,
239
- title: {
240
- value: ( nls.localizeWithPath(
241
- 'vs/workbench/contrib/search/browser/searchActionsFind',
242
- 'findInWorkspace',
243
- "Find in Workspace..."
244
- )),
245
- original: 'Find in Workspace...'
246
- },
247
- category,
248
- menu: [
249
- {
250
- id: MenuId.ExplorerContext,
251
- group: '4_search',
252
- order: 10,
253
- when: ( ContextKeyExpr.and(ExplorerRootContext, ( ExplorerFolderContext.toNegated())))
254
- }
255
- ]
256
- });
257
- }
258
- async run(accessor) {
259
- const searchConfig = accessor.get(IConfigurationService).getValue().search;
260
- const mode = searchConfig.mode;
261
- if (mode === 'view') {
262
- const searchView = await openSearchView(accessor.get(IViewsService), true);
263
- searchView?.searchInFolders();
264
- }
265
- else {
266
- return accessor.get(ICommandService).executeCommand(OpenEditorCommandId, {
267
- location: mode === 'newEditor' ? 'new' : 'reuse',
268
- filesToInclude: '',
269
- });
270
- }
271
- }
272
- });
273
- async function searchWithFolderCommand(accessor, isFromExplorer, isIncludes, resource, folderMatch) {
274
- const listService = accessor.get(IListService);
275
- const fileService = accessor.get(IFileService);
276
- const viewsService = accessor.get(IViewsService);
277
- const contextService = accessor.get(IWorkspaceContextService);
278
- const commandService = accessor.get(ICommandService);
279
- const searchConfig = accessor.get(IConfigurationService).getValue().search;
280
- const mode = searchConfig.mode;
281
- let resources;
282
- if (isFromExplorer) {
283
- resources = getMultiSelectedResources(resource, listService, accessor.get(IEditorService), accessor.get(IExplorerService));
284
- }
285
- else {
286
- const searchView = getSearchView(accessor.get(IViewsService));
287
- if (!searchView) {
288
- return;
289
- }
290
- resources = getMultiSelectedSearchResources(searchView.getControl(), folderMatch, searchConfig);
291
- }
292
- const resolvedResources = fileService.resolveAll(( resources.map(resource => ({ resource })))).then(results => {
293
- const folders = [];
294
- results.forEach(result => {
295
- if (result.success && result.stat) {
296
- folders.push(result.stat.isDirectory ? result.stat.resource : dirname(result.stat.resource));
297
- }
298
- });
299
- return resolveResourcesForSearchIncludes(folders, contextService);
300
- });
301
- if (mode === 'view') {
302
- const searchView = await openSearchView(viewsService, true);
303
- if (resources && resources.length && searchView) {
304
- if (isIncludes) {
305
- searchView.searchInFolders(await resolvedResources);
306
- }
307
- else {
308
- searchView.searchOutsideOfFolders(await resolvedResources);
309
- }
310
- }
311
- return undefined;
312
- }
313
- else {
314
- if (isIncludes) {
315
- return commandService.executeCommand(OpenEditorCommandId, {
316
- filesToInclude: (await resolvedResources).join(', '),
317
- showIncludesExcludes: true,
318
- location: mode === 'newEditor' ? 'new' : 'reuse',
319
- });
320
- }
321
- else {
322
- return commandService.executeCommand(OpenEditorCommandId, {
323
- filesToExclude: (await resolvedResources).join(', '),
324
- showIncludesExcludes: true,
325
- location: mode === 'newEditor' ? 'new' : 'reuse',
326
- });
327
- }
328
- }
329
- }
330
- function getMultiSelectedSearchResources(viewer, currElement, sortConfig) {
331
- return ( getElementsToOperateOn(viewer, currElement, sortConfig)
332
- .map(
333
- (renderableMatch) => ((renderableMatch instanceof Match) ? null : renderableMatch.resource)
334
- ))
335
- .filter((renderableMatch) => (renderableMatch !== null));
336
- }
337
- async function findInFilesCommand(accessor, _args = {}) {
338
- const searchConfig = accessor.get(IConfigurationService).getValue().search;
339
- const viewsService = accessor.get(IViewsService);
340
- const commandService = accessor.get(ICommandService);
341
- const args = {};
342
- if (( Object.keys(_args)).length !== 0) {
343
- const configurationResolverService = accessor.get(IConfigurationResolverService);
344
- const historyService = accessor.get(IHistoryService);
345
- const workspaceContextService = accessor.get(IWorkspaceContextService);
346
- const activeWorkspaceRootUri = historyService.getLastActiveWorkspaceRoot();
347
- const filteredActiveWorkspaceRootUri = activeWorkspaceRootUri?.scheme === Schemas.file || activeWorkspaceRootUri?.scheme === Schemas.vscodeRemote ? activeWorkspaceRootUri : undefined;
348
- const lastActiveWorkspaceRoot = filteredActiveWorkspaceRootUri ? workspaceContextService.getWorkspaceFolder(filteredActiveWorkspaceRootUri) ?? undefined : undefined;
349
- for (const entry of Object.entries(_args)) {
350
- const name = entry[0];
351
- const value = entry[1];
352
- if (value !== undefined) {
353
- args[name] = (typeof value === 'string') ? await configurationResolverService.resolveAsync(lastActiveWorkspaceRoot, value) : value;
354
- }
355
- }
356
- }
357
- const mode = searchConfig.mode;
358
- if (mode === 'view') {
359
- openSearchView(viewsService, false).then(openedView => {
360
- if (openedView) {
361
- const searchAndReplaceWidget = openedView.searchAndReplaceWidget;
362
- searchAndReplaceWidget.toggleReplace(typeof args.replace === 'string');
363
- let updatedText = false;
364
- if (typeof args.query !== 'string') {
365
- updatedText = openedView.updateTextFromFindWidgetOrSelection({ allowUnselectedWord: typeof args.replace !== 'string' });
366
- }
367
- openedView.setSearchParameters(args);
368
- openedView.searchAndReplaceWidget.focus(undefined, updatedText, updatedText);
369
- }
370
- });
371
- }
372
- else {
373
- const convertArgs = (args) => ({
374
- location: mode === 'newEditor' ? 'new' : 'reuse',
375
- query: args.query,
376
- filesToInclude: args.filesToInclude,
377
- filesToExclude: args.filesToExclude,
378
- matchWholeWord: args.matchWholeWord,
379
- isCaseSensitive: args.isCaseSensitive,
380
- isRegexp: args.isRegex,
381
- useExcludeSettingsAndIgnoreFiles: args.useExcludeSettingsAndIgnoreFiles,
382
- onlyOpenEditors: args.onlyOpenEditors,
383
- showIncludesExcludes: !!(args.filesToExclude || args.filesToExclude || !args.useExcludeSettingsAndIgnoreFiles),
384
- });
385
- commandService.executeCommand(OpenEditorCommandId, convertArgs(args));
386
- }
387
- }
388
-
389
- export { findInFilesCommand };
@@ -1,68 +0,0 @@
1
- import { RawContextKey } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
2
-
3
- const FindInFilesActionId = 'workbench.action.findInFiles';
4
- const FocusSearchFromResults = 'search.action.focusSearchFromResults';
5
- const OpenMatch = 'search.action.openResult';
6
- const OpenMatchToSide = 'search.action.openResultToSide';
7
- const RemoveActionId = 'search.action.remove';
8
- const CopyPathCommandId = 'search.action.copyPath';
9
- const CopyMatchCommandId = 'search.action.copyMatch';
10
- const CopyAllCommandId = 'search.action.copyAll';
11
- const OpenInEditorCommandId = 'search.action.openInEditor';
12
- const ClearSearchHistoryCommandId = 'search.action.clearHistory';
13
- const FocusSearchListCommandID = 'search.action.focusSearchList';
14
- const ReplaceActionId = 'search.action.replace';
15
- const ReplaceAllInFileActionId = 'search.action.replaceAllInFile';
16
- const ReplaceAllInFolderActionId = 'search.action.replaceAllInFolder';
17
- const CloseReplaceWidgetActionId = 'closeReplaceInFilesWidget';
18
- const ToggleCaseSensitiveCommandId = 'toggleSearchCaseSensitive';
19
- const ToggleWholeWordCommandId = 'toggleSearchWholeWord';
20
- const ToggleRegexCommandId = 'toggleSearchRegex';
21
- const TogglePreserveCaseId = 'toggleSearchPreserveCase';
22
- const AddCursorsAtSearchResults = 'addCursorsAtSearchResults';
23
- const RevealInSideBarForSearchResults = 'search.action.revealInSideBar';
24
- const ReplaceInFilesActionId = 'workbench.action.replaceInFiles';
25
- const ShowAllSymbolsActionId = 'workbench.action.showAllSymbols';
26
- const QuickTextSearchActionId = 'workbench.action.experimental.quickTextSearch';
27
- const CancelSearchActionId = 'search.action.cancel';
28
- const RefreshSearchResultsActionId = 'search.action.refreshSearchResults';
29
- const FocusNextSearchResultActionId = 'search.action.focusNextSearchResult';
30
- const FocusPreviousSearchResultActionId = 'search.action.focusPreviousSearchResult';
31
- const ToggleSearchOnTypeActionId = 'workbench.action.toggleSearchOnType';
32
- const CollapseSearchResultsActionId = 'search.action.collapseSearchResults';
33
- const ExpandSearchResultsActionId = 'search.action.expandSearchResults';
34
- const ClearSearchResultsActionId = 'search.action.clearSearchResults';
35
- const ViewAsTreeActionId = 'search.action.viewAsTree';
36
- const ViewAsListActionId = 'search.action.viewAsList';
37
- const ToggleQueryDetailsActionId = 'workbench.action.search.toggleQueryDetails';
38
- const ExcludeFolderFromSearchId = 'search.action.excludeFromSearch';
39
- const FocusNextInputActionId = 'search.focus.nextInputBox';
40
- const FocusPreviousInputActionId = 'search.focus.previousInputBox';
41
- const RestrictSearchToFolderId = 'search.action.restrictSearchToFolder';
42
- const FindInFolderId = 'filesExplorer.findInFolder';
43
- const FindInWorkspaceId = 'filesExplorer.findInWorkspace';
44
- const SearchViewVisibleKey = ( new RawContextKey('searchViewletVisible', true));
45
- const SearchViewFocusedKey = ( new RawContextKey('searchViewletFocus', false));
46
- const InputBoxFocusedKey = ( new RawContextKey('inputBoxFocus', false));
47
- const SearchInputBoxFocusedKey = ( new RawContextKey('searchInputBoxFocus', false));
48
- const ReplaceInputBoxFocusedKey = ( new RawContextKey('replaceInputBoxFocus', false));
49
- const PatternIncludesFocusedKey = ( new RawContextKey('patternIncludesInputBoxFocus', false));
50
- const PatternExcludesFocusedKey = ( new RawContextKey('patternExcludesInputBoxFocus', false));
51
- const ReplaceActiveKey = ( new RawContextKey('replaceActive', false));
52
- const HasSearchResults = ( new RawContextKey('hasSearchResult', false));
53
- const FirstMatchFocusKey = ( new RawContextKey('firstMatchFocus', false));
54
- const FileMatchOrMatchFocusKey = ( new RawContextKey('fileMatchOrMatchFocus', false));
55
- const FileMatchOrFolderMatchFocusKey = ( new RawContextKey('fileMatchOrFolderMatchFocus', false));
56
- const FileMatchOrFolderMatchWithResourceFocusKey = ( new RawContextKey('fileMatchOrFolderMatchWithResourceFocus', false));
57
- const FileFocusKey = ( new RawContextKey('fileMatchFocus', false));
58
- const FolderFocusKey = ( new RawContextKey('folderMatchFocus', false));
59
- const ResourceFolderFocusKey = ( new RawContextKey('folderMatchWithResourceFocus', false));
60
- const IsEditableItemKey = ( new RawContextKey('isEditableItem', true));
61
- const MatchFocusKey = ( new RawContextKey('matchFocus', false));
62
- const ViewHasSearchPatternKey = ( new RawContextKey('viewHasSearchPattern', false));
63
- const ViewHasReplacePatternKey = ( new RawContextKey('viewHasReplacePattern', false));
64
- const ViewHasFilePatternKey = ( new RawContextKey('viewHasFilePattern', false));
65
- const ViewHasSomeCollapsibleKey = ( new RawContextKey('viewHasSomeCollapsibleResult', false));
66
- const InTreeViewKey = ( new RawContextKey('inTreeView', false));
67
-
68
- export { AddCursorsAtSearchResults, CancelSearchActionId, ClearSearchHistoryCommandId, ClearSearchResultsActionId, CloseReplaceWidgetActionId, CollapseSearchResultsActionId, CopyAllCommandId, CopyMatchCommandId, CopyPathCommandId, ExcludeFolderFromSearchId, ExpandSearchResultsActionId, FileFocusKey, FileMatchOrFolderMatchFocusKey, FileMatchOrFolderMatchWithResourceFocusKey, FileMatchOrMatchFocusKey, FindInFilesActionId, FindInFolderId, FindInWorkspaceId, FirstMatchFocusKey, FocusNextInputActionId, FocusNextSearchResultActionId, FocusPreviousInputActionId, FocusPreviousSearchResultActionId, FocusSearchFromResults, FocusSearchListCommandID, FolderFocusKey, HasSearchResults, InTreeViewKey, InputBoxFocusedKey, IsEditableItemKey, MatchFocusKey, OpenInEditorCommandId, OpenMatch, OpenMatchToSide, PatternExcludesFocusedKey, PatternIncludesFocusedKey, QuickTextSearchActionId, RefreshSearchResultsActionId, RemoveActionId, ReplaceActionId, ReplaceActiveKey, ReplaceAllInFileActionId, ReplaceAllInFolderActionId, ReplaceInFilesActionId, ReplaceInputBoxFocusedKey, ResourceFolderFocusKey, RestrictSearchToFolderId, RevealInSideBarForSearchResults, SearchInputBoxFocusedKey, SearchViewFocusedKey, SearchViewVisibleKey, ShowAllSymbolsActionId, ToggleCaseSensitiveCommandId, TogglePreserveCaseId, ToggleQueryDetailsActionId, ToggleRegexCommandId, ToggleSearchOnTypeActionId, ToggleWholeWordCommandId, ViewAsListActionId, ViewAsTreeActionId, ViewHasFilePatternKey, ViewHasReplacePatternKey, ViewHasSearchPatternKey, ViewHasSomeCollapsibleKey };
@@ -1,13 +0,0 @@
1
- import { RawContextKey } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
2
-
3
- const InSearchEditor = ( new RawContextKey('inSearchEditor', false));
4
- const SearchEditorScheme = 'search-editor';
5
- const SearchEditorWorkingCopyTypeId = 'search/editor';
6
- const SearchEditorFindMatchClass = 'searchEditorFindMatch';
7
- const SearchEditorID = 'workbench.editor.searchEditor';
8
- const OpenNewEditorCommandId = 'search.action.openNewEditor';
9
- const OpenEditorCommandId = 'search.action.openEditor';
10
- const ToggleSearchEditorContextLinesCommandId = 'toggleSearchEditorContextLines';
11
- const SearchEditorInputTypeId = 'workbench.editorinputs.searchEditorInput';
12
-
13
- export { InSearchEditor, OpenEditorCommandId, OpenNewEditorCommandId, SearchEditorFindMatchClass, SearchEditorID, SearchEditorInputTypeId, SearchEditorScheme, SearchEditorWorkingCopyTypeId, ToggleSearchEditorContextLinesCommandId };