@codingame/monaco-vscode-api 28.1.1 → 28.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/services.js +3 -3
- package/vscode/src/vs/base/browser/dom.js +4 -4
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +2 -2
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollbarArrow.js +1 -1
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollbarVisibilityController.js +4 -3
- package/vscode/src/vs/base/common/async.js +32 -32
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +2 -2
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findModel.js +1 -1
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +6 -6
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.js +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +1 -1
- package/vscode/src/vs/platform/hover/browser/hoverService.js +5 -4
- package/vscode/src/vs/platform/hover/browser/hoverWidget.js +1 -1
- package/vscode/src/vs/platform/instantiation/common/instantiationService.js +2 -2
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +1 -1
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +2 -2
- package/vscode/src/vs/workbench/browser/dnd.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/editor/singleEditorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +2 -2
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.js +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +1 -1
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainService.js +2 -2
- package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.js +1 -1
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +0 -5
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "28.
|
|
3
|
+
"version": "28.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-base-service-override": "28.
|
|
19
|
-
"@codingame/monaco-vscode-environment-service-override": "28.
|
|
20
|
-
"@codingame/monaco-vscode-extensions-service-override": "28.
|
|
21
|
-
"@codingame/monaco-vscode-files-service-override": "28.
|
|
22
|
-
"@codingame/monaco-vscode-host-service-override": "28.
|
|
23
|
-
"@codingame/monaco-vscode-layout-service-override": "28.
|
|
24
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "28.
|
|
18
|
+
"@codingame/monaco-vscode-base-service-override": "28.2.0",
|
|
19
|
+
"@codingame/monaco-vscode-environment-service-override": "28.2.0",
|
|
20
|
+
"@codingame/monaco-vscode-extensions-service-override": "28.2.0",
|
|
21
|
+
"@codingame/monaco-vscode-files-service-override": "28.2.0",
|
|
22
|
+
"@codingame/monaco-vscode-host-service-override": "28.2.0",
|
|
23
|
+
"@codingame/monaco-vscode-layout-service-override": "28.2.0",
|
|
24
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "28.2.0",
|
|
25
25
|
"@vscode/iconv-lite-umd": "0.7.1",
|
|
26
26
|
"dompurify": "3.3.3",
|
|
27
27
|
"jschardet": "3.1.4",
|
package/services.js
CHANGED
|
@@ -426,10 +426,10 @@ export { IGitService } from './vscode/src/vs/workbench/contrib/git/common/gitSer
|
|
|
426
426
|
export { IWorkbenchMcpGatewayService } from './vscode/src/vs/workbench/contrib/mcp/common/mcpGatewayService.service.js';
|
|
427
427
|
export { IMcpSandboxService } from './vscode/src/vs/workbench/contrib/mcp/common/mcpSandboxService.service.js';
|
|
428
428
|
|
|
429
|
-
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.111.0-
|
|
430
|
-
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.111.0-
|
|
429
|
+
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.111.0-0a60ed4e-0645-483f-8d04-b799663b9bac") {
|
|
430
|
+
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.111.0-0a60ed4e-0645-483f-8d04-b799663b9bac"}, ${window.monacoVscodeApiBuildId} is already loaded`);
|
|
431
431
|
}
|
|
432
|
-
window.monacoVscodeApiBuildId = "1.111.0-
|
|
432
|
+
window.monacoVscodeApiBuildId = "1.111.0-0a60ed4e-0645-483f-8d04-b799663b9bac";
|
|
433
433
|
function registerCommands(options) {
|
|
434
434
|
function asMenuId(menu) {
|
|
435
435
|
switch (menu) {
|
|
@@ -181,7 +181,7 @@ class ActiveElementTracker extends Disposable {
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
function trackActiveElement(window) {
|
|
184
|
-
return
|
|
184
|
+
return new ActiveElementTracker(window);
|
|
185
185
|
}
|
|
186
186
|
function _wrapAsStandardMouseEvent(targetWindow, handler) {
|
|
187
187
|
return function(e) {
|
|
@@ -384,7 +384,7 @@ class TimeoutThrottledDomListener extends Disposable {
|
|
|
384
384
|
super();
|
|
385
385
|
let lastEvent = null;
|
|
386
386
|
let lastHandlerTime = 0;
|
|
387
|
-
const timeout = this._register(
|
|
387
|
+
const timeout = this._register(new TimeoutTimer());
|
|
388
388
|
const invokeHandler = () => {
|
|
389
389
|
lastHandlerTime = ( new Date()).getTime();
|
|
390
390
|
handler(lastEvent);
|
|
@@ -403,7 +403,7 @@ class TimeoutThrottledDomListener extends Disposable {
|
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
function addDisposableThrottledListener(node, type, handler, eventMerger, minimumTimeMs) {
|
|
406
|
-
return
|
|
406
|
+
return new TimeoutThrottledDomListener(node, type, handler, eventMerger, minimumTimeMs);
|
|
407
407
|
}
|
|
408
408
|
function getComputedStyle(el) {
|
|
409
409
|
return getWindow(el).getComputedStyle(el, null);
|
|
@@ -988,7 +988,7 @@ class FocusTracker extends Disposable {
|
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
990
|
function trackFocus(element) {
|
|
991
|
-
return
|
|
991
|
+
return new FocusTracker(element);
|
|
992
992
|
}
|
|
993
993
|
function after(sibling, child) {
|
|
994
994
|
sibling.after(child);
|
|
@@ -173,7 +173,7 @@ class AbstractScrollableElement extends Widget {
|
|
|
173
173
|
this._setListeningToMouseWheel(this._options.handleMouseWheel);
|
|
174
174
|
this.onmouseover(this._listenOnDomNode, e => this._onMouseOver(e));
|
|
175
175
|
this.onmouseleave(this._listenOnDomNode, e => this._onMouseLeave(e));
|
|
176
|
-
this._hideTimeout = this._register(
|
|
176
|
+
this._hideTimeout = this._register(new TimeoutTimer());
|
|
177
177
|
this._isDragging = false;
|
|
178
178
|
this._mouseIsOver = false;
|
|
179
179
|
this._shouldRender = true;
|
|
@@ -272,7 +272,7 @@ class AbstractScrollableElement extends Widget {
|
|
|
272
272
|
}
|
|
273
273
|
if (scheduleAgain) {
|
|
274
274
|
if (!this._inertialTimeout) {
|
|
275
|
-
this._inertialTimeout =
|
|
275
|
+
this._inertialTimeout = new TimeoutTimer();
|
|
276
276
|
}
|
|
277
277
|
this._inertialTimeout.cancelAndSet(() => this._periodicSync(), 1000 / 60);
|
|
278
278
|
} else {
|
|
@@ -53,7 +53,7 @@ class ScrollbarArrow extends Widget {
|
|
|
53
53
|
addStandardDisposableListener(this.domNode, EventType.POINTER_DOWN, e => this._arrowPointerDown(e))
|
|
54
54
|
);
|
|
55
55
|
this._pointerdownRepeatTimer = this._register(new WindowIntervalTimer());
|
|
56
|
-
this._pointerdownScheduleRepeatTimer = this._register(
|
|
56
|
+
this._pointerdownScheduleRepeatTimer = this._register(new TimeoutTimer());
|
|
57
57
|
}
|
|
58
58
|
_arrowPointerDown(e) {
|
|
59
59
|
if (!e.target || !isElement(e.target)) {
|
|
@@ -14,7 +14,7 @@ class ScrollbarVisibilityController extends Disposable {
|
|
|
14
14
|
this._isNeeded = false;
|
|
15
15
|
this._rawShouldBeVisible = false;
|
|
16
16
|
this._shouldBeVisible = false;
|
|
17
|
-
this._revealTimer = this._register(
|
|
17
|
+
this._revealTimer = this._register(new TimeoutTimer());
|
|
18
18
|
}
|
|
19
19
|
setVisibility(visibility) {
|
|
20
20
|
if (this._visibility !== visibility) {
|
|
@@ -60,7 +60,8 @@ class ScrollbarVisibilityController extends Disposable {
|
|
|
60
60
|
}
|
|
61
61
|
if (this._shouldBeVisible) {
|
|
62
62
|
this._reveal();
|
|
63
|
-
}
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
64
65
|
this._hide(true);
|
|
65
66
|
}
|
|
66
67
|
}
|
|
@@ -79,7 +80,7 @@ class ScrollbarVisibilityController extends Disposable {
|
|
|
79
80
|
return;
|
|
80
81
|
}
|
|
81
82
|
this._isVisible = false;
|
|
82
|
-
this._domNode?.setClassName(this._invisibleClassName + (withFadeAway ?
|
|
83
|
+
this._domNode?.setClassName(this._invisibleClassName + (withFadeAway ? ' fade' : ''));
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
|
|
@@ -1057,28 +1057,28 @@ var AsyncIterableSourceState;
|
|
|
1057
1057
|
})(AsyncIterableSourceState || (AsyncIterableSourceState = {}));
|
|
1058
1058
|
class AsyncIterableObject {
|
|
1059
1059
|
static fromArray(items) {
|
|
1060
|
-
return
|
|
1060
|
+
return new AsyncIterableObject(writer => {
|
|
1061
1061
|
writer.emitMany(items);
|
|
1062
|
-
})
|
|
1062
|
+
});
|
|
1063
1063
|
}
|
|
1064
1064
|
static fromPromise(promise) {
|
|
1065
|
-
return
|
|
1065
|
+
return new AsyncIterableObject(async emitter => {
|
|
1066
1066
|
emitter.emitMany(await promise);
|
|
1067
|
-
})
|
|
1067
|
+
});
|
|
1068
1068
|
}
|
|
1069
1069
|
static fromPromisesResolveOrder(promises) {
|
|
1070
|
-
return
|
|
1070
|
+
return new AsyncIterableObject(async emitter => {
|
|
1071
1071
|
await Promise.all(( promises.map(async p => emitter.emitOne(await p))));
|
|
1072
|
-
})
|
|
1072
|
+
});
|
|
1073
1073
|
}
|
|
1074
1074
|
static merge(iterables) {
|
|
1075
|
-
return
|
|
1075
|
+
return new AsyncIterableObject(async emitter => {
|
|
1076
1076
|
await Promise.all(( iterables.map(async iterable => {
|
|
1077
1077
|
for await (const item of iterable) {
|
|
1078
1078
|
emitter.emitOne(item);
|
|
1079
1079
|
}
|
|
1080
1080
|
})));
|
|
1081
|
-
})
|
|
1081
|
+
});
|
|
1082
1082
|
}
|
|
1083
1083
|
static {
|
|
1084
1084
|
this.EMPTY = AsyncIterableObject.fromArray([]);
|
|
@@ -1140,23 +1140,23 @@ class AsyncIterableObject {
|
|
|
1140
1140
|
};
|
|
1141
1141
|
}
|
|
1142
1142
|
static map(iterable, mapFn) {
|
|
1143
|
-
return
|
|
1143
|
+
return new AsyncIterableObject(async emitter => {
|
|
1144
1144
|
for await (const item of iterable) {
|
|
1145
1145
|
emitter.emitOne(mapFn(item));
|
|
1146
1146
|
}
|
|
1147
|
-
})
|
|
1147
|
+
});
|
|
1148
1148
|
}
|
|
1149
1149
|
map(mapFn) {
|
|
1150
1150
|
return ( AsyncIterableObject.map(this, mapFn));
|
|
1151
1151
|
}
|
|
1152
1152
|
static filter(iterable, filterFn) {
|
|
1153
|
-
return
|
|
1153
|
+
return new AsyncIterableObject(async emitter => {
|
|
1154
1154
|
for await (const item of iterable) {
|
|
1155
1155
|
if (filterFn(item)) {
|
|
1156
1156
|
emitter.emitOne(item);
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
1159
|
-
})
|
|
1159
|
+
});
|
|
1160
1160
|
}
|
|
1161
1161
|
filter(filterFn) {
|
|
1162
1162
|
return AsyncIterableObject.filter(this, filterFn);
|
|
@@ -1210,7 +1210,7 @@ class AsyncIterableObject {
|
|
|
1210
1210
|
function createCancelableAsyncIterableProducer(callback) {
|
|
1211
1211
|
const source = ( new CancellationTokenSource());
|
|
1212
1212
|
const innerIterable = callback(source.token);
|
|
1213
|
-
return
|
|
1213
|
+
return new CancelableAsyncIterableProducer(source, async emitter => {
|
|
1214
1214
|
const subscription = source.token.onCancellationRequested(() => {
|
|
1215
1215
|
subscription.dispose();
|
|
1216
1216
|
source.dispose();
|
|
@@ -1230,12 +1230,12 @@ function createCancelableAsyncIterableProducer(callback) {
|
|
|
1230
1230
|
source.dispose();
|
|
1231
1231
|
emitter.reject(err);
|
|
1232
1232
|
}
|
|
1233
|
-
})
|
|
1233
|
+
});
|
|
1234
1234
|
}
|
|
1235
1235
|
class AsyncIterableSource {
|
|
1236
1236
|
constructor(onReturn) {
|
|
1237
1237
|
this._deferred = ( new DeferredPromise());
|
|
1238
|
-
this._asyncIterable =
|
|
1238
|
+
this._asyncIterable = new AsyncIterableObject(emitter => {
|
|
1239
1239
|
if (earlyError) {
|
|
1240
1240
|
emitter.reject(earlyError);
|
|
1241
1241
|
return;
|
|
@@ -1247,7 +1247,7 @@ class AsyncIterableSource {
|
|
|
1247
1247
|
this._emitOneFn = item => emitter.emitOne(item);
|
|
1248
1248
|
this._emitManyFn = items => emitter.emitMany(items);
|
|
1249
1249
|
return this._deferred.p;
|
|
1250
|
-
}, onReturn)
|
|
1250
|
+
}, onReturn);
|
|
1251
1251
|
let earlyError;
|
|
1252
1252
|
let earlyItems;
|
|
1253
1253
|
this._errorFn = error => {
|
|
@@ -1392,38 +1392,38 @@ class AsyncIterableProducer {
|
|
|
1392
1392
|
});
|
|
1393
1393
|
}
|
|
1394
1394
|
static fromArray(items) {
|
|
1395
|
-
return
|
|
1395
|
+
return new AsyncIterableProducer(writer => {
|
|
1396
1396
|
writer.emitMany(items);
|
|
1397
|
-
})
|
|
1397
|
+
});
|
|
1398
1398
|
}
|
|
1399
1399
|
static fromPromise(promise) {
|
|
1400
|
-
return
|
|
1400
|
+
return new AsyncIterableProducer(async emitter => {
|
|
1401
1401
|
emitter.emitMany(await promise);
|
|
1402
|
-
})
|
|
1402
|
+
});
|
|
1403
1403
|
}
|
|
1404
1404
|
static fromPromisesResolveOrder(promises) {
|
|
1405
|
-
return
|
|
1405
|
+
return new AsyncIterableProducer(async emitter => {
|
|
1406
1406
|
await Promise.all(( promises.map(async p => emitter.emitOne(await p))));
|
|
1407
|
-
})
|
|
1407
|
+
});
|
|
1408
1408
|
}
|
|
1409
1409
|
static merge(iterables) {
|
|
1410
|
-
return
|
|
1410
|
+
return new AsyncIterableProducer(async emitter => {
|
|
1411
1411
|
await Promise.all(( iterables.map(async iterable => {
|
|
1412
1412
|
for await (const item of iterable) {
|
|
1413
1413
|
emitter.emitOne(item);
|
|
1414
1414
|
}
|
|
1415
1415
|
})));
|
|
1416
|
-
})
|
|
1416
|
+
});
|
|
1417
1417
|
}
|
|
1418
1418
|
static {
|
|
1419
1419
|
this.EMPTY = AsyncIterableProducer.fromArray([]);
|
|
1420
1420
|
}
|
|
1421
1421
|
static map(iterable, mapFn) {
|
|
1422
|
-
return
|
|
1422
|
+
return new AsyncIterableProducer(async emitter => {
|
|
1423
1423
|
for await (const item of iterable) {
|
|
1424
1424
|
emitter.emitOne(mapFn(item));
|
|
1425
1425
|
}
|
|
1426
|
-
})
|
|
1426
|
+
});
|
|
1427
1427
|
}
|
|
1428
1428
|
static tee(iterable) {
|
|
1429
1429
|
let emitter1;
|
|
@@ -1445,16 +1445,16 @@ class AsyncIterableProducer {
|
|
|
1445
1445
|
defer.complete();
|
|
1446
1446
|
}
|
|
1447
1447
|
};
|
|
1448
|
-
const p1 =
|
|
1448
|
+
const p1 = new AsyncIterableProducer(async emitter => {
|
|
1449
1449
|
emitter1 = emitter;
|
|
1450
1450
|
start();
|
|
1451
1451
|
return defer.p;
|
|
1452
|
-
})
|
|
1453
|
-
const p2 =
|
|
1452
|
+
});
|
|
1453
|
+
const p2 = new AsyncIterableProducer(async emitter => {
|
|
1454
1454
|
emitter2 = emitter;
|
|
1455
1455
|
start();
|
|
1456
1456
|
return defer.p;
|
|
1457
|
-
})
|
|
1457
|
+
});
|
|
1458
1458
|
return [p1, p2];
|
|
1459
1459
|
}
|
|
1460
1460
|
map(mapFn) {
|
|
@@ -1467,13 +1467,13 @@ class AsyncIterableProducer {
|
|
|
1467
1467
|
return AsyncIterableProducer.coalesce(this);
|
|
1468
1468
|
}
|
|
1469
1469
|
static filter(iterable, filterFn) {
|
|
1470
|
-
return
|
|
1470
|
+
return new AsyncIterableProducer(async emitter => {
|
|
1471
1471
|
for await (const item of iterable) {
|
|
1472
1472
|
if (filterFn(item)) {
|
|
1473
1473
|
emitter.emitOne(item);
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
|
-
})
|
|
1476
|
+
});
|
|
1477
1477
|
}
|
|
1478
1478
|
filter(filterFn) {
|
|
1479
1479
|
return AsyncIterableProducer.filter(this, filterFn);
|
|
@@ -73,11 +73,11 @@ let NativeEditContext = class NativeEditContext extends AbstractEditContext {
|
|
|
73
73
|
overflowGuardContainer.appendChild(this.domNode);
|
|
74
74
|
overflowGuardContainer.appendChild(this._imeTextArea);
|
|
75
75
|
this._parent = overflowGuardContainer.domNode;
|
|
76
|
-
this._focusTracker = this._register(
|
|
76
|
+
this._focusTracker = this._register(new FocusTracker(logService, this.domNode.domNode, newFocusValue => {
|
|
77
77
|
logService.trace("NativeEditContext#handleFocusChange : ", newFocusValue);
|
|
78
78
|
this._screenReaderSupport.handleFocusChange(newFocusValue);
|
|
79
79
|
this._context.viewModel.setHasFocus(newFocusValue);
|
|
80
|
-
}))
|
|
80
|
+
}));
|
|
81
81
|
const window = getWindow(this.domNode.domNode);
|
|
82
82
|
this._editContext = EditContext.create(window);
|
|
83
83
|
this.setEditContextOnDomNode();
|
|
@@ -38,7 +38,7 @@ let InlineCompletionsService = class InlineCompletionsService extends Disposable
|
|
|
38
38
|
this.onDidChangeIsSnoozing = this._onDidChangeIsSnoozing.event;
|
|
39
39
|
this._snoozeTimeEnd = undefined;
|
|
40
40
|
this._recentCompletionIds = [];
|
|
41
|
-
this._timer = this._register(
|
|
41
|
+
this._timer = this._register(new TimeoutTimer());
|
|
42
42
|
const inlineCompletionsSnoozing = InlineCompletionsSnoozing.bindTo(this._contextKeyService);
|
|
43
43
|
this._register(
|
|
44
44
|
this.onDidChangeIsSnoozing(() => inlineCompletionsSnoozing.set(this.isSnoozing()))
|
|
@@ -36,7 +36,7 @@ class ViewCursors extends ViewPart {
|
|
|
36
36
|
this._domNode.setAttribute("aria-hidden", "true");
|
|
37
37
|
this._updateDomClassName();
|
|
38
38
|
this._domNode.appendChild(this._primaryCursor.getDomNode());
|
|
39
|
-
this._startCursorBlinkAnimation =
|
|
39
|
+
this._startCursorBlinkAnimation = new TimeoutTimer();
|
|
40
40
|
this._cursorFlatBlinkInterval = ( new WindowIntervalTimer());
|
|
41
41
|
this._blinkingEnabled = false;
|
|
42
42
|
this._editorHasFocus = false;
|
|
@@ -23,7 +23,7 @@ class CodeActionOracle extends Disposable {
|
|
|
23
23
|
this._markerService = _markerService;
|
|
24
24
|
this._signalChange = _signalChange;
|
|
25
25
|
this._delay = _delay;
|
|
26
|
-
this._autoTriggerTimer = this._register(
|
|
26
|
+
this._autoTriggerTimer = this._register(new TimeoutTimer());
|
|
27
27
|
this.ignoreLightbulbOff = false;
|
|
28
28
|
this._register(this._markerService.onMarkerChanged(e => this._onMarkerChanges(e)));
|
|
29
29
|
this._register(this._editor.onDidChangeCursorPosition(() => this._tryAutoTrigger()));
|
|
@@ -113,7 +113,7 @@ let ColorDetector = class ColorDetector extends Disposable {
|
|
|
113
113
|
}
|
|
114
114
|
this._localToDispose.add(this._editor.onDidChangeModelContent(() => {
|
|
115
115
|
if (!this._timeoutTimer) {
|
|
116
|
-
this._timeoutTimer =
|
|
116
|
+
this._timeoutTimer = new TimeoutTimer();
|
|
117
117
|
this._timeoutTimer.cancelAndSet(() => {
|
|
118
118
|
this._timeoutTimer = null;
|
|
119
119
|
this.beginCompute();
|
|
@@ -81,7 +81,7 @@ class FindModelBoundToEditorModel {
|
|
|
81
81
|
this._editor = editor;
|
|
82
82
|
this._state = state;
|
|
83
83
|
this._isDisposed = false;
|
|
84
|
-
this._startSearchingTimer =
|
|
84
|
+
this._startSearchingTimer = new TimeoutTimer();
|
|
85
85
|
this._decorations = ( new FindDecorations(editor));
|
|
86
86
|
this._toDispose.add(this._decorations);
|
|
87
87
|
this._updateDecorationsScheduler = ( new RunOnceScheduler(() => {
|
|
@@ -79,7 +79,7 @@ let InlayHintsHover = class InlayHintsHover extends MarkdownHoverParticipant {
|
|
|
79
79
|
if (!(anchor instanceof InlayHintsHoverAnchor)) {
|
|
80
80
|
return AsyncIterableProducer.EMPTY;
|
|
81
81
|
}
|
|
82
|
-
return
|
|
82
|
+
return new AsyncIterableProducer(async executor => {
|
|
83
83
|
const {
|
|
84
84
|
part
|
|
85
85
|
} = anchor;
|
|
@@ -129,7 +129,7 @@ let InlayHintsHover = class InlayHintsHover extends MarkdownHoverParticipant {
|
|
|
129
129
|
for await (const item of iterable) {
|
|
130
130
|
executor.emitOne(item);
|
|
131
131
|
}
|
|
132
|
-
})
|
|
132
|
+
});
|
|
133
133
|
}
|
|
134
134
|
async *_resolveInlayHintLabelPartHover(part, token) {
|
|
135
135
|
if (!part.part.location) {
|
|
@@ -138,7 +138,7 @@ let SuggestController = class SuggestController {
|
|
|
138
138
|
this._toDispose.add(
|
|
139
139
|
this.model.onDidTrigger(() => ctxInsertMode.set(editor.getOption(EditorOption.suggest).insertMode))
|
|
140
140
|
);
|
|
141
|
-
this.widget = this._toDispose.add(
|
|
141
|
+
this.widget = this._toDispose.add(new WindowIdleValue(getWindow(editor.getDomNode()), () => {
|
|
142
142
|
const widget = this._instantiationService.createInstance(SuggestWidget, this.editor);
|
|
143
143
|
this._toDispose.add(widget);
|
|
144
144
|
this._toDispose.add(
|
|
@@ -187,13 +187,13 @@ let SuggestController = class SuggestController {
|
|
|
187
187
|
widget.forceRenderingAbove();
|
|
188
188
|
}
|
|
189
189
|
return widget;
|
|
190
|
-
}))
|
|
191
|
-
this._overtypingCapturer = this._toDispose.add(
|
|
190
|
+
}));
|
|
191
|
+
this._overtypingCapturer = this._toDispose.add(new WindowIdleValue(getWindow(editor.getDomNode()), () => {
|
|
192
192
|
return this._toDispose.add(( new OvertypingCapturer(this.editor, this.model)));
|
|
193
|
-
}))
|
|
194
|
-
this._alternatives = this._toDispose.add(
|
|
193
|
+
}));
|
|
194
|
+
this._alternatives = this._toDispose.add(new WindowIdleValue(getWindow(editor.getDomNode()), () => {
|
|
195
195
|
return this._toDispose.add(( new SuggestAlternatives(this.editor, this._contextKeyService)));
|
|
196
|
-
}))
|
|
196
|
+
}));
|
|
197
197
|
this._toDispose.add(_instantiationService.createInstance(WordContextKey, editor));
|
|
198
198
|
this._toDispose.add(this.model.onDidTrigger(e => {
|
|
199
199
|
this.widget.value.showTriggered(e.auto, e.shy ? 250 : 50);
|
|
@@ -106,7 +106,7 @@ let SuggestModel = SuggestModel_1 = class SuggestModel {
|
|
|
106
106
|
this._envService = _envService;
|
|
107
107
|
this._toDispose = ( new DisposableStore());
|
|
108
108
|
this._triggerCharacterListener = ( new DisposableStore());
|
|
109
|
-
this._triggerQuickSuggest =
|
|
109
|
+
this._triggerQuickSuggest = new TimeoutTimer();
|
|
110
110
|
this._triggerState = undefined;
|
|
111
111
|
this._completionDisposables = ( new DisposableStore());
|
|
112
112
|
this._onDidCancel = ( new Emitter());
|
|
@@ -139,7 +139,7 @@ let SuggestWidget = class SuggestWidget {
|
|
|
139
139
|
this._ignoreFocusEvents = false;
|
|
140
140
|
this._forceRenderingAbove = false;
|
|
141
141
|
this._explainMode = false;
|
|
142
|
-
this._showTimeout =
|
|
142
|
+
this._showTimeout = new TimeoutTimer();
|
|
143
143
|
this._disposables = ( new DisposableStore());
|
|
144
144
|
this._onDidSelect = ( new PauseableEmitter());
|
|
145
145
|
this._onDidFocus = ( new PauseableEmitter());
|
|
@@ -286,9 +286,9 @@ let HoverService = class HoverService extends Disposable {
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
if ("IntersectionObserver" in mainWindow) {
|
|
289
|
-
const observer =
|
|
289
|
+
const observer = new mainWindow.IntersectionObserver(e => this._intersectionChange(e, hover), {
|
|
290
290
|
threshold: 0
|
|
291
|
-
})
|
|
291
|
+
});
|
|
292
292
|
const firstTargetElement = "targetElements" in options.target ? options.target.targetElements[0] : options.target;
|
|
293
293
|
observer.observe(firstTargetElement);
|
|
294
294
|
hoverDisposables.add(toDisposable(() => observer.disconnect()));
|
|
@@ -451,7 +451,7 @@ let HoverService = class HoverService extends Disposable {
|
|
|
451
451
|
}
|
|
452
452
|
};
|
|
453
453
|
const triggerShowHover = (delay, focus, target, trapFocus) => {
|
|
454
|
-
return
|
|
454
|
+
return new TimeoutTimer(async () => {
|
|
455
455
|
if (!hoverWidget || hoverWidget.isDisposed) {
|
|
456
456
|
hoverWidget = ( new ManagedHoverWidget(hoverDelegate, target || targetElement, delay > 0));
|
|
457
457
|
await hoverWidget.update(typeof content === "function" ? content() : content, focus, {
|
|
@@ -459,7 +459,7 @@ let HoverService = class HoverService extends Disposable {
|
|
|
459
459
|
trapFocus
|
|
460
460
|
});
|
|
461
461
|
}
|
|
462
|
-
}, delay)
|
|
462
|
+
}, delay);
|
|
463
463
|
};
|
|
464
464
|
const store = ( new DisposableStore());
|
|
465
465
|
let isMouseDown = false;
|
|
@@ -531,6 +531,7 @@ let HoverService = class HoverService extends Disposable {
|
|
|
531
531
|
const hover = {
|
|
532
532
|
show: focus => {
|
|
533
533
|
hideHover(false, true);
|
|
534
|
+
triggerShowHover(0, focus, undefined, focus);
|
|
534
535
|
},
|
|
535
536
|
hide: () => {
|
|
536
537
|
hideHover(true, true);
|
|
@@ -561,7 +561,7 @@ class CompositeMouseTracker extends Widget {
|
|
|
561
561
|
}
|
|
562
562
|
_onTargetMouseLeave() {
|
|
563
563
|
this._isMouseIn = false;
|
|
564
|
-
this._mouseTimer.value =
|
|
564
|
+
this._mouseTimer.value = new TimeoutTimer(() => this._fireIfMouseOutside(), this._eventDebounceDelay);
|
|
565
565
|
}
|
|
566
566
|
_fireIfMouseOutside() {
|
|
567
567
|
if (!this._isMouseIn) {
|
|
@@ -267,7 +267,7 @@ class InstantiationService {
|
|
|
267
267
|
const child = ( new InstantiationService(undefined, this._strict, this, this._enableTracing));
|
|
268
268
|
child._globalGraphImplicitDependency = String(id);
|
|
269
269
|
const earlyListeners = ( new Map());
|
|
270
|
-
const idle =
|
|
270
|
+
const idle = new GlobalIdleValue(() => {
|
|
271
271
|
const result = child._createInstance(ctor, args, _trace);
|
|
272
272
|
for (const [key, values] of earlyListeners) {
|
|
273
273
|
const candidate = result[key];
|
|
@@ -280,7 +280,7 @@ class InstantiationService {
|
|
|
280
280
|
earlyListeners.clear();
|
|
281
281
|
disposeBucket.add(result);
|
|
282
282
|
return result;
|
|
283
|
-
})
|
|
283
|
+
});
|
|
284
284
|
return ( new Proxy(Object.create(null), {
|
|
285
285
|
get(target, key) {
|
|
286
286
|
if (!idle.isInitialized) {
|
|
@@ -36,7 +36,7 @@ class AbstractKeybindingService extends Disposable {
|
|
|
36
36
|
this._currentChordStatusMessage = null;
|
|
37
37
|
this._ignoreSingleModifiers = KeybindingModifierSet.EMPTY;
|
|
38
38
|
this._currentSingleModifier = null;
|
|
39
|
-
this._currentSingleModifierClearTimeout =
|
|
39
|
+
this._currentSingleModifierClearTimeout = new TimeoutTimer();
|
|
40
40
|
this._currentlyDispatchingCommandId = null;
|
|
41
41
|
this._logging = false;
|
|
42
42
|
}
|
|
@@ -240,7 +240,7 @@ class QuickInput extends Disposable {
|
|
|
240
240
|
this.ui.description2.textContent = description;
|
|
241
241
|
}
|
|
242
242
|
if (this.busy && !this.busyDelay) {
|
|
243
|
-
this.busyDelay =
|
|
243
|
+
this.busyDelay = new TimeoutTimer();
|
|
244
244
|
this.busyDelay.setIfNotSet(() => {
|
|
245
245
|
if (this.visible) {
|
|
246
246
|
this.ui.progressBar.infinite();
|
|
@@ -28,7 +28,7 @@ var ExtHostLanguageModels_1;
|
|
|
28
28
|
const IExtHostLanguageModels = ( createDecorator("IExtHostLanguageModels"));
|
|
29
29
|
class LanguageModelResponse {
|
|
30
30
|
constructor() {
|
|
31
|
-
this._defaultStream =
|
|
31
|
+
this._defaultStream = new AsyncIterableSource();
|
|
32
32
|
this._isDone = false;
|
|
33
33
|
const that = this;
|
|
34
34
|
const [stream1, stream2] = AsyncIterableProducer.tee(that._defaultStream.asyncIterable);
|
|
@@ -364,10 +364,10 @@ class ShellExecutionDataStream extends Disposable {
|
|
|
364
364
|
this._barrier = ( new Barrier());
|
|
365
365
|
}
|
|
366
366
|
const barrier = this._barrier;
|
|
367
|
-
const iterable =
|
|
367
|
+
const iterable = new AsyncIterableObject(async emitter => {
|
|
368
368
|
this._emitters.push(emitter);
|
|
369
369
|
await barrier.wait();
|
|
370
|
-
})
|
|
370
|
+
});
|
|
371
371
|
this._iterables.push(iterable);
|
|
372
372
|
return iterable;
|
|
373
373
|
}
|
|
@@ -564,7 +564,7 @@ let ExtHostWorkspace = class ExtHostWorkspace {
|
|
|
564
564
|
result,
|
|
565
565
|
uri
|
|
566
566
|
}), token);
|
|
567
|
-
const asyncIterable =
|
|
567
|
+
const asyncIterable = new AsyncIterableProducer(async emitter => {
|
|
568
568
|
disposables.add(progressEmitter.event(e => {
|
|
569
569
|
const result = e.result;
|
|
570
570
|
const uri = e.uri;
|
|
@@ -588,7 +588,7 @@ let ExtHostWorkspace = class ExtHostWorkspace {
|
|
|
588
588
|
}
|
|
589
589
|
}));
|
|
590
590
|
await complete;
|
|
591
|
-
})
|
|
591
|
+
});
|
|
592
592
|
return {
|
|
593
593
|
results: asyncIterable,
|
|
594
594
|
complete: complete.then(e => {
|
|
@@ -408,7 +408,7 @@ class CompositeDragAndDropObserver extends Disposable {
|
|
|
408
408
|
}
|
|
409
409
|
registerTarget(element, callbacks) {
|
|
410
410
|
const disposableStore = ( new DisposableStore());
|
|
411
|
-
disposableStore.add(
|
|
411
|
+
disposableStore.add(new DragAndDropObserver(element, {
|
|
412
412
|
onDragEnter: e => {
|
|
413
413
|
e.preventDefault();
|
|
414
414
|
if (callbacks.onDragEnter) {
|
|
@@ -459,7 +459,7 @@ class CompositeDragAndDropObserver extends Disposable {
|
|
|
459
459
|
});
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
}))
|
|
462
|
+
}));
|
|
463
463
|
if (callbacks.onDragStart) {
|
|
464
464
|
this.onDragStart.event(e => {
|
|
465
465
|
callbacks.onDragStart(e);
|
|
@@ -475,7 +475,7 @@ class CompositeDragAndDropObserver extends Disposable {
|
|
|
475
475
|
registerDraggable(element, draggedItemProvider, callbacks) {
|
|
476
476
|
element.draggable = true;
|
|
477
477
|
const disposableStore = ( new DisposableStore());
|
|
478
|
-
disposableStore.add(
|
|
478
|
+
disposableStore.add(new DragAndDropObserver(element, {
|
|
479
479
|
onDragStart: e => {
|
|
480
480
|
const {
|
|
481
481
|
id,
|
|
@@ -553,7 +553,7 @@ class CompositeDragAndDropObserver extends Disposable {
|
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
}))
|
|
556
|
+
}));
|
|
557
557
|
if (callbacks.onDragStart) {
|
|
558
558
|
this.onDragStart.event(e => {
|
|
559
559
|
callbacks.onDragStart(e);
|
|
@@ -126,7 +126,7 @@ let DropOverlay = class DropOverlay extends Themable {
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
registerListeners(container) {
|
|
129
|
-
this._register(
|
|
129
|
+
this._register(new DragAndDropObserver(container, {
|
|
130
130
|
onDragOver: e => {
|
|
131
131
|
if (this.enableDropIntoEditor && isDragIntoEditorEvent(e)) {
|
|
132
132
|
this.dispose();
|
|
@@ -173,7 +173,7 @@ let DropOverlay = class DropOverlay extends Themable {
|
|
|
173
173
|
this.handleDrop(e, this.currentDropOperation.splitDirection);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
}))
|
|
176
|
+
}));
|
|
177
177
|
this._register(addDisposableListener(container, EventType.MOUSE_OVER, () => {
|
|
178
178
|
if (!this.cleanupOverlayScheduler.isScheduled()) {
|
|
179
179
|
this.cleanupOverlayScheduler.schedule();
|
|
@@ -295,7 +295,7 @@ let MultiEditorTabsControl = class MultiEditorTabsControl extends EditorTabsCont
|
|
|
295
295
|
}
|
|
296
296
|
let lastDragEvent = undefined;
|
|
297
297
|
let isNewWindowOperation = false;
|
|
298
|
-
this._register(
|
|
298
|
+
this._register(new DragAndDropObserver(tabsContainer, {
|
|
299
299
|
onDragStart: e => {
|
|
300
300
|
isNewWindowOperation = this.onGroupDragStart(e, tabsContainer);
|
|
301
301
|
},
|
|
@@ -341,7 +341,7 @@ let MultiEditorTabsControl = class MultiEditorTabsControl extends EditorTabsCont
|
|
|
341
341
|
);
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
|
-
}))
|
|
344
|
+
}));
|
|
345
345
|
this._register(addDisposableListener(tabsContainer, EventType.MOUSE_WHEEL, e => {
|
|
346
346
|
const activeEditor = this.groupView.activeEditor;
|
|
347
347
|
if (!activeEditor || this.groupView.count < 2) {
|
|
@@ -861,7 +861,7 @@ let MultiEditorTabsControl = class MultiEditorTabsControl extends EditorTabsCont
|
|
|
861
861
|
}, true ));
|
|
862
862
|
let lastDragEvent = undefined;
|
|
863
863
|
let isNewWindowOperation = false;
|
|
864
|
-
disposables.add(
|
|
864
|
+
disposables.add(new DragAndDropObserver(tab, {
|
|
865
865
|
onDragStart: e => {
|
|
866
866
|
const editor = this.tabsModel.getEditorByIndex(tabIndex);
|
|
867
867
|
if (!editor) {
|
|
@@ -944,7 +944,7 @@ let MultiEditorTabsControl = class MultiEditorTabsControl extends EditorTabsCont
|
|
|
944
944
|
}
|
|
945
945
|
this.onDrop(e, targetIndex, tabsContainer);
|
|
946
946
|
}
|
|
947
|
-
}))
|
|
947
|
+
}));
|
|
948
948
|
return disposables;
|
|
949
949
|
}
|
|
950
950
|
isSupportedDropTransfer(e) {
|
|
@@ -62,7 +62,7 @@ class SingleEditorTabsControl extends EditorTabsControl {
|
|
|
62
62
|
registerContainerListeners(titleContainer) {
|
|
63
63
|
let lastDragEvent = undefined;
|
|
64
64
|
let isNewWindowOperation = false;
|
|
65
|
-
this._register(
|
|
65
|
+
this._register(new DragAndDropObserver(titleContainer, {
|
|
66
66
|
onDragStart: e => {
|
|
67
67
|
isNewWindowOperation = this.onGroupDragStart(e, titleContainer);
|
|
68
68
|
},
|
|
@@ -72,7 +72,7 @@ class SingleEditorTabsControl extends EditorTabsControl {
|
|
|
72
72
|
onDragEnd: e => {
|
|
73
73
|
this.onGroupDragEnd(e, lastDragEvent, titleContainer, isNewWindowOperation);
|
|
74
74
|
}
|
|
75
|
-
}))
|
|
75
|
+
}));
|
|
76
76
|
this._register(
|
|
77
77
|
addDisposableListener(titleContainer, EventType.DBLCLICK, e => this.onTitleDoubleClick(e))
|
|
78
78
|
);
|
|
@@ -113,7 +113,7 @@ class ViewPaneDropOverlay extends Themable {
|
|
|
113
113
|
this.overlay.style.borderWidth = "0px";
|
|
114
114
|
}
|
|
115
115
|
registerListeners() {
|
|
116
|
-
this._register(
|
|
116
|
+
this._register(new DragAndDropObserver(this.container, {
|
|
117
117
|
onDragOver: e => {
|
|
118
118
|
this.positionOverlay(e.offsetX, e.offsetY);
|
|
119
119
|
if (this.cleanupOverlayScheduler.isScheduled()) {
|
|
@@ -125,7 +125,7 @@ class ViewPaneDropOverlay extends Themable {
|
|
|
125
125
|
onDrop: e => {
|
|
126
126
|
this.dispose();
|
|
127
127
|
}
|
|
128
|
-
}))
|
|
128
|
+
}));
|
|
129
129
|
this._register(addDisposableListener(this.container, EventType.MOUSE_OVER, () => {
|
|
130
130
|
if (!this.cleanupOverlayScheduler.isScheduled()) {
|
|
131
131
|
this.cleanupOverlayScheduler.schedule();
|
|
@@ -571,7 +571,7 @@ let ExtensionsViewPaneContainer = class ExtensionsViewPaneContainer extends View
|
|
|
571
571
|
actionViewItemProvider: (action, options) => createActionViewItem(this.instantiationService, action, options)
|
|
572
572
|
})
|
|
573
573
|
);
|
|
574
|
-
this._register(
|
|
574
|
+
this._register(new DragAndDropObserver(this.root, {
|
|
575
575
|
onDragEnter: e => {
|
|
576
576
|
if (this.isSupportedDragElement(e)) {
|
|
577
577
|
show(overlay);
|
|
@@ -602,7 +602,7 @@ let ExtensionsViewPaneContainer = class ExtensionsViewPaneContainer extends View
|
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
}))
|
|
605
|
+
}));
|
|
606
606
|
super.create(append(this.root, $(".extensions")));
|
|
607
607
|
const focusTracker = this._register(trackFocus(this.root));
|
|
608
608
|
const isSearchBoxFocused = () => this.searchBox?.inputWidget.hasWidgetFocus();
|
|
@@ -77,7 +77,7 @@ let EmptyView = class EmptyView extends ViewPane {
|
|
|
77
77
|
}
|
|
78
78
|
renderBody(container) {
|
|
79
79
|
super.renderBody(container);
|
|
80
|
-
this._register(
|
|
80
|
+
this._register(new DragAndDropObserver(container, {
|
|
81
81
|
onDrop: e => {
|
|
82
82
|
container.style.backgroundColor = "";
|
|
83
83
|
const dropHandler = this.instantiationService.createInstance(ResourcesDropHandler, {
|
|
@@ -100,7 +100,7 @@ let EmptyView = class EmptyView extends ViewPane {
|
|
|
100
100
|
e.dataTransfer.dropEffect = "copy";
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
}))
|
|
103
|
+
}));
|
|
104
104
|
this.refreshTitle();
|
|
105
105
|
}
|
|
106
106
|
refreshTitle() {
|
|
@@ -376,7 +376,7 @@ let McpServer = McpServer_1 = class McpServer extends Disposable {
|
|
|
376
376
|
}
|
|
377
377
|
resources(token) {
|
|
378
378
|
const cts = ( new CancellationTokenSource(token));
|
|
379
|
-
return
|
|
379
|
+
return new AsyncIterableProducer(async emitter => {
|
|
380
380
|
await McpServer_1.callOn(this, async handler => {
|
|
381
381
|
for await (const resource of handler.listResourcesIterable({}, cts.token)) {
|
|
382
382
|
emitter.emitOne(( resource.map(r => ( new McpResource(this, r, McpIcons.fromParsed(this._parseIcons(r)))))));
|
|
@@ -385,7 +385,7 @@ let McpServer = McpServer_1 = class McpServer extends Disposable {
|
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
387
|
});
|
|
388
|
-
}, () => cts.dispose(true))
|
|
388
|
+
}, () => cts.dispose(true));
|
|
389
389
|
}
|
|
390
390
|
resourceTemplates(token) {
|
|
391
391
|
return McpServer_1.callOn(this, async handler => {
|
|
@@ -87,7 +87,7 @@ class Snippet {
|
|
|
87
87
|
this.exclude = exclude;
|
|
88
88
|
this.extensionId = extensionId;
|
|
89
89
|
this.prefixLow = prefix.toLowerCase();
|
|
90
|
-
this._bodyInsights =
|
|
90
|
+
this._bodyInsights = new WindowIdleValue(getActiveWindow(), () => ( new SnippetBodyInsights(this.body)));
|
|
91
91
|
}
|
|
92
92
|
get codeSnippet() {
|
|
93
93
|
return this._bodyInsights.value.codeSnippet;
|
|
@@ -18,13 +18,13 @@ let TrustedDomainService = class TrustedDomainService extends Disposable {
|
|
|
18
18
|
this._onDidChangeTrustedDomains = this._register(( new Emitter()));
|
|
19
19
|
this.onDidChangeTrustedDomains = this._onDidChangeTrustedDomains.event;
|
|
20
20
|
const initStaticDomainsResult = () => {
|
|
21
|
-
return
|
|
21
|
+
return new WindowIdleValue(mainWindow, () => {
|
|
22
22
|
const {
|
|
23
23
|
defaultTrustedDomains,
|
|
24
24
|
trustedDomains
|
|
25
25
|
} = this._instantiationService.invokeFunction(readStaticTrustedDomains);
|
|
26
26
|
return [...defaultTrustedDomains, ...trustedDomains];
|
|
27
|
-
})
|
|
27
|
+
});
|
|
28
28
|
};
|
|
29
29
|
this._staticTrustedDomainsResult = initStaticDomainsResult();
|
|
30
30
|
this._register(
|
|
@@ -797,7 +797,7 @@ let DefaultAccountProviderContribution = class DefaultAccountProviderContributio
|
|
|
797
797
|
}
|
|
798
798
|
constructor(productService, instantiationService, defaultAccountService) {
|
|
799
799
|
super();
|
|
800
|
-
if (productService.defaultChatAgent
|
|
800
|
+
if (productService.defaultChatAgent) {
|
|
801
801
|
const defaultAccountProvider = this._register(instantiationService.createInstance(
|
|
802
802
|
DefaultAccountProvider,
|
|
803
803
|
toDefaultAccountConfig(productService.defaultChatAgent)
|
|
@@ -25,7 +25,6 @@ import { IOpenerService } from '../../../../platform/opener/common/opener.servic
|
|
|
25
25
|
import { URI } from '../../../../base/common/uri.js';
|
|
26
26
|
import Severity$1 from '../../../../base/common/severity.js';
|
|
27
27
|
import { IWorkbenchEnvironmentService } from '../../environment/common/environmentService.service.js';
|
|
28
|
-
import { isWeb } from '../../../../base/common/platform.js';
|
|
29
28
|
import { ILifecycleService } from '../../lifecycle/common/lifecycle.service.js';
|
|
30
29
|
import '../../../../platform/instantiation/common/extensions.js';
|
|
31
30
|
import '../../../../base/common/observableInternal/index.js';
|
|
@@ -175,10 +174,6 @@ let ChatEntitlementService = class ChatEntitlementService extends Disposable {
|
|
|
175
174
|
this._store
|
|
176
175
|
), () => {}, this._store));
|
|
177
176
|
this.sentimentObs = observableFromEvent(this.onDidChangeSentiment, () => this.sentiment);
|
|
178
|
-
if ((isWeb && !environmentService.remoteAuthority)) {
|
|
179
|
-
ChatEntitlementContextKeys.Setup.hidden.bindTo(this.contextKeyService).set(true);
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
177
|
if (!productService.defaultChatAgent) {
|
|
183
178
|
return;
|
|
184
179
|
}
|
package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js
CHANGED
|
@@ -120,8 +120,12 @@ let FilesConfigurationService = class FilesConfigurationService extends Disposab
|
|
|
120
120
|
this.autoSaveConfigurationCache = ( new LRUCache(1000));
|
|
121
121
|
this.autoSaveAfterShortDelayOverrides = ( new ResourceMap());
|
|
122
122
|
this.autoSaveDisabledOverrides = ( new ResourceMap());
|
|
123
|
-
this.readonlyIncludeMatcher = this._register(
|
|
124
|
-
|
|
123
|
+
this.readonlyIncludeMatcher = this._register(
|
|
124
|
+
new GlobalIdleValue(() => this.createReadonlyMatcher(FILES_READONLY_INCLUDE_CONFIG))
|
|
125
|
+
);
|
|
126
|
+
this.readonlyExcludeMatcher = this._register(
|
|
127
|
+
new GlobalIdleValue(() => this.createReadonlyMatcher(FILES_READONLY_EXCLUDE_CONFIG))
|
|
128
|
+
);
|
|
125
129
|
this.sessionReadonlyOverrides = ( new ResourceMap(resource => this.uriIdentityService.extUri.getComparisonKey(resource)));
|
|
126
130
|
this.autoSaveAfterShortDelayContext = AutoSaveAfterShortDelayContext.bindTo(contextKeyService);
|
|
127
131
|
const configuration = configurationService.getValue();
|