@codingame/monaco-vscode-bulk-edit-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/bulkEdit.js +2 -2
- package/package.json +4 -4
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +14 -14
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkFileEdits.js +8 -8
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.js +12 -12
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/conflicts.js +7 -7
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEdit.contribution.js +11 -11
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPane.js +18 -18
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditPreview.js +20 -20
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEditTree.js +32 -32
package/bulkEdit.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SyncDescriptor } from '
|
|
2
|
-
import { IBulkEditService } from '
|
|
1
|
+
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
2
|
+
import { IBulkEditService } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
|
|
3
3
|
import { BulkEditService } from './vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js';
|
|
4
4
|
import './vscode/src/vs/workbench/contrib/bulkEdit/browser/preview/bulkEdit.contribution.js';
|
|
5
5
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-bulk-edit-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
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { CancellationToken } from '
|
|
3
|
-
import { toDisposable } from '
|
|
4
|
-
import { LinkedList } from '
|
|
5
|
-
import { ResourceMap, ResourceSet } from '
|
|
6
|
-
import { isCodeEditor, isDiffEditor } from '
|
|
7
|
-
import { ResourceTextEdit, ResourceFileEdit } from '
|
|
8
|
-
import { localizeWithPath } from '
|
|
9
|
-
import { IConfigurationService } from '
|
|
10
|
-
import { Extensions } from '
|
|
2
|
+
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
3
|
+
import { toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { LinkedList } from 'vscode/vscode/vs/base/common/linkedList';
|
|
5
|
+
import { ResourceMap, ResourceSet } from 'vscode/vscode/vs/base/common/map';
|
|
6
|
+
import { isCodeEditor, isDiffEditor } from 'vscode/vscode/vs/editor/browser/editorBrowser';
|
|
7
|
+
import { ResourceTextEdit, ResourceFileEdit } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
|
|
8
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
9
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
10
|
+
import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
11
11
|
import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
12
|
-
import { IInstantiationService } from '
|
|
13
|
-
import { ILogService } from '
|
|
14
|
-
import { Progress } from '
|
|
15
|
-
import { Registry } from '
|
|
16
|
-
import { UndoRedoGroup } from '
|
|
12
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
13
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
14
|
+
import { Progress } from 'vscode/vscode/vs/platform/progress/common/progress';
|
|
15
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
16
|
+
import { UndoRedoGroup } from 'vscode/vscode/vs/platform/undoRedo/common/undoRedo';
|
|
17
17
|
import { ResourceNotebookCellEdit, BulkCellEdits } from 'vscode/vscode/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits';
|
|
18
18
|
import { BulkFileEdits } from './bulkFileEdits.js';
|
|
19
19
|
import { BulkTextEdits } from './bulkTextEdits.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { IFileService } from '
|
|
3
|
-
import { IConfigurationService } from '
|
|
2
|
+
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files';
|
|
3
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
4
4
|
import { IWorkingCopyFileService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService';
|
|
5
|
-
import { IUndoRedoService } from '
|
|
6
|
-
import { IInstantiationService } from '
|
|
7
|
-
import { ILogService } from '
|
|
8
|
-
import { CancellationToken } from '
|
|
9
|
-
import { tail } from '
|
|
5
|
+
import { IUndoRedoService } from 'vscode/vscode/vs/platform/undoRedo/common/undoRedo';
|
|
6
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
7
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
8
|
+
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
9
|
+
import { tail } from 'vscode/vscode/vs/base/common/arrays';
|
|
10
10
|
import { ITextFileService } from 'vscode/vscode/vs/workbench/services/textfile/common/textfiles';
|
|
11
|
-
import { Schemas } from '
|
|
11
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
12
12
|
|
|
13
13
|
var RenameOperation_1;
|
|
14
14
|
class Noop {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { dispose } from '
|
|
3
|
-
import { EditOperation } from '
|
|
4
|
-
import { Range } from '
|
|
5
|
-
import { ITextModelService } from '
|
|
6
|
-
import { IEditorWorkerService } from '
|
|
7
|
-
import { IUndoRedoService } from '
|
|
8
|
-
import { SingleModelEditStackElement, MultiModelEditStackElement } from '
|
|
9
|
-
import { ResourceMap } from '
|
|
10
|
-
import { IModelService } from '
|
|
11
|
-
import { ResourceTextEdit } from '
|
|
12
|
-
import { SnippetController2 } from '
|
|
13
|
-
import { SnippetParser } from '
|
|
2
|
+
import { dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
+
import { EditOperation } from 'vscode/vscode/vs/editor/common/core/editOperation';
|
|
4
|
+
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
5
|
+
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
6
|
+
import { IEditorWorkerService } from 'vscode/vscode/vs/editor/common/services/editorWorker';
|
|
7
|
+
import { IUndoRedoService } from 'vscode/vscode/vs/platform/undoRedo/common/undoRedo';
|
|
8
|
+
import { SingleModelEditStackElement, MultiModelEditStackElement } from 'vscode/vscode/vs/editor/common/model/editStack';
|
|
9
|
+
import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
|
|
10
|
+
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
11
|
+
import { ResourceTextEdit } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
|
|
12
|
+
import { SnippetController2 } from 'vscode/vscode/vs/editor/contrib/snippet/browser/snippetController2';
|
|
13
|
+
import { SnippetParser } from 'vscode/vscode/vs/editor/contrib/snippet/browser/snippetParser';
|
|
14
14
|
|
|
15
15
|
class ModelEditTask {
|
|
16
16
|
constructor(_modelReference) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { IFileService } from '
|
|
3
|
-
import { IModelService } from '
|
|
4
|
-
import { ResourceMap } from '
|
|
5
|
-
import { DisposableStore } from '
|
|
6
|
-
import { Emitter } from '
|
|
7
|
-
import { ResourceTextEdit, ResourceFileEdit } from '
|
|
2
|
+
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files';
|
|
3
|
+
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
4
|
+
import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
|
|
5
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
7
|
+
import { ResourceTextEdit, ResourceFileEdit } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
|
|
8
8
|
import { ResourceNotebookCellEdit } from 'vscode/vscode/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits';
|
|
9
|
-
import { ILogService } from '
|
|
9
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
10
10
|
|
|
11
11
|
let ConflictDetector = class ConflictDetector {
|
|
12
12
|
constructor(edits, fileService, modelService, logService) {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.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
|
-
import { IBulkEditService } from '
|
|
4
|
+
import { IBulkEditService } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
|
|
5
5
|
import { BulkEditPane } from './bulkEditPane.js';
|
|
6
6
|
import { IViewsService, Extensions as Extensions$1 } from 'vscode/vscode/vs/workbench/common/views';
|
|
7
7
|
import { FocusedViewContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
8
|
-
import { localizeWithPath, localize2WithPath } from '
|
|
8
|
+
import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
9
9
|
import { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
10
|
-
import { RawContextKey, ContextKeyExpr, IContextKeyService } from '
|
|
10
|
+
import { RawContextKey, ContextKeyExpr, IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
11
11
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
12
12
|
import { BulkEditPreviewProvider } from './bulkEditPreview.js';
|
|
13
|
-
import { WorkbenchListFocusContextKey } from '
|
|
14
|
-
import { SyncDescriptor } from '
|
|
15
|
-
import { registerAction2, Action2, MenuId } from '
|
|
13
|
+
import { WorkbenchListFocusContextKey } from 'vscode/vscode/vs/platform/list/browser/listService';
|
|
14
|
+
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
15
|
+
import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
16
16
|
import { EditorResourceAccessor, SideBySideEditor } from 'vscode/vscode/vs/workbench/common/editor';
|
|
17
|
-
import { CancellationTokenSource } from '
|
|
17
|
+
import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
|
|
18
18
|
import '../../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
19
|
-
import Severity from '
|
|
20
|
-
import { Codicon } from '
|
|
21
|
-
import { registerIcon } from '
|
|
19
|
+
import Severity from 'vscode/vscode/vs/base/common/severity';
|
|
20
|
+
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
21
|
+
import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
|
|
22
22
|
import { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite';
|
|
23
23
|
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
24
24
|
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import './bulkEdit.css.js';
|
|
3
|
-
import { WorkbenchAsyncDataTree } from '
|
|
3
|
+
import { WorkbenchAsyncDataTree } from 'vscode/vscode/vs/platform/list/browser/listService';
|
|
4
4
|
import { BulkEditDataSource, BulkEditDelegate, TextEditElementRenderer, FileElementRenderer, CategoryElementRenderer, BulkEditAccessibilityProvider, BulkEditIdentityProvider, BulkEditNaviLabelProvider, BulkEditSorter, FileElement, CategoryElement, TextEditElement } from './bulkEditTree.js';
|
|
5
|
-
import { IInstantiationService } from '
|
|
6
|
-
import { IThemeService } from '
|
|
7
|
-
import { localizeWithPath } from '
|
|
8
|
-
import { DisposableStore } from '
|
|
5
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
|
+
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
7
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
8
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
9
9
|
import { SIDE_GROUP, ACTIVE_GROUP, IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
10
10
|
import { BulkFileOperations, BulkEditPreviewProvider } from './bulkEditPreview.js';
|
|
11
|
-
import { ILabelService } from '
|
|
12
|
-
import { ITextModelService } from '
|
|
11
|
+
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label';
|
|
12
|
+
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
13
13
|
import { ViewPane } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
14
|
-
import { IKeybindingService } from '
|
|
15
|
-
import { IContextMenuService } from '
|
|
16
|
-
import { IConfigurationService } from '
|
|
17
|
-
import { RawContextKey, IContextKeyService } from '
|
|
14
|
+
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding';
|
|
15
|
+
import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView';
|
|
16
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
17
|
+
import { RawContextKey, IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
18
18
|
import { ResourceLabels } from 'vscode/vscode/vs/workbench/browser/labels';
|
|
19
19
|
import '../../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
20
|
-
import { basename, dirname } from '
|
|
21
|
-
import { MenuId } from '
|
|
22
|
-
import { IStorageService } from '
|
|
20
|
+
import { basename, dirname } from 'vscode/vscode/vs/base/common/resources';
|
|
21
|
+
import { MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
22
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
23
23
|
import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views';
|
|
24
|
-
import { IOpenerService } from '
|
|
25
|
-
import { ITelemetryService } from '
|
|
26
|
-
import { ButtonBar } from '
|
|
27
|
-
import { defaultButtonStyles } from '
|
|
24
|
+
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener';
|
|
25
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
26
|
+
import { ButtonBar } from 'vscode/vscode/vs/base/browser/ui/button/button';
|
|
27
|
+
import { defaultButtonStyles } from 'vscode/vscode/vs/platform/theme/browser/defaultStyles';
|
|
28
28
|
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
29
29
|
|
|
30
30
|
var BulkEditPane_1;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { ITextModelService } from '
|
|
3
|
-
import { URI } from '
|
|
4
|
-
import { ILanguageService } from '
|
|
5
|
-
import { IModelService } from '
|
|
6
|
-
import { createTextBufferFactoryFromSnapshot } from '
|
|
7
|
-
import { DisposableStore } from '
|
|
8
|
-
import { coalesceInPlace } from '
|
|
9
|
-
import { Range } from '
|
|
10
|
-
import { EditOperation } from '
|
|
11
|
-
import { IInstantiationService } from '
|
|
12
|
-
import { IFileService } from '
|
|
13
|
-
import { Event, Emitter } from '
|
|
2
|
+
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
3
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
4
|
+
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
5
|
+
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
6
|
+
import { createTextBufferFactoryFromSnapshot } from 'vscode/vscode/vs/editor/common/model/textModel';
|
|
7
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
8
|
+
import { coalesceInPlace } from 'vscode/vscode/vs/base/common/arrays';
|
|
9
|
+
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
10
|
+
import { EditOperation } from 'vscode/vscode/vs/editor/common/core/editOperation';
|
|
11
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
12
|
+
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files';
|
|
13
|
+
import { Event, Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
14
14
|
import { ConflictDetector } from '../conflicts.js';
|
|
15
|
-
import { ResourceMap } from '
|
|
16
|
-
import { localizeWithPath } from '
|
|
17
|
-
import { extUri } from '
|
|
18
|
-
import { ResourceTextEdit, ResourceFileEdit } from '
|
|
19
|
-
import { Codicon } from '
|
|
20
|
-
import { generateUuid } from '
|
|
21
|
-
import { SnippetParser } from '
|
|
22
|
-
import { MicrotaskDelay } from '
|
|
15
|
+
import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
|
|
16
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
17
|
+
import { extUri } from 'vscode/vscode/vs/base/common/resources';
|
|
18
|
+
import { ResourceTextEdit, ResourceFileEdit } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
|
|
19
|
+
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
20
|
+
import { generateUuid } from 'vscode/vscode/vs/base/common/uuid';
|
|
21
|
+
import { SnippetParser } from 'vscode/vscode/vs/editor/contrib/snippet/browser/snippetParser';
|
|
22
|
+
import { MicrotaskDelay } from 'vscode/vscode/vs/base/common/symbols';
|
|
23
23
|
|
|
24
24
|
var BulkFileOperations_1, BulkEditPreviewProvider_1;
|
|
25
25
|
class CheckedStates {
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { ITextModelService } from '
|
|
3
|
-
import { createMatches } from '
|
|
4
|
-
import { HighlightedLabel } from '
|
|
5
|
-
import { Range } from '
|
|
6
|
-
import
|
|
7
|
-
import { DisposableStore } from '
|
|
8
|
-
import { TextModel } from '
|
|
2
|
+
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
3
|
+
import { createMatches } from 'vscode/vscode/vs/base/common/filters';
|
|
4
|
+
import { HighlightedLabel } from 'vscode/vscode/vs/base/browser/ui/highlightedlabel/highlightedLabel';
|
|
5
|
+
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
6
|
+
import { asCSSUrl, addDisposableListener } from 'vscode/vscode/vs/base/browser/dom';
|
|
7
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
8
|
+
import { TextModel } from 'vscode/vscode/vs/editor/common/model/textModel';
|
|
9
9
|
import { BulkFileOperations } from './bulkEditPreview.js';
|
|
10
|
-
import { FileKind } from '
|
|
11
|
-
import { localizeWithPath } from '
|
|
12
|
-
import { ILabelService } from '
|
|
13
|
-
import { IconLabel } from '
|
|
14
|
-
import { basename } from '
|
|
15
|
-
import { IThemeService } from '
|
|
16
|
-
import { ThemeIcon } from '
|
|
17
|
-
import { compare } from '
|
|
18
|
-
import { URI } from '
|
|
19
|
-
import { IUndoRedoService } from '
|
|
20
|
-
import { ResourceFileEdit } from '
|
|
21
|
-
import { ILanguageConfigurationService } from '
|
|
22
|
-
import { ILanguageService } from '
|
|
23
|
-
import { PLAINTEXT_LANGUAGE_ID } from '
|
|
24
|
-
import { SnippetParser } from '
|
|
10
|
+
import { FileKind } from 'vscode/vscode/vs/platform/files/common/files';
|
|
11
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
12
|
+
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label';
|
|
13
|
+
import { IconLabel } from 'vscode/vscode/vs/base/browser/ui/iconLabel/iconLabel';
|
|
14
|
+
import { basename } from 'vscode/vscode/vs/base/common/resources';
|
|
15
|
+
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
16
|
+
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
17
|
+
import { compare } from 'vscode/vscode/vs/base/common/strings';
|
|
18
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
19
|
+
import { IUndoRedoService } from 'vscode/vscode/vs/platform/undoRedo/common/undoRedo';
|
|
20
|
+
import { ResourceFileEdit } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
|
|
21
|
+
import { ILanguageConfigurationService } from 'vscode/vscode/vs/editor/common/languages/languageConfigurationRegistry';
|
|
22
|
+
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
23
|
+
import { PLAINTEXT_LANGUAGE_ID } from 'vscode/vscode/vs/editor/common/languages/modesRegistry';
|
|
24
|
+
import { SnippetParser } from 'vscode/vscode/vs/editor/contrib/snippet/browser/snippetParser';
|
|
25
25
|
|
|
26
26
|
var CategoryElementRenderer_1, FileElementRenderer_1, TextEditElementRenderer_1;
|
|
27
27
|
class CategoryElement {
|
|
@@ -402,13 +402,13 @@ let CategoryElementRenderer = class CategoryElementRenderer {
|
|
|
402
402
|
}
|
|
403
403
|
else if (URI.isUri(metadata.iconPath)) {
|
|
404
404
|
template.icon.className = 'uri-icon';
|
|
405
|
-
template.icon.style.setProperty('--background-dark',
|
|
406
|
-
template.icon.style.setProperty('--background-light',
|
|
405
|
+
template.icon.style.setProperty('--background-dark', asCSSUrl(metadata.iconPath));
|
|
406
|
+
template.icon.style.setProperty('--background-light', asCSSUrl(metadata.iconPath));
|
|
407
407
|
}
|
|
408
408
|
else if (metadata.iconPath) {
|
|
409
409
|
template.icon.className = 'uri-icon';
|
|
410
|
-
template.icon.style.setProperty('--background-dark',
|
|
411
|
-
template.icon.style.setProperty('--background-light',
|
|
410
|
+
template.icon.style.setProperty('--background-dark', asCSSUrl(metadata.iconPath.dark));
|
|
411
|
+
template.icon.style.setProperty('--background-light', asCSSUrl(metadata.iconPath.light));
|
|
412
412
|
}
|
|
413
413
|
template.label.setLabel(metadata.label, metadata.description, {
|
|
414
414
|
descriptionMatches: createMatches(node.filterData),
|
|
@@ -445,7 +445,7 @@ let FileElementTemplate = class FileElementTemplate {
|
|
|
445
445
|
this._localDisposables.clear();
|
|
446
446
|
this._checkbox.checked = element.isChecked();
|
|
447
447
|
this._checkbox.disabled = element.isDisabled();
|
|
448
|
-
this._localDisposables.add(
|
|
448
|
+
this._localDisposables.add(addDisposableListener(this._checkbox, 'change', () => {
|
|
449
449
|
element.setChecked(this._checkbox.checked);
|
|
450
450
|
}));
|
|
451
451
|
if (element.edit.type & 8 && element.edit.newUri) {
|
|
@@ -541,7 +541,7 @@ let TextEditElementTemplate = class TextEditElementTemplate {
|
|
|
541
541
|
}
|
|
542
542
|
set(element) {
|
|
543
543
|
this._localDisposables.clear();
|
|
544
|
-
this._localDisposables.add(
|
|
544
|
+
this._localDisposables.add(addDisposableListener(this._checkbox, 'change', e => {
|
|
545
545
|
element.setChecked(this._checkbox.checked);
|
|
546
546
|
e.preventDefault();
|
|
547
547
|
}));
|
|
@@ -589,13 +589,13 @@ let TextEditElementTemplate = class TextEditElementTemplate {
|
|
|
589
589
|
}
|
|
590
590
|
else if (URI.isUri(iconPath)) {
|
|
591
591
|
this._icon.className = 'uri-icon';
|
|
592
|
-
this._icon.style.setProperty('--background-dark',
|
|
593
|
-
this._icon.style.setProperty('--background-light',
|
|
592
|
+
this._icon.style.setProperty('--background-dark', asCSSUrl(iconPath));
|
|
593
|
+
this._icon.style.setProperty('--background-light', asCSSUrl(iconPath));
|
|
594
594
|
}
|
|
595
595
|
else {
|
|
596
596
|
this._icon.className = 'uri-icon';
|
|
597
|
-
this._icon.style.setProperty('--background-dark',
|
|
598
|
-
this._icon.style.setProperty('--background-light',
|
|
597
|
+
this._icon.style.setProperty('--background-dark', asCSSUrl(iconPath.dark));
|
|
598
|
+
this._icon.style.setProperty('--background-light', asCSSUrl(iconPath.light));
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
601
|
this._label.set(value, [selectHighlight, insertHighlight], title, true);
|