@codingame/monaco-vscode-api 2.2.0-next.2 → 2.2.0-next.4
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/api.js +1 -1
- package/extensions.d.ts +2 -1
- package/extensions.js +9 -1
- package/missing-services.js +2 -2
- package/package.json +8 -8
- package/service-override/tools/views.d.ts +5 -2
- package/service-override/tools/views.js +7 -5
- package/services.js +2 -2
- package/vscode/src/vs/base/browser/ui/table/tableWidget.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +2 -2
- package/vscode/src/vs/base/common/labels.js +2 -2
- package/vscode/src/vs/base/common/lifecycle.js +1 -119
- package/vscode/src/vs/base/common/network.js +1 -1
- package/vscode/src/vs/editor/browser/editorExtensions.js +1 -1
- package/vscode/src/vs/editor/browser/view.js +1 -1
- package/vscode/src/vs/editor/common/config/editorOptions.js +5 -5
- package/vscode/src/vs/editor/common/viewModel/modelLineProjection.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +2 -2
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +1 -1
- package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +2 -2
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +1 -8
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocument.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostQuickOpen.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +3 -3
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +2 -2
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +3 -3
- package/vscode/src/vs/workbench/browser/part.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +1 -1
- package/vscode/src/vs/workbench/common/views.d.ts +94 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +1 -1
package/api.js
CHANGED
package/extensions.d.ts
CHANGED
|
@@ -120,9 +120,10 @@ interface RegisterLocalProcessExtensionResult extends RegisterLocalExtensionResu
|
|
|
120
120
|
}
|
|
121
121
|
declare function registerRemoteExtension(directory: string): Promise<RegisterRemoteExtensionResult>;
|
|
122
122
|
declare function getExtensionManifests(): IExtension[];
|
|
123
|
+
declare function getForcedExtensionHostKind(id: string): ExtensionHostKind | undefined;
|
|
123
124
|
declare function registerExtension(manifest: IExtensionManifest, extHostKind: ExtensionHostKind.LocalProcess, params?: RegisterExtensionParams): RegisterLocalProcessExtensionResult;
|
|
124
125
|
declare function registerExtension(manifest: IExtensionManifest, extHostKind: ExtensionHostKind.LocalWebWorker, params?: RegisterExtensionParams): RegisterLocalExtensionResult;
|
|
125
126
|
declare function registerExtension(manifest: IExtensionManifest, extHostKind: ExtensionHostKind.Remote, params?: RegisterRemoteExtensionParams): RegisterRemoteExtensionResult;
|
|
126
127
|
declare function registerExtension(manifest: IExtensionManifest, extHostKind?: ExtensionHostKind, params?: RegisterExtensionParams): RegisterExtensionResult;
|
|
127
128
|
|
|
128
|
-
export { type ApiFactory, ExtensionHostKind, IExtensionManifest, getExtensionManifests, registerExtension, registerLocalApiFactory, registerRemoteExtension };
|
|
129
|
+
export { type ApiFactory, ExtensionHostKind, IExtensionManifest, getExtensionManifests, getForcedExtensionHostKind, registerExtension, registerLocalApiFactory, registerRemoteExtension };
|
package/extensions.js
CHANGED
|
@@ -50,10 +50,14 @@ async function registerRemoteExtension(directory) {
|
|
|
50
50
|
const manifest = parse(( content.value.toString()));
|
|
51
51
|
return registerExtension(manifest, 3 , { path: directory });
|
|
52
52
|
}
|
|
53
|
+
const forcedExtensionHostKinds = new Map();
|
|
53
54
|
const extensions = [];
|
|
54
55
|
function getExtensionManifests() {
|
|
55
56
|
return extensions;
|
|
56
57
|
}
|
|
58
|
+
function getForcedExtensionHostKind(id) {
|
|
59
|
+
return forcedExtensionHostKinds.get(id);
|
|
60
|
+
}
|
|
57
61
|
function registerExtension(manifest, extHostKind, { path = '/', system = false, readmePath, changelogPath } = {}) {
|
|
58
62
|
const id = getExtensionId(manifest.publisher, manifest.name);
|
|
59
63
|
const location = ( URI.from({ scheme: CustomSchemas.extensionFile, authority: id, path }));
|
|
@@ -79,6 +83,9 @@ function registerExtension(manifest, extHostKind, { path = '/', system = false,
|
|
|
79
83
|
readmeUrl: readmePath != null ? URI.joinPath(realLocation, readmePath) : undefined,
|
|
80
84
|
changelogUrl: changelogPath != null ? URI.joinPath(realLocation, changelogPath) : undefined
|
|
81
85
|
};
|
|
86
|
+
if (extHostKind != null) {
|
|
87
|
+
forcedExtensionHostKinds.set(id, extHostKind);
|
|
88
|
+
}
|
|
82
89
|
if (extHostKind !== 3 ) {
|
|
83
90
|
extensions.push(extension);
|
|
84
91
|
}
|
|
@@ -104,6 +111,7 @@ function registerExtension(manifest, extHostKind, { path = '/', system = false,
|
|
|
104
111
|
if (index >= 0) {
|
|
105
112
|
extensions.splice(extensions.indexOf(extension), 1);
|
|
106
113
|
}
|
|
114
|
+
forcedExtensionHostKinds.delete(id);
|
|
107
115
|
await deltaExtensions({ toAdd: [], toRemove: [extension] });
|
|
108
116
|
}
|
|
109
117
|
};
|
|
@@ -134,4 +142,4 @@ function registerExtension(manifest, extHostKind, { path = '/', system = false,
|
|
|
134
142
|
}
|
|
135
143
|
return api;
|
|
136
144
|
}
|
|
137
|
-
export { getExtensionManifests, registerExtension, registerLocalApiFactory, registerRemoteExtension };
|
|
145
|
+
export { getExtensionManifests, getForcedExtensionHostKind, registerExtension, registerLocalApiFactory, registerRemoteExtension };
|
package/missing-services.js
CHANGED
|
@@ -525,8 +525,8 @@ registerSingleton(IPathService, BrowserPathService, 1 );
|
|
|
525
525
|
registerSingleton(IProductService, class ProductService {
|
|
526
526
|
constructor() {
|
|
527
527
|
this._serviceBrand = undefined;
|
|
528
|
-
this.version = "1.86.
|
|
529
|
-
this.commit = "1.86.
|
|
528
|
+
this.version = "1.86.2";
|
|
529
|
+
this.commit = "1.86.2";
|
|
530
530
|
this.quality = 'oss';
|
|
531
531
|
this.nameShort = 'Code - OSS Dev';
|
|
532
532
|
this.nameLong = 'Code - OSS Dev';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "2.2.0-next.
|
|
3
|
+
"version": "2.2.0-next.4",
|
|
4
4
|
"description": "VSCode public API plugged on the monaco editor",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": {
|
|
@@ -96,12 +96,12 @@
|
|
|
96
96
|
"dependencies": {
|
|
97
97
|
"vscode-marked": "npm:marked@=3.0.2",
|
|
98
98
|
"vscode-semver": "npm:semver@=5.5.0",
|
|
99
|
-
"@codingame/monaco-vscode-
|
|
100
|
-
"@codingame/monaco-vscode-
|
|
101
|
-
"@codingame/monaco-vscode-
|
|
102
|
-
"@codingame/monaco-vscode-environment-service-override": "2.2.0-next.
|
|
103
|
-
"@codingame/monaco-vscode-layout-service-override": "2.2.0-next.
|
|
104
|
-
"@codingame/monaco-vscode-host-service-override": "2.2.0-next.
|
|
105
|
-
"@codingame/monaco-vscode-base-service-override": "2.2.0-next.
|
|
99
|
+
"@codingame/monaco-vscode-extensions-service-override": "2.2.0-next.4",
|
|
100
|
+
"@codingame/monaco-vscode-files-service-override": "2.2.0-next.4",
|
|
101
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "2.2.0-next.4",
|
|
102
|
+
"@codingame/monaco-vscode-environment-service-override": "2.2.0-next.4",
|
|
103
|
+
"@codingame/monaco-vscode-layout-service-override": "2.2.0-next.4",
|
|
104
|
+
"@codingame/monaco-vscode-host-service-override": "2.2.0-next.4",
|
|
105
|
+
"@codingame/monaco-vscode-base-service-override": "2.2.0-next.4"
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ViewContainerLocation, ViewContainer } from '../../vscode/src/vs/workbench/common/views.js';
|
|
1
|
+
import { ViewContainerLocation, ViewContainer, IViewContainersRegistry, IViewsRegistry } from '../../vscode/src/vs/workbench/common/views.js';
|
|
2
|
+
export { IViewContainerDescriptor, IViewDescriptor } from '../../vscode/src/vs/workbench/common/views.js';
|
|
2
3
|
import { BrandedService, ServicesAccessor } from '../../vscode/src/vs/platform/instantiation/common/instantiation.js';
|
|
3
4
|
import { IDisposable } from '../../vscode/src/vs/base/common/lifecycle.js';
|
|
4
5
|
import { Dimension } from '../../vscode/src/vs/base/browser/dom.js';
|
|
@@ -87,6 +88,8 @@ interface CustomViewOption {
|
|
|
87
88
|
hideByDefault?: boolean;
|
|
88
89
|
collapsed?: boolean;
|
|
89
90
|
}
|
|
91
|
+
declare const viewContainerRegistry: IViewContainersRegistry;
|
|
92
|
+
declare const viewRegistry: IViewsRegistry;
|
|
90
93
|
declare function registerCustomView(options: CustomViewOption): IDisposable;
|
|
91
94
|
declare function isPartVisibile(part: Parts): boolean;
|
|
92
95
|
declare function setPartVisibility(part: Exclude<Parts, Parts.STATUSBAR_PART | Parts.TITLEBAR_PART>, visible: boolean): void;
|
|
@@ -95,4 +98,4 @@ declare function getPanelPosition(): Position;
|
|
|
95
98
|
declare const onDidChangeSideBarPosition: Event<string>;
|
|
96
99
|
declare function getSideBarPosition(): Position;
|
|
97
100
|
|
|
98
|
-
export { type CustomViewOption, EditorInput, EditorInputCapabilities, EditorInputFactoryObject, EditorPane, IEditorCloseHandler, IEditorSerializer, Parts, RegisteredEditorInfo, RegisteredEditorOptions, SimpleEditorInput, SimpleEditorPane, ViewContainerLocation, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility };
|
|
101
|
+
export { type CustomViewOption, EditorInput, EditorInputCapabilities, EditorInputFactoryObject, EditorPane, IEditorCloseHandler, IEditorSerializer, Parts, RegisteredEditorInfo, RegisteredEditorOptions, SimpleEditorInput, SimpleEditorPane, ViewContainer, ViewContainerLocation, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry };
|
|
@@ -143,9 +143,11 @@ function registerEditor(globPattern, editorInfo, editorOptions, factory) {
|
|
|
143
143
|
function registerEditorSerializer(editorTypeId, ctor) {
|
|
144
144
|
return ( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(editorTypeId, ctor);
|
|
145
145
|
}
|
|
146
|
+
const viewContainerRegistry = ( Registry.as(Extensions.ViewContainersRegistry));
|
|
147
|
+
const viewRegistry = ( Registry.as(Extensions.ViewsRegistry));
|
|
146
148
|
function registerCustomView(options) {
|
|
147
149
|
const iconUrl = options.icon != null ? ( URI.parse(options.icon)) : undefined;
|
|
148
|
-
const viewContainer = options.viewContainer ??
|
|
150
|
+
const viewContainer = options.viewContainer ?? viewContainerRegistry.registerViewContainer({
|
|
149
151
|
id: options.id,
|
|
150
152
|
title: { value: options.name, original: options.name },
|
|
151
153
|
order: options.order,
|
|
@@ -194,13 +196,13 @@ function registerCustomView(options) {
|
|
|
194
196
|
order: options.order,
|
|
195
197
|
containerIcon: iconUrl
|
|
196
198
|
}];
|
|
197
|
-
|
|
199
|
+
viewRegistry.registerViews(views, viewContainer);
|
|
198
200
|
const disposableCollection = new DisposableStore();
|
|
199
201
|
disposableCollection.add({
|
|
200
202
|
dispose() {
|
|
201
|
-
|
|
203
|
+
viewRegistry.deregisterViews(views, viewContainer);
|
|
202
204
|
if (options.viewContainer == null) {
|
|
203
|
-
|
|
205
|
+
viewContainerRegistry.deregisterViewContainer(viewContainer);
|
|
204
206
|
}
|
|
205
207
|
}
|
|
206
208
|
});
|
|
@@ -246,4 +248,4 @@ const onDidChangeSideBarPosition = (listener) => {
|
|
|
246
248
|
function getSideBarPosition() {
|
|
247
249
|
return StandaloneServices.get(IWorkbenchLayoutService).getSideBarPosition();
|
|
248
250
|
}
|
|
249
|
-
export { EditorInput, EditorPane, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility };
|
|
251
|
+
export { EditorInput, EditorPane, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry };
|
package/services.js
CHANGED
|
@@ -145,9 +145,9 @@ async function initialize(overrides, container = document.body, configuration =
|
|
|
145
145
|
initialize$1(container, configuration);
|
|
146
146
|
const instantiationService = StandaloneServices.initialize({
|
|
147
147
|
[( IProductService.toString())]: mixin({
|
|
148
|
-
version: "1.86.
|
|
148
|
+
version: "1.86.2",
|
|
149
149
|
quality: 'oss',
|
|
150
|
-
commit: "1.86.
|
|
150
|
+
commit: "1.86.2",
|
|
151
151
|
nameShort: 'Code - OSS Dev',
|
|
152
152
|
nameLong: 'Code - OSS Dev',
|
|
153
153
|
applicationName: 'code-oss',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { append, $,
|
|
1
|
+
import { append, $, createStyleSheet, getContentHeight, getContentWidth, clearNode } from '../../dom.js';
|
|
2
2
|
import { List, unthemedListStyles } from '../list/listWidget.js';
|
|
3
3
|
import { SplitView } from '../splitview/splitview.js';
|
|
4
4
|
import { Event, Emitter } from '../../../common/event.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createStyleSheet, isActiveElement, asCssValueWithDefault, isKeyboardEvent, append, $, clearNode, hasParentWithClass, h, getWindow } from '../../dom.js';
|
|
2
2
|
import { DomEmitter } from '../../event.js';
|
|
3
3
|
import { StandardKeyboardEvent } from '../../keyboardEvent.js';
|
|
4
4
|
import { ActionBar } from '../actionbar/actionbar.js';
|
|
@@ -17,7 +17,7 @@ import { ThemeIcon } from '../../../common/themables.js';
|
|
|
17
17
|
import { SetMap } from '../../../common/map.js';
|
|
18
18
|
import { Event, EventBufferer, Emitter, Relay } from '../../../common/event.js';
|
|
19
19
|
import { FuzzyScore, fuzzyScore } from '../../../common/filters.js';
|
|
20
|
-
import {
|
|
20
|
+
import { DisposableStore, dispose, Disposable, toDisposable } from '../../../common/lifecycle.js';
|
|
21
21
|
import { clamp } from '../../../common/numbers.js';
|
|
22
22
|
import { isNumber } from '../../../common/types.js';
|
|
23
23
|
import './media/tree.css.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { firstOrDefault } from './arrays.js';
|
|
2
2
|
import { hasDriveLetter, toSlashes } from './extpath.js';
|
|
3
|
-
import {
|
|
4
|
-
import { isWindows,
|
|
3
|
+
import { sep, posix, win32 } from './path.js';
|
|
4
|
+
import { isWindows, isMacintosh, OS } from './platform.js';
|
|
5
5
|
import { extUri, extUriIgnorePathCase } from './resources.js';
|
|
6
6
|
import { rtrim, startsWithIgnoreCase } from './strings.js';
|
|
7
7
|
function getPathLabel(resource, formatting) {
|
|
@@ -1,123 +1,5 @@
|
|
|
1
|
-
import { compareBy, numberComparator } from './arrays.js';
|
|
2
|
-
import { groupBy } from './collections.js';
|
|
3
|
-
import { SetMap } from './map.js';
|
|
4
1
|
import { createSingleCallFunction } from './functional.js';
|
|
5
2
|
import { Iterable } from './iterator.js';
|
|
6
|
-
class DisposableTracker {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.livingDisposables = ( new Map());
|
|
9
|
-
}
|
|
10
|
-
static { this.idx = 0; }
|
|
11
|
-
getDisposableData(d) {
|
|
12
|
-
let val = this.livingDisposables.get(d);
|
|
13
|
-
if (!val) {
|
|
14
|
-
val = { parent: null, source: null, isSingleton: false, value: d, idx: DisposableTracker.idx++ };
|
|
15
|
-
this.livingDisposables.set(d, val);
|
|
16
|
-
}
|
|
17
|
-
return val;
|
|
18
|
-
}
|
|
19
|
-
trackDisposable(d) {
|
|
20
|
-
const data = this.getDisposableData(d);
|
|
21
|
-
if (!data.source) {
|
|
22
|
-
data.source =
|
|
23
|
-
( new Error()).stack;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
setParent(child, parent) {
|
|
27
|
-
const data = this.getDisposableData(child);
|
|
28
|
-
data.parent = parent;
|
|
29
|
-
}
|
|
30
|
-
markAsDisposed(x) {
|
|
31
|
-
this.livingDisposables.delete(x);
|
|
32
|
-
}
|
|
33
|
-
markAsSingleton(disposable) {
|
|
34
|
-
this.getDisposableData(disposable).isSingleton = true;
|
|
35
|
-
}
|
|
36
|
-
getRootParent(data, cache) {
|
|
37
|
-
const cacheValue = cache.get(data);
|
|
38
|
-
if (cacheValue) {
|
|
39
|
-
return cacheValue;
|
|
40
|
-
}
|
|
41
|
-
const result = data.parent ? this.getRootParent(this.getDisposableData(data.parent), cache) : data;
|
|
42
|
-
cache.set(data, result);
|
|
43
|
-
return result;
|
|
44
|
-
}
|
|
45
|
-
getTrackedDisposables() {
|
|
46
|
-
const rootParentCache = ( new Map());
|
|
47
|
-
const leaking = [...this.livingDisposables.entries()]
|
|
48
|
-
.filter(([, v]) => v.source !== null && !this.getRootParent(v, rootParentCache).isSingleton)
|
|
49
|
-
.flatMap(([k]) => k);
|
|
50
|
-
return leaking;
|
|
51
|
-
}
|
|
52
|
-
computeLeakingDisposables(maxReported = 10, preComputedLeaks) {
|
|
53
|
-
let uncoveredLeakingObjs;
|
|
54
|
-
if (preComputedLeaks) {
|
|
55
|
-
uncoveredLeakingObjs = preComputedLeaks;
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
const rootParentCache = ( new Map());
|
|
59
|
-
const leakingObjects = [...( this.livingDisposables.values())]
|
|
60
|
-
.filter((info) => info.source !== null && !this.getRootParent(info, rootParentCache).isSingleton);
|
|
61
|
-
if (leakingObjects.length === 0) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
const leakingObjsSet = ( new Set(( leakingObjects.map(o => o.value))));
|
|
65
|
-
uncoveredLeakingObjs = leakingObjects.filter(l => {
|
|
66
|
-
return !(l.parent && ( leakingObjsSet.has(l.parent)));
|
|
67
|
-
});
|
|
68
|
-
if (uncoveredLeakingObjs.length === 0) {
|
|
69
|
-
throw new Error('There are cyclic diposable chains!');
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
if (!uncoveredLeakingObjs) {
|
|
73
|
-
return undefined;
|
|
74
|
-
}
|
|
75
|
-
function getStackTracePath(leaking) {
|
|
76
|
-
function removePrefix(array, linesToRemove) {
|
|
77
|
-
while (array.length > 0 && ( linesToRemove.some(
|
|
78
|
-
regexp => typeof regexp === 'string' ? regexp === array[0] : array[0].match(regexp)
|
|
79
|
-
))) {
|
|
80
|
-
array.shift();
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
const lines = ( leaking.source.split('\n').map(p => p.trim().replace('at ', ''))).filter(l => l !== '');
|
|
84
|
-
removePrefix(lines, ['Error', /^trackDisposable \(.*\)$/, /^DisposableTracker.trackDisposable \(.*\)$/]);
|
|
85
|
-
return lines.reverse();
|
|
86
|
-
}
|
|
87
|
-
const stackTraceStarts = ( new SetMap());
|
|
88
|
-
for (const leaking of uncoveredLeakingObjs) {
|
|
89
|
-
const stackTracePath = getStackTracePath(leaking);
|
|
90
|
-
for (let i = 0; i <= stackTracePath.length; i++) {
|
|
91
|
-
stackTraceStarts.add(stackTracePath.slice(0, i).join('\n'), leaking);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
uncoveredLeakingObjs.sort(compareBy(l => l.idx, numberComparator));
|
|
95
|
-
let message = '';
|
|
96
|
-
let i = 0;
|
|
97
|
-
for (const leaking of uncoveredLeakingObjs.slice(0, maxReported)) {
|
|
98
|
-
i++;
|
|
99
|
-
const stackTracePath = getStackTracePath(leaking);
|
|
100
|
-
const stackTraceFormattedLines = [];
|
|
101
|
-
for (let i = 0; i < stackTracePath.length; i++) {
|
|
102
|
-
let line = stackTracePath[i];
|
|
103
|
-
const starts = stackTraceStarts.get(stackTracePath.slice(0, i + 1).join('\n'));
|
|
104
|
-
line = `(shared with ${starts.size}/${uncoveredLeakingObjs.length} leaks) at ${line}`;
|
|
105
|
-
const prevStarts = stackTraceStarts.get(stackTracePath.slice(0, i).join('\n'));
|
|
106
|
-
const continuations = groupBy(( [...prevStarts].map(d => getStackTracePath(d)[i])), v => v);
|
|
107
|
-
delete continuations[stackTracePath[i]];
|
|
108
|
-
for (const [cont, set] of Object.entries(continuations)) {
|
|
109
|
-
stackTraceFormattedLines.unshift(` - stacktraces of ${set.length} other leaks continue with ${cont}`);
|
|
110
|
-
}
|
|
111
|
-
stackTraceFormattedLines.unshift(line);
|
|
112
|
-
}
|
|
113
|
-
message += `\n\n\n==================== Leaking disposable ${i}/${uncoveredLeakingObjs.length}: ${leaking.value.constructor.name} ====================\n${stackTraceFormattedLines.join('\n')}\n============================================================\n\n`;
|
|
114
|
-
}
|
|
115
|
-
if (uncoveredLeakingObjs.length > maxReported) {
|
|
116
|
-
message += `\n\n\n... and ${uncoveredLeakingObjs.length - maxReported} more leaking disposables\n\n`;
|
|
117
|
-
}
|
|
118
|
-
return { leaks: uncoveredLeakingObjs, details: message };
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
3
|
function trackDisposable(x) {
|
|
122
4
|
return x;
|
|
123
5
|
}
|
|
@@ -417,4 +299,4 @@ class DisposableMap {
|
|
|
417
299
|
return this._store[Symbol.iterator]();
|
|
418
300
|
}
|
|
419
301
|
}
|
|
420
|
-
export { AsyncReferenceCollection, Disposable, DisposableMap, DisposableStore,
|
|
302
|
+
export { AsyncReferenceCollection, Disposable, DisposableMap, DisposableStore, ImmortalReference, MandatoryMutableDisposable, MutableDisposable, RefCountedDisposable, ReferenceCollection, combinedDisposable, dispose, disposeIfDisposable, isDisposable, markAsSingleton, toDisposable, trackDisposable };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { onUnexpectedError } from './errors.js';
|
|
2
2
|
import { toDisposable } from './lifecycle.js';
|
|
3
3
|
import { ResourceMap } from './map.js';
|
|
4
|
-
import { isNative, webWorkerOrigin
|
|
4
|
+
import { isWeb, isNative, webWorkerOrigin } from './platform.js';
|
|
5
5
|
import { equalsIgnoreCase, startsWithIgnoreCase } from './strings.js';
|
|
6
6
|
import { URI } from './uri.js';
|
|
7
7
|
var Schemas;
|
|
@@ -4,7 +4,7 @@ import { ICodeEditorService } from './services/codeEditorService.js';
|
|
|
4
4
|
import { Position } from '../common/core/position.js';
|
|
5
5
|
import { IModelService } from '../common/services/model.js';
|
|
6
6
|
import { ITextModelService } from '../common/services/resolverService.js';
|
|
7
|
-
import {
|
|
7
|
+
import { MenuId, MenuRegistry, Action2 } from '../../platform/actions/common/actions.js';
|
|
8
8
|
import { CommandsRegistry } from '../../platform/commands/common/commands.js';
|
|
9
9
|
import { IContextKeyService, ContextKeyExpr } from '../../platform/contextkey/common/contextkey.js';
|
|
10
10
|
import { IInstantiationService } from '../../platform/instantiation/common/instantiation.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { getWindow, runAtThisOrScheduleAtNextAnimationFrame } from '../../base/browser/dom.js';
|
|
3
3
|
import { createFastDomNode } from '../../base/browser/fastDomNode.js';
|
|
4
4
|
import { inputLatency } from '../../base/browser/performance.js';
|
|
5
5
|
import { BugIndicatingError, onUnexpectedError } from '../../base/common/errors.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { equals } from '../../../base/common/arrays.js';
|
|
2
|
-
import { equals
|
|
1
|
+
import { equals as equals$1 } from '../../../base/common/arrays.js';
|
|
2
|
+
import { equals } from '../../../base/common/objects.js';
|
|
3
3
|
import { isMacintosh, isLinux } from '../../../base/common/platform.js';
|
|
4
4
|
import { EDITOR_MODEL_DEFAULTS } from '../core/textModelDefaults.js';
|
|
5
5
|
import { USUAL_WORD_SEPARATORS } from '../core/wordHelper.js';
|
|
@@ -45,7 +45,7 @@ function applyUpdate(value, update) {
|
|
|
45
45
|
return ( new ApplyUpdateResult(update, value !== update));
|
|
46
46
|
}
|
|
47
47
|
if (Array.isArray(value) || Array.isArray(update)) {
|
|
48
|
-
const arrayEquals = Array.isArray(value) && Array.isArray(update) && equals(value, update);
|
|
48
|
+
const arrayEquals = Array.isArray(value) && Array.isArray(update) && equals$1(value, update);
|
|
49
49
|
return ( new ApplyUpdateResult(update, !arrayEquals));
|
|
50
50
|
}
|
|
51
51
|
let didChange = false;
|
|
@@ -2219,13 +2219,13 @@ class UnicodeHighlight extends BaseEditorOption {
|
|
|
2219
2219
|
applyUpdate(value, update) {
|
|
2220
2220
|
let didChange = false;
|
|
2221
2221
|
if (update.allowedCharacters && value) {
|
|
2222
|
-
if (!equals
|
|
2222
|
+
if (!equals(value.allowedCharacters, update.allowedCharacters)) {
|
|
2223
2223
|
value = { ...value, allowedCharacters: update.allowedCharacters };
|
|
2224
2224
|
didChange = true;
|
|
2225
2225
|
}
|
|
2226
2226
|
}
|
|
2227
2227
|
if (update.allowedLocales && value) {
|
|
2228
|
-
if (!equals
|
|
2228
|
+
if (!equals(value.allowedLocales, update.allowedLocales)) {
|
|
2229
2229
|
value = { ...value, allowedLocales: update.allowedLocales };
|
|
2230
2230
|
didChange = true;
|
|
2231
2231
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LineTokens } from '../tokens/lineTokens.js';
|
|
2
2
|
import { Position } from '../core/position.js';
|
|
3
3
|
import { LineInjectedText } from '../textModelEvents.js';
|
|
4
|
-
import {
|
|
4
|
+
import { SingleLineInlineDecoration, ViewLineData } from '../viewModel.js';
|
|
5
5
|
function createModelLineProjection(lineBreakData, isVisible) {
|
|
6
6
|
if (lineBreakData === null) {
|
|
7
7
|
if (isVisible) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { alert } from '../../../../base/browser/ui/aria/aria.js';
|
|
2
|
-
import {
|
|
2
|
+
import { createCancelablePromise, raceCancellation } from '../../../../base/common/async.js';
|
|
3
3
|
import { KeyChord } from '../../../../base/common/keyCodes.js';
|
|
4
4
|
import { assertType } from '../../../../base/common/types.js';
|
|
5
5
|
import { URI } from '../../../../base/common/uri.js';
|
|
@@ -24,7 +24,7 @@ import { ContextKeyExpr } from '../../../../platform/contextkey/common/contextke
|
|
|
24
24
|
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
25
25
|
import { INotificationService } from '../../../../platform/notification/common/notification.js';
|
|
26
26
|
import { IEditorProgressService } from '../../../../platform/progress/common/progress.js';
|
|
27
|
-
import { getDefinitionsAtPosition, getDeclarationsAtPosition, getTypeDefinitionsAtPosition, getImplementationsAtPosition
|
|
27
|
+
import { getReferencesAtPosition, getDefinitionsAtPosition, getDeclarationsAtPosition, getTypeDefinitionsAtPosition, getImplementationsAtPosition } from './goToSymbol.js';
|
|
28
28
|
import { ILanguageFeaturesService } from '../../../common/services/languageFeatures.js';
|
|
29
29
|
import { Iterable } from '../../../../base/common/iterator.js';
|
|
30
30
|
import { IsWebContext } from '../../../../platform/contextkey/common/contextkeys.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { alert } from '../../../../base/browser/ui/aria/aria.js';
|
|
2
2
|
import { TabFocus } from '../../../browser/config/tabFocus.js';
|
|
3
3
|
import { localizeWithPath } from '../../../../nls.js';
|
|
4
|
-
import {
|
|
4
|
+
import { registerAction2, Action2 } from '../../../../platform/actions/common/actions.js';
|
|
5
5
|
class ToggleTabFocusModeAction extends Action2 {
|
|
6
6
|
static { this.ID = 'editor.action.toggleTabFocusMode'; }
|
|
7
7
|
constructor() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { removeCSSRulesContainingSelector, createCSSRule
|
|
1
|
+
import { getActiveElement, removeCSSRulesContainingSelector, createCSSRule } from '../../../../base/browser/dom.js';
|
|
2
2
|
import { Sash } from '../../../../base/browser/ui/sash/sash.js';
|
|
3
3
|
import { Color, RGBA } from '../../../../base/common/color.js';
|
|
4
4
|
import { IdGenerator } from '../../../../base/common/idGenerator.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { append,
|
|
2
|
+
import { append, addDisposableListener, EventType, isAncestor, $ as $$1, addStandardDisposableListener, prepend, asCSSUrl } from '../../../base/browser/dom.js';
|
|
3
3
|
import { StandardKeyboardEvent } from '../../../base/browser/keyboardEvent.js';
|
|
4
4
|
import { ActionBar } from '../../../base/browser/ui/actionbar/actionbar.js';
|
|
5
5
|
import { IconLabel } from '../../../base/browser/ui/iconLabel/iconLabel.js';
|
|
@@ -12,7 +12,7 @@ import { isCancellationError } from '../../../base/common/errors.js';
|
|
|
12
12
|
import { Emitter, Event } from '../../../base/common/event.js';
|
|
13
13
|
import { matchesFuzzyIconAware, parseLabelWithIcons, getCodiconAriaLabel } from '../../../base/common/iconLabels.js';
|
|
14
14
|
import { dispose, DisposableStore } from '../../../base/common/lifecycle.js';
|
|
15
|
-
import {
|
|
15
|
+
import { isMacintosh, OS } from '../../../base/common/platform.js';
|
|
16
16
|
import { ltrim } from '../../../base/common/strings.js';
|
|
17
17
|
import './media/quickInput.css.js';
|
|
18
18
|
import { localizeWithPath } from '../../../nls.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reset, $, EventType,
|
|
1
|
+
import { reset, $, EventType, isEventLike, EventHelper, createCSSRule, asCSSUrl } from '../../../base/browser/dom.js';
|
|
2
2
|
import { DomEmitter } from '../../../base/browser/event.js';
|
|
3
3
|
import { Event } from '../../../base/common/event.js';
|
|
4
4
|
import { StandardKeyboardEvent } from '../../../base/browser/keyboardEvent.js';
|
|
@@ -19,13 +19,6 @@ var CandidatePortSource;
|
|
|
19
19
|
CandidatePortSource[CandidatePortSource["Process"] = 1] = "Process";
|
|
20
20
|
CandidatePortSource[CandidatePortSource["Output"] = 2] = "Output";
|
|
21
21
|
})(CandidatePortSource || (CandidatePortSource = {})));
|
|
22
|
-
class IdObject {
|
|
23
|
-
static { this._n = 0; }
|
|
24
|
-
static mixin(object) {
|
|
25
|
-
object._id = IdObject._n++;
|
|
26
|
-
return object;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
22
|
const MainContext = {
|
|
30
23
|
MainThreadAuthentication: ( createProxyIdentifier('MainThreadAuthentication')),
|
|
31
24
|
MainThreadBulkEdits: ( createProxyIdentifier('MainThreadBulkEdits')),
|
|
@@ -167,4 +160,4 @@ const ExtHostContext = {
|
|
|
167
160
|
ExtHostLocalization: ( createProxyIdentifier('ExtHostLocalization')),
|
|
168
161
|
ExtHostIssueReporter: ( createProxyIdentifier('ExtHostIssueReporter')),
|
|
169
162
|
};
|
|
170
|
-
export { CandidatePortSource, ExtHostContext,
|
|
163
|
+
export { CandidatePortSource, ExtHostContext, MainContext, NotebookEditorRevealType, TextEditorRevealType };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { URI } from '../../../base/common/uri.js';
|
|
2
2
|
import { mixin, equals } from '../../../base/common/objects.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { DocumentSelector, DocumentSymbol as DocumentSymbol$1, SymbolKind, SymbolTag, Range, Position, Hover, EvaluatableExpression, InlineValueContext, InlineValue, DocumentHighlight, MultiDocumentHighlight, location, Selection as Selection$1, CodeActionTriggerKind, Diagnostic, WorkspaceEdit, DataTransfer, TextEdit, WorkspaceSymbol, CompletionContext, CompletionItemKind, CompletionItemTag, MarkdownString, SignatureHelp, InlayHintKind, DocumentLink, Color, ColorPresentation, FoldingRange, SelectionRange, CallHierarchyItem, TypeHierarchyItem, DefinitionLink } from './extHostTypeConverters.js';
|
|
4
|
+
import { Disposable, SyntaxTokenType, DocumentSymbol, Range as Range$2, CodeActionKind, InternalDataTransferItem, SemanticTokens, SemanticTokensEdits, SemanticTokensEdit, SnippetString, Location, CompletionList, InlineCompletionTriggerKind as InlineCompletionTriggerKind$1 } from './extHostTypes.js';
|
|
5
5
|
import { InlineCompletionTriggerKind } from '../../../editor/common/languages.js';
|
|
6
6
|
import { MainContext } from './extHost.protocol.js';
|
|
7
7
|
import { regExpLeadsToEndlessLoop } from '../../../base/common/strings.js';
|
|
8
8
|
import { Range as Range$1 } from '../../../editor/common/core/range.js';
|
|
9
|
-
import {
|
|
9
|
+
import { isFalsyOrEmpty, coalesce, isNonEmptyArray } from '../../../base/common/arrays.js';
|
|
10
10
|
import { assertType, isObject } from '../../../base/common/types.js';
|
|
11
11
|
import { Selection } from '../../../editor/common/core/selection.js';
|
|
12
12
|
import { CancellationToken } from '../../../base/common/cancellation.js';
|
|
@@ -2,7 +2,7 @@ import { Schemas } from '../../../base/common/network.js';
|
|
|
2
2
|
import { URI } from '../../../base/common/uri.js';
|
|
3
3
|
import { NotebookCellOutput, NotebookCellExecutionSummary, NotebookCellKind, NotebookCellOutputItem } from './extHostTypeConverters.js';
|
|
4
4
|
import { NotebookRange } from './extHostTypes.js';
|
|
5
|
-
import {
|
|
5
|
+
import { isTextStreamMime, compressOutputItemStreams, NotebookCellsChangeType } from '../../contrib/notebook/common/notebookCommon.js';
|
|
6
6
|
class RawContentChangeEvent {
|
|
7
7
|
constructor(start, deletedCount, deletedItems, items) {
|
|
8
8
|
this.start = start;
|
|
@@ -3,7 +3,7 @@ import { Emitter } from '../../../base/common/event.js';
|
|
|
3
3
|
import { dispose } from '../../../base/common/lifecycle.js';
|
|
4
4
|
import { MainContext } from './extHost.protocol.js';
|
|
5
5
|
import { URI } from '../../../base/common/uri.js';
|
|
6
|
-
import {
|
|
6
|
+
import { QuickPickItemKind, InputBoxValidationSeverity, QuickInputButtons, ThemeIcon as ThemeIcon$1 } from './extHostTypes.js';
|
|
7
7
|
import { isCancellationError } from '../../../base/common/errors.js';
|
|
8
8
|
import { coalesce } from '../../../base/common/arrays.js';
|
|
9
9
|
import Severity from '../../../base/common/severity.js';
|
|
@@ -5,7 +5,7 @@ import { debounce } from '../../../base/common/decorators.js';
|
|
|
5
5
|
import { DisposableStore, MutableDisposable } from '../../../base/common/lifecycle.js';
|
|
6
6
|
import { asPromise } from '../../../base/common/async.js';
|
|
7
7
|
import { MainContext } from './extHost.protocol.js';
|
|
8
|
-
import {
|
|
8
|
+
import { equals, sortedDiff } from '../../../base/common/arrays.js';
|
|
9
9
|
import { comparePaths } from '../../../base/common/comparers.js';
|
|
10
10
|
import { ILogService } from '../../../platform/log/common/log.js';
|
|
11
11
|
import { ExtensionIdentifierMap } from '../../../platform/extensions/common/extensions.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ThemeColor, asStatusBarItemIdentifier, StatusBarAlignment
|
|
1
|
+
import { Disposable, ThemeColor, asStatusBarItemIdentifier, StatusBarAlignment } from './extHostTypes.js';
|
|
2
2
|
import { MainContext } from './extHost.protocol.js';
|
|
3
3
|
import { localizeWithPath } from '../../../nls.js';
|
|
4
4
|
import { DisposableStore } from '../../../base/common/lifecycle.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ok } from '../../../base/common/assert.js';
|
|
2
2
|
import { ReadonlyError, illegalArgument } from '../../../base/common/errors.js';
|
|
3
3
|
import { IdGenerator } from '../../../base/common/idGenerator.js';
|
|
4
|
-
import {
|
|
4
|
+
import { Position as Position$1, Range as Range$1, isDecorationOptionsArr, fromRangeOrRangeWithMessage, ViewColumn, EndOfLine, TextEditorLineNumbersStyle, Selection as Selection$1, DecorationRenderOptions } from './extHostTypeConverters.js';
|
|
5
5
|
import { Selection, Position, Range, TextEditorRevealType, EndOfLine as EndOfLine$1 } from './extHostTypes.js';
|
|
6
6
|
class TextEditorDecorationType {
|
|
7
7
|
static { this._Keys = ( new IdGenerator('TextEditorDecorationType')); }
|
|
@@ -5,10 +5,10 @@ import { createSingleCallFunction } from '../../../base/common/functional.js';
|
|
|
5
5
|
import { parseHrefAndDimensions, isMarkdownString } from '../../../base/common/htmlContent.js';
|
|
6
6
|
import { ResourceSet, ResourceMap } from '../../../base/common/map.js';
|
|
7
7
|
import marked from 'vscode-marked';
|
|
8
|
-
import {
|
|
8
|
+
import { parse, revive } from '../../../base/common/marshalling.js';
|
|
9
9
|
import { Mimes } from '../../../base/common/mime.js';
|
|
10
10
|
import { cloneAndChange } from '../../../base/common/objects.js';
|
|
11
|
-
import { isString,
|
|
11
|
+
import { isString, isNumber, isUndefinedOrNull, isEmptyObject } from '../../../base/common/types.js';
|
|
12
12
|
import { URI, isUriComponents } from '../../../base/common/uri.js';
|
|
13
13
|
import { Range as Range$2 } from '../../../editor/common/core/range.js';
|
|
14
14
|
import { Command, FoldingRangeKind as FoldingRangeKind$2 } from '../../../editor/common/languages.js';
|
|
@@ -20,7 +20,7 @@ import { TestId } from '../../contrib/testing/common/testId.js';
|
|
|
20
20
|
import { namespaceTestTag, denamespaceTestTag } from '../../contrib/testing/common/testTypes.js';
|
|
21
21
|
import { SIDE_GROUP, ACTIVE_GROUP } from '../../services/editor/common/editorService.js';
|
|
22
22
|
import { checkProposedApiEnabled } from '../../services/extensions/common/extensions.js';
|
|
23
|
-
import { Position as Position$1, Selection as Selection$1, Range as Range$1, Diagnostic as Diagnostic$1, ViewColumn as ViewColumn$1, MarkdownString as MarkdownString$1,
|
|
23
|
+
import { Position as Position$1, Selection as Selection$1, Range as Range$1, Diagnostic as Diagnostic$1, ViewColumn as ViewColumn$1, MarkdownString as MarkdownString$1, WorkspaceEdit as WorkspaceEdit$1, SnippetTextEdit, SnippetString, TextEdit as TextEdit$1, SymbolKind as SymbolKind$1, SymbolInformation, CallHierarchyItem as CallHierarchyItem$1, CallHierarchyIncomingCall as CallHierarchyIncomingCall$1, CallHierarchyOutgoingCall as CallHierarchyOutgoingCall$1, Location as Location$1, InlineValueText, InlineValueVariableLookup, InlineValueEvaluatableExpression, InlineValueContext as InlineValueContext$1, CompletionItem as CompletionItem$1, InlayHint as InlayHint$1, DocumentLink as DocumentLink$1, ColorPresentation as ColorPresentation$1, Color as Color$1, NotebookCellOutputItem as NotebookCellOutputItem$1, NotebookCellOutput as NotebookCellOutput$1, TestTag as TestTag$1, TypeHierarchyItem as TypeHierarchyItem$1, DiagnosticRelatedInformation as DiagnosticRelatedInformation$1, DiagnosticSeverity as DiagnosticSeverity$1, Hover as Hover$1, DocumentHighlight as DocumentHighlight$1, InlayHintLabelPart as InlayHintLabelPart$1, FoldingRangeKind as FoldingRangeKind$1, NotebookCellData as NotebookCellData$1, DiagnosticTag as DiagnosticTag$1, SymbolTag as SymbolTag$1, CompletionItemTag as CompletionItemTag$1, CompletionItemKind as CompletionItemKind$1, EndOfLine as EndOfLine$1, RelativePattern, NotebookRange as NotebookRange$1, NotebookCellKind as NotebookCellKind$1, DataTransfer as DataTransfer$1, StandardTokenType, TextDocumentSaveReason as TextDocumentSaveReason$1, TextEditorLineNumbersStyle as TextEditorLineNumbersStyle$1, ProgressLocation as ProgressLocation$1, NotebookCellExecutionState as NotebookCellExecutionState$2, TestMessage as TestMessage$1, InternalFileDataTransferItem, DataTransferFile, InternalDataTransferItem, ChatMessage as ChatMessage$1, InteractiveEditorResponseFeedbackKind as InteractiveEditorResponseFeedbackKind$1, DocumentSymbol as DocumentSymbol$1, EvaluatableExpression as EvaluatableExpression$1, MultiDocumentHighlight as MultiDocumentHighlight$1, SelectionRange as SelectionRange$1, NotebookData as NotebookData$1, NotebookCellStatusBarAlignment, NotebookRendererScript as NotebookRendererScript$1, CodeActionTriggerKind as CodeActionTriggerKind$1, ChatMessageRole as ChatMessageRole$1, ChatVariableLevel as ChatVariableLevel$1, DecorationRangeBehavior as DecorationRangeBehavior$1, CompletionTriggerKind as CompletionTriggerKind$1 } from './extHostTypes.js';
|
|
24
24
|
var Selection;
|
|
25
25
|
( (function(Selection) {
|
|
26
26
|
function to(selection) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { localizeWithPath, localize2WithPath } from '../../../nls.js';
|
|
2
|
-
import { registerAction2,
|
|
2
|
+
import { registerAction2, MenuRegistry, MenuId, Action2 } from '../../../platform/actions/common/actions.js';
|
|
3
3
|
import { Categories } from '../../../platform/action/common/actionCommonCategories.js';
|
|
4
4
|
import { IConfigurationService } from '../../../platform/configuration/common/configuration.js';
|
|
5
5
|
import { IWorkbenchLayoutService, positionToString } from '../../services/layout/browser/layoutService.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { localizeWithPath, localize2WithPath } from '../../../nls.js';
|
|
2
2
|
import '../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
3
|
-
import {
|
|
3
|
+
import { registerAction2, MenuRegistry, MenuId, Action2 } from '../../../platform/actions/common/actions.js';
|
|
4
4
|
import { KeyChord } from '../../../base/common/keyCodes.js';
|
|
5
5
|
import { IsMainWindowFullscreenContext } from '../../common/contextkeys.js';
|
|
6
|
-
import {
|
|
6
|
+
import { IsWebContext, IsDevelopmentContext, IsIOSContext, IsMacNativeContext } from '../../../platform/contextkey/common/contextkeys.js';
|
|
7
7
|
import { Categories } from '../../../platform/action/common/actionCommonCategories.js';
|
|
8
8
|
import { KeybindingsRegistry } from '../../../platform/keybinding/common/keybindingsRegistry.js';
|
|
9
9
|
import { IQuickInputService } from '../../../platform/quickinput/common/quickInput.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { localizeWithPath, localize2WithPath } from '../../../nls.js';
|
|
2
2
|
import { IWorkspaceContextService, hasWorkspaceFileExtension } from '../../../platform/workspace/common/workspace.js';
|
|
3
3
|
import { IWorkspaceEditingService } from '../../services/workspaces/common/workspaceEditing.js';
|
|
4
4
|
import { IEditorService } from '../../services/editor/common/editorService.js';
|
|
5
5
|
import { ICommandService } from '../../../platform/commands/common/commands.js';
|
|
6
|
-
import { SET_ROOT_FOLDER_COMMAND_ID, ADD_ROOT_FOLDER_LABEL,
|
|
6
|
+
import { ADD_ROOT_FOLDER_COMMAND_ID, SET_ROOT_FOLDER_COMMAND_ID, ADD_ROOT_FOLDER_LABEL, PICK_WORKSPACE_FOLDER_COMMAND_ID } from './workspaceCommands.js';
|
|
7
7
|
import '../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
8
|
-
import {
|
|
8
|
+
import { registerAction2, MenuRegistry, MenuId, Action2 } from '../../../platform/actions/common/actions.js';
|
|
9
9
|
import { OpenFolderWorkspaceSupportContext, WorkbenchStateContext, EnterMultiRootWorkspaceSupportContext, EmptyWorkspaceSupportContext, WorkspaceFolderCountContext } from '../../common/contextkeys.js';
|
|
10
10
|
import { IHostService } from '../../services/host/browser/host.js';
|
|
11
11
|
import { KeyChord } from '../../../base/common/keyCodes.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './media/part.css.js';
|
|
2
2
|
import { Component } from '../common/component.js';
|
|
3
|
-
import {
|
|
3
|
+
import { Dimension, size, getActiveDocument } from '../../base/browser/dom.js';
|
|
4
4
|
import { Emitter } from '../../base/common/event.js';
|
|
5
5
|
import { assertIsDefined } from '../../base/common/types.js';
|
|
6
6
|
import { toDisposable } from '../../base/common/lifecycle.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Codicon } from '../../../../base/common/codicons.js';
|
|
2
2
|
import { localizeWithPath, localize2WithPath } from '../../../../nls.js';
|
|
3
|
-
import {
|
|
3
|
+
import { registerAction2, MenuRegistry, MenuId, Action2 } from '../../../../platform/actions/common/actions.js';
|
|
4
4
|
import { ContextKeyExpr } from '../../../../platform/contextkey/common/contextkey.js';
|
|
5
5
|
import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
|
|
6
6
|
import { Categories } from '../../../../platform/action/common/actionCommonCategories.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { localizeWithPath, localize2WithPath } from '../../../../nls.js';
|
|
3
3
|
import { Action } from '../../../../base/common/actions.js';
|
|
4
4
|
import { firstOrDefault } from '../../../../base/common/arrays.js';
|
|
5
5
|
import { EditorResourceAccessor, DEFAULT_EDITOR_ASSOCIATION } from '../../../common/editor.js';
|
|
@@ -8,7 +8,7 @@ import { IWorkbenchLayoutService } from '../../../services/layout/browser/layout
|
|
|
8
8
|
import { IHistoryService } from '../../../services/history/common/history.js';
|
|
9
9
|
import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.js';
|
|
10
10
|
import { ICommandService } from '../../../../platform/commands/common/commands.js';
|
|
11
|
-
import {
|
|
11
|
+
import { CLOSE_EDITOR_COMMAND_ID, UNPIN_EDITOR_COMMAND_ID, SPLIT_EDITOR, SPLIT_EDITOR_UP, SPLIT_EDITOR_DOWN, COPY_ACTIVE_EDITOR_COMMAND_ID, LAYOUT_EDITOR_GROUPS_COMMAND_ID, splitEditor, SPLIT_EDITOR_LEFT, SPLIT_EDITOR_RIGHT, TOGGLE_MAXIMIZE_EDITOR_GROUP, resolveCommandsContext, getCommandsContext, MOVE_ACTIVE_EDITOR_COMMAND_ID, MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID } from './editorCommands.js';
|
|
12
12
|
import { IEditorGroupsService, preferredSideBySideGroupDirection } from '../../../services/editor/common/editorGroupsService.js';
|
|
13
13
|
import { IEditorService } from '../../../services/editor/common/editorService.js';
|
|
14
14
|
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { clearNode, $, EventType,
|
|
2
|
+
import { addDisposableListener, clearNode, EventHelper, $, EventType, isEventLike } from '../../../../base/browser/dom.js';
|
|
3
3
|
import { IOpenerService } from '../../../../platform/opener/common/opener.js';
|
|
4
4
|
import { URI } from '../../../../base/common/uri.js';
|
|
5
5
|
import { localizeWithPath } from '../../../../nls.js';
|
|
@@ -9,7 +9,7 @@ import { toAction, Separator, ActionRunner } from '../../../../base/common/actio
|
|
|
9
9
|
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
10
10
|
import { DisposableStore, dispose, Disposable } from '../../../../base/common/lifecycle.js';
|
|
11
11
|
import { IContextMenuService } from '../../../../platform/contextview/browser/contextView.js';
|
|
12
|
-
import {
|
|
12
|
+
import { ChoiceAction, NotificationViewItem } from '../../../common/notifications.js';
|
|
13
13
|
import { ConfigureNotificationAction, ClearNotificationAction, ExpandNotificationAction, CollapseNotificationAction } from './notificationsActions.js';
|
|
14
14
|
import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.js';
|
|
15
15
|
import { ProgressBar } from '../../../../base/browser/ui/progressbar/progressbar.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './media/panelpart.css.js';
|
|
2
2
|
import { localizeWithPath, localize2WithPath } from '../../../../nls.js';
|
|
3
|
-
import {
|
|
3
|
+
import { registerAction2, MenuRegistry, MenuId, Action2 } from '../../../../platform/actions/common/actions.js';
|
|
4
4
|
import { Categories } from '../../../../platform/action/common/actionCommonCategories.js';
|
|
5
5
|
import { IWorkbenchLayoutService, positionToString } from '../../../services/layout/browser/layoutService.js';
|
|
6
6
|
import { PanelVisibleContext, PanelAlignmentContext, PanelPositionContext, PanelMaximizedContext, AuxiliaryBarVisibleContext } from '../../../common/contextkeys.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ServiceIdentifier } from '../../platform/instantiation/common/instantiation.js';
|
|
2
|
+
import { IDisposable } from '../../base/common/lifecycle.js';
|
|
2
3
|
import { URI } from '../../base/common/uri.js';
|
|
3
4
|
import { Event } from '../../base/common/event.js';
|
|
4
5
|
import { ThemeIcon } from '../../base/common/themables.js';
|
|
@@ -74,6 +75,62 @@ interface IViewContainerDescriptor {
|
|
|
74
75
|
readonly rejectAddedViews?: boolean;
|
|
75
76
|
requestedIndex?: number;
|
|
76
77
|
}
|
|
78
|
+
interface IViewContainersRegistry {
|
|
79
|
+
/**
|
|
80
|
+
* An event that is triggered when a view container is registered.
|
|
81
|
+
*/
|
|
82
|
+
readonly onDidRegister: Event<{
|
|
83
|
+
viewContainer: ViewContainer;
|
|
84
|
+
viewContainerLocation: ViewContainerLocation;
|
|
85
|
+
}>;
|
|
86
|
+
/**
|
|
87
|
+
* An event that is triggered when a view container is deregistered.
|
|
88
|
+
*/
|
|
89
|
+
readonly onDidDeregister: Event<{
|
|
90
|
+
viewContainer: ViewContainer;
|
|
91
|
+
viewContainerLocation: ViewContainerLocation;
|
|
92
|
+
}>;
|
|
93
|
+
/**
|
|
94
|
+
* All registered view containers
|
|
95
|
+
*/
|
|
96
|
+
readonly all: ViewContainer[];
|
|
97
|
+
/**
|
|
98
|
+
* Registers a view container to given location.
|
|
99
|
+
* No op if a view container is already registered.
|
|
100
|
+
*
|
|
101
|
+
* @param viewContainerDescriptor descriptor of view container
|
|
102
|
+
* @param location location of the view container
|
|
103
|
+
*
|
|
104
|
+
* @returns the registered ViewContainer.
|
|
105
|
+
*/
|
|
106
|
+
registerViewContainer(viewContainerDescriptor: IViewContainerDescriptor, location: ViewContainerLocation, options?: {
|
|
107
|
+
isDefault?: boolean;
|
|
108
|
+
doNotRegisterOpenCommand?: boolean;
|
|
109
|
+
}): ViewContainer;
|
|
110
|
+
/**
|
|
111
|
+
* Deregisters the given view container
|
|
112
|
+
* No op if the view container is not registered
|
|
113
|
+
*/
|
|
114
|
+
deregisterViewContainer(viewContainer: ViewContainer): void;
|
|
115
|
+
/**
|
|
116
|
+
* Returns the view container with given id.
|
|
117
|
+
*
|
|
118
|
+
* @returns the view container with given id.
|
|
119
|
+
*/
|
|
120
|
+
get(id: string): ViewContainer | undefined;
|
|
121
|
+
/**
|
|
122
|
+
* Returns all view containers in the given location
|
|
123
|
+
*/
|
|
124
|
+
getViewContainers(location: ViewContainerLocation): ViewContainer[];
|
|
125
|
+
/**
|
|
126
|
+
* Returns the view container location
|
|
127
|
+
*/
|
|
128
|
+
getViewContainerLocation(container: ViewContainer): ViewContainerLocation;
|
|
129
|
+
/**
|
|
130
|
+
* Return the default view container from the given location
|
|
131
|
+
*/
|
|
132
|
+
getDefaultViewContainer(location: ViewContainerLocation): ViewContainer | undefined;
|
|
133
|
+
}
|
|
77
134
|
interface ViewOrderDelegate {
|
|
78
135
|
getOrder(group?: string): number | undefined;
|
|
79
136
|
}
|
|
@@ -150,6 +207,42 @@ interface IViewContainerModel {
|
|
|
150
207
|
}[]): void;
|
|
151
208
|
move(from: string, to: string): void;
|
|
152
209
|
}
|
|
210
|
+
interface IViewContentDescriptor {
|
|
211
|
+
readonly content: string;
|
|
212
|
+
readonly when?: ContextKeyExpression | 'default';
|
|
213
|
+
readonly group?: string;
|
|
214
|
+
readonly order?: number;
|
|
215
|
+
readonly precondition?: ContextKeyExpression | undefined;
|
|
216
|
+
}
|
|
217
|
+
interface IViewsRegistry {
|
|
218
|
+
readonly onViewsRegistered: Event<{
|
|
219
|
+
views: IViewDescriptor[];
|
|
220
|
+
viewContainer: ViewContainer;
|
|
221
|
+
}[]>;
|
|
222
|
+
readonly onViewsDeregistered: Event<{
|
|
223
|
+
views: IViewDescriptor[];
|
|
224
|
+
viewContainer: ViewContainer;
|
|
225
|
+
}>;
|
|
226
|
+
readonly onDidChangeContainer: Event<{
|
|
227
|
+
views: IViewDescriptor[];
|
|
228
|
+
from: ViewContainer;
|
|
229
|
+
to: ViewContainer;
|
|
230
|
+
}>;
|
|
231
|
+
registerViews(views: IViewDescriptor[], viewContainer: ViewContainer): void;
|
|
232
|
+
registerViews2(views: {
|
|
233
|
+
views: IViewDescriptor[];
|
|
234
|
+
viewContainer: ViewContainer;
|
|
235
|
+
}[]): void;
|
|
236
|
+
deregisterViews(views: IViewDescriptor[], viewContainer: ViewContainer): void;
|
|
237
|
+
moveViews(views: IViewDescriptor[], viewContainer: ViewContainer): void;
|
|
238
|
+
getViews(viewContainer: ViewContainer): IViewDescriptor[];
|
|
239
|
+
getView(id: string): IViewDescriptor | null;
|
|
240
|
+
getViewContainer(id: string): ViewContainer | null;
|
|
241
|
+
readonly onDidChangeViewWelcomeContent: Event<string>;
|
|
242
|
+
registerViewWelcomeContent(id: string, viewContent: IViewContentDescriptor): IDisposable;
|
|
243
|
+
registerViewWelcomeContent2<TKey>(id: string, viewContentMap: Map<TKey, IViewContentDescriptor>): Map<TKey, IDisposable>;
|
|
244
|
+
getViewWelcomeContent(id: string): IViewContentDescriptor[];
|
|
245
|
+
}
|
|
153
246
|
interface IView {
|
|
154
247
|
readonly id: string;
|
|
155
248
|
focus(): void;
|
|
@@ -231,4 +324,4 @@ interface IViewPaneContainer {
|
|
|
231
324
|
toggleViewVisibility(viewId: string): void;
|
|
232
325
|
}
|
|
233
326
|
|
|
234
|
-
export { type IAddedViewDescriptorRef, type IEditableData, type IView, type IViewContainerDescriptor, type IViewContainerModel, type IViewDescriptor, type IViewDescriptorRef, IViewDescriptorService, type IViewPaneContainer, type ViewContainer, ViewContainerLocation, ViewVisibilityState };
|
|
327
|
+
export { type IAddedViewDescriptorRef, type IEditableData, type IView, type IViewContainerDescriptor, type IViewContainerModel, type IViewContainersRegistry, type IViewContentDescriptor, type IViewDescriptor, type IViewDescriptorRef, IViewDescriptorService, type IViewPaneContainer, type IViewsRegistry, type ViewContainer, ViewContainerLocation, ViewVisibilityState };
|
|
@@ -6,7 +6,7 @@ import { basename } from '../../../../../base/common/resources.js';
|
|
|
6
6
|
import { URI } from '../../../../../base/common/uri.js';
|
|
7
7
|
import { Range } from '../../../../../editor/common/core/range.js';
|
|
8
8
|
import { ITextModelService } from '../../../../../editor/common/services/resolverService.js';
|
|
9
|
-
import {
|
|
9
|
+
import { registerAction2, Action2 } from '../../../../../platform/actions/common/actions.js';
|
|
10
10
|
import { ILabelService } from '../../../../../platform/label/common/label.js';
|
|
11
11
|
import { ILogService } from '../../../../../platform/log/common/log.js';
|
|
12
12
|
import { IQuickInputService } from '../../../../../platform/quickinput/common/quickInput.js';
|
package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js
CHANGED
|
@@ -9,7 +9,7 @@ import { IConfigurationService } from '../../../../../platform/configuration/com
|
|
|
9
9
|
import { Disposable, toDisposable, DisposableStore, MutableDisposable } from '../../../../../base/common/lifecycle.js';
|
|
10
10
|
import { timeout } from '../../../../../base/common/async.js';
|
|
11
11
|
import { CancellationTokenSource } from '../../../../../base/common/cancellation.js';
|
|
12
|
-
import { Action2, MenuId
|
|
12
|
+
import { registerAction2, Action2, MenuId } from '../../../../../platform/actions/common/actions.js';
|
|
13
13
|
import { prepareQuery } from '../../../../../base/common/fuzzyScorer.js';
|
|
14
14
|
import { fuzzyScore, createMatches } from '../../../../../base/common/filters.js';
|
|
15
15
|
import { onUnexpectedError } from '../../../../../base/common/errors.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { localizeWithPath } from '../../../../nls.js';
|
|
2
|
-
import { Action2, MenuId
|
|
2
|
+
import { registerAction2, Action2, MenuId } from '../../../../platform/actions/common/actions.js';
|
|
3
3
|
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
|
|
4
4
|
import { ContextKeyExpr } from '../../../../platform/contextkey/common/contextkey.js';
|
|
5
5
|
import { Categories } from '../../../../platform/action/common/actionCommonCategories.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { localizeWithPath, localize2WithPath } from '../../../../nls.js';
|
|
3
3
|
import { isMacintosh } from '../../../../base/common/platform.js';
|
|
4
|
-
import {
|
|
4
|
+
import { registerAction2, MenuRegistry, MenuId, Action2 } from '../../../../platform/actions/common/actions.js';
|
|
5
5
|
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
|
|
6
6
|
import { RawContextKey, IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
|
|
7
7
|
import { Registry } from '../../../../platform/registry/common/platform.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { localizeWithPath } from '../../../../nls.js';
|
|
2
|
-
import { Action2, MenuId
|
|
2
|
+
import { registerAction2, Action2, MenuId } from '../../../../platform/actions/common/actions.js';
|
|
3
3
|
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
|
|
4
4
|
import { ContextKeyExpr } from '../../../../platform/contextkey/common/contextkey.js';
|
|
5
5
|
import { Categories } from '../../../../platform/action/common/actionCommonCategories.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { localizeWithPath } from '../../../../nls.js';
|
|
2
|
-
import { Action2, MenuId
|
|
2
|
+
import { registerAction2, Action2, MenuId } from '../../../../platform/actions/common/actions.js';
|
|
3
3
|
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
|
|
4
4
|
import { ContextKeyExpr } from '../../../../platform/contextkey/common/contextkey.js';
|
|
5
5
|
import { Categories } from '../../../../platform/action/common/actionCommonCategories.js';
|
|
@@ -4,7 +4,7 @@ import { localize2WithPath, localizeWithPath } from '../../../../nls.js';
|
|
|
4
4
|
import { renderMarkdown } from '../../../../base/browser/markdownRenderer.js';
|
|
5
5
|
import { DisposableStore } from '../../../../base/common/lifecycle.js';
|
|
6
6
|
import { IOpenerService } from '../../../../platform/opener/common/opener.js';
|
|
7
|
-
import {
|
|
7
|
+
import { ResourceWithCommentThreads, CommentNode } from '../common/commentModel.js';
|
|
8
8
|
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
|
|
9
9
|
import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
|
|
10
10
|
import { WorkbenchObjectTree, IListService } from '../../../../platform/list/browser/listService.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { append, addStandardDisposableListener,
|
|
2
|
+
import { append, addStandardDisposableListener, $ as $$1, isMouseEvent, hide, show, addDisposableListener } from '../../../../base/browser/dom.js';
|
|
3
3
|
import { Gesture } from '../../../../base/browser/touch.js';
|
|
4
4
|
import { ActionBar } from '../../../../base/browser/ui/actionbar/actionbar.js';
|
|
5
5
|
import { IconLabel } from '../../../../base/browser/ui/iconLabel/iconLabel.js';
|
|
@@ -9,7 +9,7 @@ import { stringHash } from '../../../../base/common/hash.js';
|
|
|
9
9
|
import { Disposable } from '../../../../base/common/lifecycle.js';
|
|
10
10
|
import { mixin } from '../../../../base/common/objects.js';
|
|
11
11
|
import { basenameOrAuthority } from '../../../../base/common/resources.js';
|
|
12
|
-
import {
|
|
12
|
+
import { isUndefinedOrNull, isString } from '../../../../base/common/types.js';
|
|
13
13
|
import { URI } from '../../../../base/common/uri.js';
|
|
14
14
|
import { generateUuid } from '../../../../base/common/uuid.js';
|
|
15
15
|
import { Range } from '../../../../editor/common/core/range.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { localizeWithPath, localize2WithPath } from '../../../../nls.js';
|
|
3
3
|
import { OS, isWindows } from '../../../../base/common/platform.js';
|
|
4
|
-
import { extname, basename
|
|
5
|
-
import {
|
|
4
|
+
import { extname, basename, isAbsolute } from '../../../../base/common/path.js';
|
|
5
|
+
import { basenameOrAuthority, joinPath, basename as basename$1, isEqualOrParent, distinctParents } from '../../../../base/common/resources.js';
|
|
6
6
|
import { URI } from '../../../../base/common/uri.js';
|
|
7
7
|
import { toErrorMessage } from '../../../../base/common/errorMessage.js';
|
|
8
8
|
import { Action } from '../../../../base/common/actions.js';
|
|
@@ -19,7 +19,7 @@ import { IConfigurationService } from '../../../../platform/configuration/common
|
|
|
19
19
|
import { IClipboardService } from '../../../../platform/clipboard/common/clipboardService.js';
|
|
20
20
|
import { ILanguageService } from '../../../../editor/common/languages/language.js';
|
|
21
21
|
import { IModelService } from '../../../../editor/common/services/model.js';
|
|
22
|
-
import {
|
|
22
|
+
import { CommandsRegistry, ICommandService } from '../../../../platform/commands/common/commands.js';
|
|
23
23
|
import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
|
|
24
24
|
import { Schemas } from '../../../../base/common/network.js';
|
|
25
25
|
import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
@@ -46,7 +46,7 @@ import { IPaneCompositePartService } from '../../../services/panecomposite/brows
|
|
|
46
46
|
import { IRemoteAgentService } from '../../../services/remote/common/remoteAgentService.js';
|
|
47
47
|
import { IPathService } from '../../../services/path/common/pathService.js';
|
|
48
48
|
import { Action2 } from '../../../../platform/actions/common/actions.js';
|
|
49
|
-
import {
|
|
49
|
+
import { EmptyWorkspaceSupportContext, ActiveEditorContext, ActiveEditorCanToggleReadonlyContext } from '../../../common/contextkeys.js';
|
|
50
50
|
import { KeyChord } from '../../../../base/common/keyCodes.js';
|
|
51
51
|
import { Categories } from '../../../../platform/action/common/actionCommonCategories.js';
|
|
52
52
|
import { IDialogService, getFileNamesMessage } from '../../../../platform/dialogs/common/dialogs.js';
|
|
@@ -447,7 +447,7 @@ function incrementFileName(name, isFolder, incrementalNaming) {
|
|
|
447
447
|
let extSuffix = '';
|
|
448
448
|
if (!isFolder) {
|
|
449
449
|
extSuffix = extname(name);
|
|
450
|
-
namePrefix = basename
|
|
450
|
+
namePrefix = basename(name, extSuffix);
|
|
451
451
|
}
|
|
452
452
|
const suffixRegex = /^(.+ copy)( \d+)?$/;
|
|
453
453
|
if (suffixRegex.test(namePrefix)) {
|
|
@@ -545,7 +545,7 @@ async function askForOverwrite(fileService, dialogService, targetResource) {
|
|
|
545
545
|
'vs/workbench/contrib/files/browser/fileActions',
|
|
546
546
|
'confirmOverwrite',
|
|
547
547
|
"A file or folder with the name '{0}' already exists in the destination folder. Do you want to replace it?",
|
|
548
|
-
basename
|
|
548
|
+
basename(targetResource.path)
|
|
549
549
|
)),
|
|
550
550
|
primaryButton: ( localizeWithPath(
|
|
551
551
|
'vs/workbench/contrib/files/browser/fileActions',
|
|
@@ -892,7 +892,7 @@ class CompareWithClipboardAction extends Action2 {
|
|
|
892
892
|
const provider = instantiationService.createInstance(ClipboardContentProvider);
|
|
893
893
|
this.registrationDisposal = textModelService.registerTextModelContentProvider(scheme, provider);
|
|
894
894
|
}
|
|
895
|
-
const name = basename(resource);
|
|
895
|
+
const name = basename$1(resource);
|
|
896
896
|
const editorLabel = ( localizeWithPath(
|
|
897
897
|
'vs/workbench/contrib/files/browser/fileActions',
|
|
898
898
|
'clipboardComparisonLabel',
|
|
@@ -1176,7 +1176,7 @@ const pasteFileHandler = async (accessor, fileList) => {
|
|
|
1176
1176
|
'vs/workbench/contrib/files/browser/fileActions',
|
|
1177
1177
|
'confirmPasteNative',
|
|
1178
1178
|
"Are you sure you want to paste '{0}'?",
|
|
1179
|
-
basename
|
|
1179
|
+
basename(toPaste[0].fsPath)
|
|
1180
1180
|
));
|
|
1181
1181
|
const detail = toPaste.length > 1 ? getFileNamesMessage(toPaste) : undefined;
|
|
1182
1182
|
const confirmation = await dialogService.confirm({
|
|
@@ -30,7 +30,7 @@ import { IWorkspaceEditingService } from '../../../../services/workspaces/common
|
|
|
30
30
|
import { IEditorService } from '../../../../services/editor/common/editorService.js';
|
|
31
31
|
import { findValidPasteFileTarget } from '../fileActions.js';
|
|
32
32
|
import { createMatches } from '../../../../../base/common/filters.js';
|
|
33
|
-
import {
|
|
33
|
+
import { EventMultiplexer, Event, Emitter } from '../../../../../base/common/event.js';
|
|
34
34
|
import { ILabelService } from '../../../../../platform/label/common/label.js';
|
|
35
35
|
import { isStringArray, isNumber } from '../../../../../base/common/types.js';
|
|
36
36
|
import { IUriIdentityService } from '../../../../../platform/uriIdentity/common/uriIdentity.js';
|
|
@@ -33,7 +33,7 @@ import { isINotebookFileMatchWithModel, contentMatchesToTextSearchMatches, webvi
|
|
|
33
33
|
import { INotebookSearchService } from '../common/notebookSearch.js';
|
|
34
34
|
import { isINotebookFileMatchNoModel, rawCellPrefix } from '../common/searchNotebookHelpers.js';
|
|
35
35
|
import { ReplacePattern } from '../../../services/search/common/replace.js';
|
|
36
|
-
import {
|
|
36
|
+
import { resultIsMatch, OneLineRange, ISearchService } from '../../../services/search/common/search.js';
|
|
37
37
|
import { editorMatchesToTextSearchResults, getTextSearchMatchWithModelContext } from '../../../services/search/common/searchHelpers.js';
|
|
38
38
|
import { CellSearchModel } from '../common/cellSearchModel.js';
|
|
39
39
|
var FileMatch_1, FolderMatch_1, RangeHighlightDecorations_1;
|