@codingame/monaco-vscode-search-service-override 1.85.6 → 2.0.0-v2.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.
- package/package.json +4 -4
- package/search.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +31 -31
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchContributions.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +16 -16
- package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js +11 -11
- package/vscode/src/vs/workbench/contrib/search/browser/replaceContributions.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +19 -19
- package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +79 -79
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +8 -8
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +26 -26
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsRemoveReplace.js +11 -11
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsSymbol.js +6 -6
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +12 -12
- package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +3 -3
- package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +13 -13
- package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +45 -45
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +152 -153
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +39 -39
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +13 -13
- package/vscode/src/vs/workbench/contrib/search/common/cacheState.js +2 -2
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +57 -57
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +11 -11
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorModel.js +7 -7
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +3 -3
- package/vscode/src/vs/workbench/services/search/common/searchService.js +18 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-search-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-v2.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git
|
|
12
|
+
"url": "git@github.com:CodinGame/monaco-vscode-api.git"
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|
|
15
15
|
"private": false,
|
|
@@ -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@
|
|
22
|
-
"
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@2.0.0-v2.1",
|
|
22
|
+
"vscode-marked": "npm:marked@=3.0.2"
|
|
23
23
|
}
|
|
24
24
|
}
|
package/search.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SyncDescriptor } from '
|
|
1
|
+
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
2
2
|
import { ISearchService } from 'vscode/vscode/vs/workbench/services/search/common/search';
|
|
3
3
|
import { SearchService } from './vscode/src/vs/workbench/services/search/common/searchService.js';
|
|
4
4
|
import { ISearchViewModelWorkbenchService, SearchViewModelWorkbenchService } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchModel';
|
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import './media/anythingQuickAccess.css.js';
|
|
3
|
-
import { QuickPickItemScorerAccessor, QuickInputHideReason, quickPickItemScorerAccessor, IQuickInputService } from '
|
|
3
|
+
import { QuickPickItemScorerAccessor, QuickInputHideReason, quickPickItemScorerAccessor, IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
|
|
4
4
|
import { PickerQuickAccessProvider, TriggerAction } from 'vscode/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
|
|
5
|
-
import { prepareQuery, compareItemsByFuzzyScore, scoreItemFuzzy } from '
|
|
5
|
+
import { prepareQuery, compareItemsByFuzzyScore, scoreItemFuzzy } from 'vscode/vscode/vs/base/common/fuzzyScorer';
|
|
6
6
|
import { QueryBuilder } from 'vscode/vscode/vs/workbench/services/search/common/queryBuilder';
|
|
7
|
-
import { IInstantiationService } from '
|
|
7
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
8
|
import { extractRangeFromFilter, getOutOfWorkspaceEditorResources } from 'vscode/vscode/vs/workbench/contrib/search/common/search';
|
|
9
9
|
import { ISearchService } from 'vscode/vscode/vs/workbench/services/search/common/search';
|
|
10
|
-
import { IWorkspaceContextService } from '
|
|
11
|
-
import { untildify } from '
|
|
10
|
+
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
11
|
+
import { untildify } from 'vscode/vscode/vs/base/common/labels';
|
|
12
12
|
import { IPathService } from 'vscode/vscode/vs/workbench/services/path/common/pathService';
|
|
13
|
-
import { URI } from '
|
|
14
|
-
import { toLocalResource, basenameOrAuthority, dirname } from '
|
|
13
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
14
|
+
import { toLocalResource, basenameOrAuthority, dirname } from 'vscode/vscode/vs/base/common/resources';
|
|
15
15
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
16
|
-
import { IFileService } from '
|
|
17
|
-
import { DisposableStore, MutableDisposable, Disposable, toDisposable } from '
|
|
18
|
-
import { ILabelService } from '
|
|
19
|
-
import { getIconClasses } from '
|
|
20
|
-
import { IModelService } from '
|
|
21
|
-
import { ILanguageService } from '
|
|
22
|
-
import { localizeWithPath } from '
|
|
16
|
+
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files';
|
|
17
|
+
import { DisposableStore, MutableDisposable, Disposable, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
18
|
+
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label';
|
|
19
|
+
import { getIconClasses } from 'vscode/vscode/vs/editor/common/services/getIconClasses';
|
|
20
|
+
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
21
|
+
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
22
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
23
23
|
import { IWorkingCopyService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyService';
|
|
24
|
-
import { IConfigurationService } from '
|
|
24
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
25
25
|
import { isEditorInput, EditorResourceAccessor } from 'vscode/vscode/vs/workbench/common/editor';
|
|
26
26
|
import { SIDE_GROUP, ACTIVE_GROUP, IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
27
|
-
import { Range } from '
|
|
28
|
-
import { ThrottledDelayer } from '
|
|
29
|
-
import { top } from '
|
|
27
|
+
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
28
|
+
import { ThrottledDelayer } from 'vscode/vscode/vs/base/common/async';
|
|
29
|
+
import { top } from 'vscode/vscode/vs/base/common/arrays';
|
|
30
30
|
import { FileQueryCacheState } from '../common/cacheState.js';
|
|
31
31
|
import { IHistoryService } from 'vscode/vscode/vs/workbench/services/history/common/history';
|
|
32
|
-
import { Schemas } from '
|
|
32
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
33
33
|
import { IFilesConfigurationService } from 'vscode/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService';
|
|
34
|
-
import { ResourceMap } from '
|
|
34
|
+
import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
|
|
35
35
|
import { SymbolsQuickAccessProvider } from './symbolsQuickAccess.js';
|
|
36
|
-
import { DefaultQuickAccessFilterValue, Extensions } from '
|
|
36
|
+
import { DefaultQuickAccessFilterValue, Extensions } from 'vscode/vscode/vs/platform/quickinput/common/quickAccess';
|
|
37
37
|
import { GotoSymbolQuickAccessProvider } from 'vscode/vscode/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess';
|
|
38
|
-
import { ITextModelService } from '
|
|
39
|
-
import { Event } from '
|
|
40
|
-
import { getIEditor } from '
|
|
41
|
-
import { Codicon } from '
|
|
42
|
-
import { ThemeIcon } from '
|
|
43
|
-
import { IUriIdentityService } from '
|
|
44
|
-
import { stripIcons } from '
|
|
45
|
-
import { Lazy } from '
|
|
46
|
-
import { IKeybindingService } from '
|
|
47
|
-
import { Registry } from '
|
|
38
|
+
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
39
|
+
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
40
|
+
import { getIEditor } from 'vscode/vscode/vs/editor/browser/editorBrowser';
|
|
41
|
+
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
42
|
+
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
43
|
+
import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity';
|
|
44
|
+
import { stripIcons } from 'vscode/vscode/vs/base/common/iconLabels';
|
|
45
|
+
import { Lazy } from 'vscode/vscode/vs/base/common/lazy';
|
|
46
|
+
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding';
|
|
47
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
48
48
|
import { ASK_QUICK_QUESTION_ACTION_ID } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions';
|
|
49
49
|
import { IQuickChatService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
50
50
|
|
package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchContributions.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReplacePreviewContentProvider } from '../replaceService.js';
|
|
2
|
-
import { Registry } from '
|
|
2
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
3
3
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
4
4
|
|
|
5
5
|
function registerContributions() {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import
|
|
3
|
-
import { Toggle } from '
|
|
4
|
-
import { Widget } from '
|
|
5
|
-
import { Codicon } from '
|
|
6
|
-
import { Emitter } from '
|
|
7
|
-
import
|
|
8
|
-
import { ContextScopedHistoryInputBox } from '
|
|
9
|
-
import { showHistoryKeybindingHint } from '
|
|
10
|
-
import { IConfigurationService } from '
|
|
11
|
-
import { IContextKeyService } from '
|
|
12
|
-
import { IKeybindingService } from '
|
|
13
|
-
import { defaultToggleStyles } from '
|
|
2
|
+
import { trackFocus } from 'vscode/vscode/vs/base/browser/dom';
|
|
3
|
+
import { Toggle } from 'vscode/vscode/vs/base/browser/ui/toggle/toggle';
|
|
4
|
+
import { Widget } from 'vscode/vscode/vs/base/browser/ui/widget';
|
|
5
|
+
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
6
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
7
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
8
|
+
import { ContextScopedHistoryInputBox } from 'vscode/vscode/vs/platform/history/browser/contextScopedHistoryWidget';
|
|
9
|
+
import { showHistoryKeybindingHint } from 'vscode/vscode/vs/platform/history/browser/historyWidgetKeybindingHint';
|
|
10
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
11
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
12
|
+
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding';
|
|
13
|
+
import { defaultToggleStyles } from 'vscode/vscode/vs/platform/theme/browser/defaultStyles';
|
|
14
14
|
|
|
15
15
|
let PatternInputWidget = class PatternInputWidget extends Widget {
|
|
16
16
|
static { this.OPTION_CHANGE = 'optionChange'; }
|
|
@@ -26,7 +26,7 @@ let PatternInputWidget = class PatternInputWidget extends Widget {
|
|
|
26
26
|
this.onCancel = this._onCancel.event;
|
|
27
27
|
options = {
|
|
28
28
|
...{
|
|
29
|
-
ariaLabel: (
|
|
29
|
+
ariaLabel: ( localizeWithPath(
|
|
30
30
|
'vs/workbench/contrib/search/browser/patternInputWidget',
|
|
31
31
|
'defaultLabel',
|
|
32
32
|
"input"
|
|
@@ -107,7 +107,7 @@ let PatternInputWidget = class PatternInputWidget extends Widget {
|
|
|
107
107
|
inputBoxStyles: options.inputBoxStyles
|
|
108
108
|
}, this.contextKeyService));
|
|
109
109
|
this._register(this.inputBox.onDidChange(() => this._onSubmit.fire(true)));
|
|
110
|
-
this.inputFocusTracker =
|
|
110
|
+
this.inputFocusTracker = trackFocus(this.inputBox.inputElement);
|
|
111
111
|
this.onkeyup(this.inputBox.inputElement, (keyboardEvent) => this.onInputKeyUp(keyboardEvent));
|
|
112
112
|
const controls = document.createElement('div');
|
|
113
113
|
controls.className = 'controls';
|
|
@@ -157,7 +157,7 @@ let IncludePatternInputWidget = class IncludePatternInputWidget extends PatternI
|
|
|
157
157
|
renderSubcontrols(controlsDiv) {
|
|
158
158
|
this.useSearchInEditorsBox = this._register(( new Toggle({
|
|
159
159
|
icon: Codicon.book,
|
|
160
|
-
title: (
|
|
160
|
+
title: ( localizeWithPath(
|
|
161
161
|
'vs/workbench/contrib/search/browser/patternInputWidget',
|
|
162
162
|
'onlySearchInOpenEditors',
|
|
163
163
|
"Search only in Open Editors"
|
|
@@ -204,7 +204,7 @@ let ExcludePatternInputWidget = class ExcludePatternInputWidget extends PatternI
|
|
|
204
204
|
this.useExcludesAndIgnoreFilesBox = this._register(( new Toggle({
|
|
205
205
|
icon: Codicon.exclude,
|
|
206
206
|
actionClassName: 'useExcludesAndIgnoreFiles',
|
|
207
|
-
title: (
|
|
207
|
+
title: ( localizeWithPath(
|
|
208
208
|
'vs/workbench/contrib/search/browser/patternInputWidget',
|
|
209
209
|
'useExcludesAndIgnoreFilesDescription',
|
|
210
210
|
"Use Exclude Settings and Ignore Files"
|
package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { DisposableStore } from '
|
|
3
|
-
import { ResourceSet } from '
|
|
4
|
-
import { basenameOrAuthority, dirname } from '
|
|
5
|
-
import { ThemeIcon } from '
|
|
6
|
-
import { localizeWithPath } from '
|
|
7
|
-
import { IConfigurationService } from '
|
|
8
|
-
import { IInstantiationService } from '
|
|
9
|
-
import { ILabelService } from '
|
|
10
|
-
import { getSelectionKeyboardEvent } from '
|
|
2
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
+
import { ResourceSet } from 'vscode/vscode/vs/base/common/map';
|
|
4
|
+
import { basenameOrAuthority, dirname } from 'vscode/vscode/vs/base/common/resources';
|
|
5
|
+
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
6
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
7
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
8
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
9
|
+
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label';
|
|
10
|
+
import { getSelectionKeyboardEvent } from 'vscode/vscode/vs/platform/list/browser/listService';
|
|
11
11
|
import { PickerQuickAccessProvider } from 'vscode/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
|
|
12
|
-
import { DefaultQuickAccessFilterValue } from '
|
|
13
|
-
import { IWorkspaceContextService } from '
|
|
12
|
+
import { DefaultQuickAccessFilterValue } from 'vscode/vscode/vs/platform/quickinput/common/quickAccess';
|
|
13
|
+
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
14
14
|
import { IViewsService } from 'vscode/vscode/vs/workbench/common/views';
|
|
15
15
|
import { searchDetailsIcon, searchOpenInFileIcon } from '../searchIcons.js';
|
|
16
16
|
import { SearchModel, searchComparer } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchModel';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReplacePreviewContentProvider } from './replaceService.js';
|
|
2
|
-
import { Registry } from '
|
|
2
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
3
3
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
4
4
|
|
|
5
5
|
function registerContributions() {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { Disposable } from '
|
|
2
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
4
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
5
|
import { IReplaceService } from 'vscode/vscode/vs/workbench/contrib/search/browser/replace';
|
|
6
6
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
7
|
-
import { IModelService } from '
|
|
8
|
-
import { ILanguageService } from '
|
|
7
|
+
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
8
|
+
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
9
9
|
import { Match, MatchInNotebook, FileMatch, ISearchViewModelWorkbenchService } from 'vscode/vscode/vs/workbench/contrib/search/browser/searchModel';
|
|
10
|
-
import { ITextModelService } from '
|
|
11
|
-
import { IInstantiationService } from '
|
|
12
|
-
import { createTextBufferFactoryFromSnapshot } from '
|
|
10
|
+
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
11
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
12
|
+
import { createTextBufferFactoryFromSnapshot } from 'vscode/vscode/vs/editor/common/model/textModel';
|
|
13
13
|
import { ITextFileService } from 'vscode/vscode/vs/workbench/services/textfile/common/textfiles';
|
|
14
|
-
import { ResourceTextEdit, IBulkEditService } from '
|
|
15
|
-
import { Range } from '
|
|
16
|
-
import { EditOperation } from '
|
|
17
|
-
import { ILabelService } from '
|
|
18
|
-
import { dirname } from '
|
|
19
|
-
import { Promises } from '
|
|
14
|
+
import { ResourceTextEdit, IBulkEditService } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
|
|
15
|
+
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
16
|
+
import { EditOperation } from 'vscode/vscode/vs/editor/common/core/editOperation';
|
|
17
|
+
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label';
|
|
18
|
+
import { dirname } from 'vscode/vscode/vs/base/common/resources';
|
|
19
|
+
import { Promises } from 'vscode/vscode/vs/base/common/async';
|
|
20
20
|
import { SaveSourceRegistry } from 'vscode/vscode/vs/workbench/common/editor';
|
|
21
21
|
import { CellUri } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
22
22
|
import { INotebookEditorModelResolverService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService';
|
|
@@ -24,7 +24,7 @@ import { INotebookEditorModelResolverService } from 'vscode/vscode/vs/workbench/
|
|
|
24
24
|
var ReplaceService_1;
|
|
25
25
|
const REPLACE_PREVIEW = 'replacePreview';
|
|
26
26
|
const toReplaceResource = (fileResource) => {
|
|
27
|
-
return fileResource.with({ scheme:
|
|
27
|
+
return fileResource.with({ scheme: Schemas.internal, fragment: REPLACE_PREVIEW, query: JSON.stringify({ scheme: fileResource.scheme }) });
|
|
28
28
|
};
|
|
29
29
|
const toFileResource = (replaceResource) => {
|
|
30
30
|
return replaceResource.with({ scheme: JSON.parse(replaceResource.query)['scheme'], fragment: '', query: '' });
|
|
@@ -33,7 +33,7 @@ let ReplacePreviewContentProvider = class ReplacePreviewContentProvider {
|
|
|
33
33
|
constructor(instantiationService, textModelResolverService) {
|
|
34
34
|
this.instantiationService = instantiationService;
|
|
35
35
|
this.textModelResolverService = textModelResolverService;
|
|
36
|
-
this.textModelResolverService.registerTextModelContentProvider(
|
|
36
|
+
this.textModelResolverService.registerTextModelContentProvider(Schemas.internal, this);
|
|
37
37
|
}
|
|
38
38
|
provideTextContent(uri) {
|
|
39
39
|
if (uri.fragment === REPLACE_PREVIEW) {
|
|
@@ -84,7 +84,7 @@ ReplacePreviewModel = ( __decorate([
|
|
|
84
84
|
], ReplacePreviewModel));
|
|
85
85
|
let ReplaceService = class ReplaceService {
|
|
86
86
|
static { ReplaceService_1 = this; }
|
|
87
|
-
static { this.REPLACE_SAVE_SOURCE = SaveSourceRegistry.registerSource('searchReplace.source', (
|
|
87
|
+
static { this.REPLACE_SAVE_SOURCE = SaveSourceRegistry.registerSource('searchReplace.source', ( localizeWithPath(
|
|
88
88
|
'vs/workbench/contrib/search/browser/replaceService',
|
|
89
89
|
'searchReplace.source',
|
|
90
90
|
"Search and Replace"
|
|
@@ -101,7 +101,7 @@ let ReplaceService = class ReplaceService {
|
|
|
101
101
|
const edits = this.createEdits(arg, resource);
|
|
102
102
|
await this.bulkEditorService.apply(edits, { progress });
|
|
103
103
|
const rawTextPromises = ( edits.map(async (e) => {
|
|
104
|
-
if (e.resource.scheme ===
|
|
104
|
+
if (e.resource.scheme === Schemas.vscodeNotebookCell) {
|
|
105
105
|
const notebookResource = CellUri.parse(e.resource)?.notebook;
|
|
106
106
|
if (notebookResource) {
|
|
107
107
|
let ref;
|
|
@@ -126,7 +126,7 @@ let ReplaceService = class ReplaceService {
|
|
|
126
126
|
const editor = await this.editorService.openEditor({
|
|
127
127
|
original: { resource: fileMatch.resource },
|
|
128
128
|
modified: { resource: toReplaceResource(fileMatch.resource) },
|
|
129
|
-
label: (
|
|
129
|
+
label: ( localizeWithPath(
|
|
130
130
|
'vs/workbench/contrib/search/browser/replaceService',
|
|
131
131
|
'fileReplaceChanges',
|
|
132
132
|
"{0} ↔ {1} (Replace Preview)",
|