@codingame/monaco-vscode-api 7.0.3 → 7.0.7
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/README.md +1 -1
- package/api.js +1 -1
- package/missing-services.js +5 -5
- package/monaco.js +1 -1
- package/package.json +8 -8
- package/services.js +2 -2
- package/vscode/src/vs/base/browser/ui/splitview/splitview.js +2 -2
- package/vscode/src/vs/base/common/observableInternal/autorun.js +2 -0
- package/vscode/src/vs/base/common/observableInternal/base.js +3 -0
- package/vscode/src/vs/base/common/observableInternal/logging.js +5 -0
- package/vscode/src/vs/base/common/platform.js +2 -0
- package/vscode/src/vs/editor/browser/controller/textAreaInput.js +1 -1
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +4 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +1 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +1 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor.js +2 -21
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +1 -1
package/README.md
CHANGED
|
@@ -195,7 +195,7 @@ updateUserConfiguration(`{
|
|
|
195
195
|
```
|
|
196
196
|
|
|
197
197
|
### Troubleshoot
|
|
198
|
-
`initialize` can only be called once (
|
|
198
|
+
`initialize` can only be called once (and it should be called BEFORE creating your first editor).
|
|
199
199
|
|
|
200
200
|
## Model creation
|
|
201
201
|
|
package/api.js
CHANGED
package/missing-services.js
CHANGED
|
@@ -581,8 +581,8 @@ registerSingleton(IPathService, class PathService {
|
|
|
581
581
|
registerSingleton(IProductService, class ProductService {
|
|
582
582
|
constructor() {
|
|
583
583
|
this._serviceBrand = undefined;
|
|
584
|
-
this.version = "1.91.
|
|
585
|
-
this.commit = "
|
|
584
|
+
this.version = "1.91.1";
|
|
585
|
+
this.commit = "f1e16e1e6214d7c44d078b1f0607b2388f29d729";
|
|
586
586
|
this.quality = 'oss';
|
|
587
587
|
this.nameShort = 'Code - OSS Dev';
|
|
588
588
|
this.nameLong = 'Code - OSS Dev';
|
|
@@ -2610,13 +2610,13 @@ registerSingleton(IShareService, class ShareService {
|
|
|
2610
2610
|
registerSingleton(IUserDataProfileImportExportService, class UserDataProfileImportExportService {
|
|
2611
2611
|
constructor() {
|
|
2612
2612
|
this.createProfileFromTemplate = async () => undefined;
|
|
2613
|
-
this.resolveProfileTemplate =
|
|
2613
|
+
this.resolveProfileTemplate = async () => null;
|
|
2614
2614
|
this.exportProfile2 = unsupported;
|
|
2615
2615
|
this.createFromProfile = unsupported;
|
|
2616
2616
|
this.createProfile = unsupported;
|
|
2617
2617
|
this.editProfile = unsupported;
|
|
2618
|
-
this.registerProfileContentHandler =
|
|
2619
|
-
this.unregisterProfileContentHandler =
|
|
2618
|
+
this.registerProfileContentHandler = () => Disposable.None;
|
|
2619
|
+
this.unregisterProfileContentHandler = () => { };
|
|
2620
2620
|
this.exportProfile = unsupported;
|
|
2621
2621
|
this.importProfile = unsupported;
|
|
2622
2622
|
this.showProfileContents = unsupported;
|
package/monaco.js
CHANGED
|
@@ -247,7 +247,7 @@ let standaloneEditorInstantiationService = null;
|
|
|
247
247
|
function getStandaloneEditorInstantiationService(accessor) {
|
|
248
248
|
if (standaloneEditorInstantiationService == null) {
|
|
249
249
|
const serviceCollection = new ServiceCollection();
|
|
250
|
-
serviceCollection.set(IQuickInputService, new SyncDescriptor(StandaloneQuickInputService,
|
|
250
|
+
serviceCollection.set(IQuickInputService, new SyncDescriptor(StandaloneQuickInputService, [], true));
|
|
251
251
|
const keybindingService = accessor.get(IKeybindingService);
|
|
252
252
|
if (!(keybindingService instanceof StandaloneKeybindingService) && isDynamicKeybindingService(keybindingService)) {
|
|
253
253
|
serviceCollection.set(IKeybindingService, new SyncDescriptor(DelegateStandaloneKeybindingService, [keybindingService], true));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.7",
|
|
4
4
|
"description": "VSCode public API plugged on the monaco editor",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": {
|
|
@@ -99,12 +99,12 @@
|
|
|
99
99
|
"dependencies": {
|
|
100
100
|
"@vscode/iconv-lite-umd": "0.7.0",
|
|
101
101
|
"jschardet": "3.1.2",
|
|
102
|
-
"@codingame/monaco-vscode-extensions-service-override": "7.0.
|
|
103
|
-
"@codingame/monaco-vscode-files-service-override": "7.0.
|
|
104
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "7.0.
|
|
105
|
-
"@codingame/monaco-vscode-environment-service-override": "7.0.
|
|
106
|
-
"@codingame/monaco-vscode-layout-service-override": "7.0.
|
|
107
|
-
"@codingame/monaco-vscode-host-service-override": "7.0.
|
|
108
|
-
"@codingame/monaco-vscode-base-service-override": "7.0.
|
|
102
|
+
"@codingame/monaco-vscode-extensions-service-override": "7.0.7",
|
|
103
|
+
"@codingame/monaco-vscode-files-service-override": "7.0.7",
|
|
104
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "7.0.7",
|
|
105
|
+
"@codingame/monaco-vscode-environment-service-override": "7.0.7",
|
|
106
|
+
"@codingame/monaco-vscode-layout-service-override": "7.0.7",
|
|
107
|
+
"@codingame/monaco-vscode-host-service-override": "7.0.7",
|
|
108
|
+
"@codingame/monaco-vscode-base-service-override": "7.0.7"
|
|
109
109
|
}
|
|
110
110
|
}
|
package/services.js
CHANGED
|
@@ -186,9 +186,9 @@ async function initialize(overrides, container = document.body, configuration =
|
|
|
186
186
|
initialize$1(container, configuration, env);
|
|
187
187
|
const instantiationService = StandaloneServices.initialize({
|
|
188
188
|
[( IProductService.toString())]: mixin({
|
|
189
|
-
version: "1.91.
|
|
189
|
+
version: "1.91.1",
|
|
190
190
|
quality: 'stable',
|
|
191
|
-
commit: "
|
|
191
|
+
commit: "f1e16e1e6214d7c44d078b1f0607b2388f29d729",
|
|
192
192
|
nameShort: 'Code - OSS',
|
|
193
193
|
nameLong: 'Code - OSS',
|
|
194
194
|
applicationName: 'code-oss',
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { append, $, scheduleAtNextAnimationFrame, getWindow, addDisposableListener } from '../../dom.js';
|
|
2
2
|
import { DomEmitter } from '../../event.js';
|
|
3
|
-
import { Orientation,
|
|
3
|
+
import { Orientation, Sash, SashState } from '../sash/sash.js';
|
|
4
4
|
import { SmoothScrollableElement } from '../scrollbar/scrollableElement.js';
|
|
5
5
|
import { range, pushToStart, pushToEnd } from '../../../common/arrays.js';
|
|
6
6
|
import { Color } from '../../../common/color.js';
|
|
7
7
|
import { Emitter, Event } from '../../../common/event.js';
|
|
8
|
-
import { Disposable, combinedDisposable,
|
|
8
|
+
import { Disposable, combinedDisposable, toDisposable, dispose } from '../../../common/lifecycle.js';
|
|
9
9
|
import { clamp } from '../../../common/numbers.js';
|
|
10
10
|
import { Scrollable, ScrollbarVisibility } from '../../../common/scrollable.js';
|
|
11
11
|
import { isUndefined } from '../../../common/types.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { assertFn } from '../assert.js';
|
|
2
2
|
import { toDisposable, DisposableStore, trackDisposable, markAsDisposed } from '../lifecycle.js';
|
|
3
3
|
import { DebugNameData } from './debugName.js';
|
|
4
|
+
import { getLogger } from './logging.js';
|
|
4
5
|
function autorun(fn) {
|
|
5
6
|
return ( new AutorunObserver(( new DebugNameData(undefined, undefined, fn)), fn, undefined, undefined));
|
|
6
7
|
}
|
|
@@ -85,6 +86,7 @@ class AutorunObserver {
|
|
|
85
86
|
const isDisposed = this.disposed;
|
|
86
87
|
try {
|
|
87
88
|
if (!isDisposed) {
|
|
89
|
+
getLogger()?.handleAutorunTriggered(this);
|
|
88
90
|
const changeSummary = this.changeSummary;
|
|
89
91
|
this.changeSummary = this.createChangeSummary?.();
|
|
90
92
|
this._runFn(this, changeSummary);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { strictEquals } from '../equals.js';
|
|
2
2
|
import { getFunctionName, DebugNameData } from './debugName.js';
|
|
3
|
+
import { getLogger } from './logging.js';
|
|
3
4
|
let _recomputeInitiallyAndOnChange;
|
|
4
5
|
function _setRecomputeInitiallyAndOnChange(recomputeInitiallyAndOnChange) {
|
|
5
6
|
_recomputeInitiallyAndOnChange = recomputeInitiallyAndOnChange;
|
|
@@ -181,7 +182,9 @@ class ObservableValue extends BaseObservable {
|
|
|
181
182
|
tx = _tx = ( new TransactionImpl(() => { }, () => `Setting ${this.debugName}`));
|
|
182
183
|
}
|
|
183
184
|
try {
|
|
185
|
+
const oldValue = this._value;
|
|
184
186
|
this._setValue(value);
|
|
187
|
+
getLogger()?.handleObservableChanged(this, { oldValue, newValue: value, change, didChange: true, hadValue: true });
|
|
185
188
|
for (const observer of this.observers) {
|
|
186
189
|
tx.updateObserver(observer, this);
|
|
187
190
|
observer.handleChange(this, change);
|
|
@@ -12,6 +12,7 @@ let _isMobile = false;
|
|
|
12
12
|
let _locale = undefined;
|
|
13
13
|
let _language = LANGUAGE_DEFAULT;
|
|
14
14
|
let _platformLocale = LANGUAGE_DEFAULT;
|
|
15
|
+
let _translationsConfigFile = undefined;
|
|
15
16
|
let _userAgent = undefined;
|
|
16
17
|
const $globalThis = globalThis;
|
|
17
18
|
let nodeProcess = undefined;
|
|
@@ -39,6 +40,7 @@ if (typeof nodeProcess === 'object') {
|
|
|
39
40
|
_locale = nlsConfig.locale;
|
|
40
41
|
_platformLocale = nlsConfig.osLocale;
|
|
41
42
|
_language = resolved ? resolved : LANGUAGE_DEFAULT;
|
|
43
|
+
_translationsConfigFile = nlsConfig._translationsConfigFile;
|
|
42
44
|
}
|
|
43
45
|
catch (e) {
|
|
44
46
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { isFirefox } from '../../../base/browser/browser.js';
|
|
3
|
-
import { addDisposableListener, getShadowRoot, getActiveElement, getWindow,
|
|
3
|
+
import { addDisposableListener, getShadowRoot, getActiveElement, getWindow, saveParentsScrollTop, restoreParentsScrollTop } from '../../../base/browser/dom.js';
|
|
4
4
|
import { DomEmitter } from '../../../base/browser/event.js';
|
|
5
5
|
import { StandardKeyboardEvent } from '../../../base/browser/keyboardEvent.js';
|
|
6
6
|
import { inputLatency } from '../../../base/browser/performance.js';
|
|
@@ -12,7 +12,7 @@ import { Position } from '../core/position.js';
|
|
|
12
12
|
import { Range } from '../core/range.js';
|
|
13
13
|
import { ScrollType } from '../editorCommon.js';
|
|
14
14
|
import { EndOfLinePreference, TrackedRangeStickiness } from '../model.js';
|
|
15
|
-
import {
|
|
15
|
+
import { InternalModelContentChangeEvent, RawContentChangedType } from '../textModelEvents.js';
|
|
16
16
|
import { TokenizationRegistry } from '../languages.js';
|
|
17
17
|
import { ColorId } from '../encodedTokenAttributes.js';
|
|
18
18
|
import { PLAINTEXT_LANGUAGE_ID } from '../languages/modesRegistry.js';
|
|
@@ -302,6 +302,9 @@ class ViewModel extends Disposable {
|
|
|
302
302
|
}
|
|
303
303
|
break;
|
|
304
304
|
}
|
|
305
|
+
case RawContentChangedType.EOLChanged: {
|
|
306
|
+
break;
|
|
307
|
+
}
|
|
305
308
|
}
|
|
306
309
|
}
|
|
307
310
|
if (versionId !== null) {
|
|
@@ -16,7 +16,7 @@ import { ICommandService } from '../../../../platform/commands/common/commands.s
|
|
|
16
16
|
import { INotificationService } from '../../../../platform/notification/common/notification.service.js';
|
|
17
17
|
import { Progress } from '../../../../platform/progress/common/progress.js';
|
|
18
18
|
import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.service.js';
|
|
19
|
-
import { mayIncludeActionsOfKind, CodeActionKind, filtersAction, CodeActionItem
|
|
19
|
+
import { mayIncludeActionsOfKind, CodeActionTriggerSource, CodeActionKind, filtersAction, CodeActionItem } from '../common/types.js';
|
|
20
20
|
import { HierarchicalKind } from '../../../../base/common/hierarchicalKind.js';
|
|
21
21
|
const _moduleId = "vs/editor/contrib/codeAction/browser/codeAction";
|
|
22
22
|
const codeActionCommandId = 'editor.action.codeAction';
|
|
@@ -7,7 +7,7 @@ import { CompletionItemKinds } from '../../../common/languages.js';
|
|
|
7
7
|
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.service.js';
|
|
8
8
|
import { registerSingleton, InstantiationType } from '../../../../platform/instantiation/common/extensions.js';
|
|
9
9
|
import { createDecorator } from '../../../../platform/instantiation/common/instantiation.js';
|
|
10
|
-
import { WillSaveStateReason,
|
|
10
|
+
import { WillSaveStateReason, StorageScope, StorageTarget } from '../../../../platform/storage/common/storage.js';
|
|
11
11
|
import { IStorageService } from '../../../../platform/storage/common/storage.service.js';
|
|
12
12
|
var SuggestMemoryService_1;
|
|
13
13
|
class Memory {
|
|
@@ -18,7 +18,7 @@ import { URI } from '../../../base/common/uri.js';
|
|
|
18
18
|
import { localizeWithPath } from '../../../nls.js';
|
|
19
19
|
import { IEnvironmentService } from '../../environment/common/environment.service.js';
|
|
20
20
|
import { computeTargetPlatform, areSameExtensions, ExtensionKey, getGalleryExtensionId } from './extensionManagementUtil.js';
|
|
21
|
-
import { ExtensionType, UNDEFINED_PUBLISHER, parseEnabledApiProposalNames, BUILTIN_MANIFEST_CACHE_FILE, USER_MANIFEST_CACHE_FILE, ExtensionIdentifierMap
|
|
21
|
+
import { ExtensionType, UNDEFINED_PUBLISHER, TargetPlatform, parseEnabledApiProposalNames, BUILTIN_MANIFEST_CACHE_FILE, USER_MANIFEST_CACHE_FILE, ExtensionIdentifierMap } from '../../extensions/common/extensions.js';
|
|
22
22
|
import { validateExtensionManifest } from '../../extensions/common/extensionValidator.js';
|
|
23
23
|
import { toFileOperationResult, FileOperationResult } from '../../files/common/files.js';
|
|
24
24
|
import { IFileService } from '../../files/common/files.service.js';
|
|
@@ -19,7 +19,7 @@ import { StorageScope, StorageTarget } from '../../storage/common/storage.js';
|
|
|
19
19
|
import { IStorageService } from '../../storage/common/storage.service.js';
|
|
20
20
|
import { ITelemetryService } from '../../telemetry/common/telemetry.service.js';
|
|
21
21
|
import { IUriIdentityService } from '../../uriIdentity/common/uriIdentity.service.js';
|
|
22
|
-
import { SyncStatus, getPathSegments, PREVIEW_DIR_NAME, getLastSyncResourceUri, UserDataSyncError, UserDataSyncErrorCode, MergeState, USER_DATA_SYNC_SCHEME,
|
|
22
|
+
import { SyncStatus, getPathSegments, PREVIEW_DIR_NAME, getLastSyncResourceUri, Change, UserDataSyncError, UserDataSyncErrorCode, MergeState, USER_DATA_SYNC_SCHEME, USER_DATA_SYNC_CONFIGURATION_SCOPE } from './userDataSync.js';
|
|
23
23
|
import { IUserDataSyncStoreService, IUserDataSyncLocalStoreService, IUserDataSyncEnablementService, IUserDataSyncLogService, IUserDataSyncUtilService } from './userDataSync.service.js';
|
|
24
24
|
import { IUserDataProfilesService } from '../../userDataProfile/common/userDataProfile.service.js';
|
|
25
25
|
const _moduleId = "vs/platform/userDataSync/common/abstractSynchronizer";
|
|
@@ -16,7 +16,7 @@ import { LineRange } from './lineRange.js';
|
|
|
16
16
|
import { DocumentLineRangeMap, LineRangeMapping, DocumentRangeMap } from './mapping.js';
|
|
17
17
|
import { TextModelDiffs, TextModelDiffState, TextModelDiffChangeReason } from './textModelDiffs.js';
|
|
18
18
|
import { leftJoin } from '../utils.js';
|
|
19
|
-
import { ModifiedBaseRange,
|
|
19
|
+
import { ModifiedBaseRange, ModifiedBaseRangeStateKind, ModifiedBaseRangeState } from './modifiedBaseRange.js';
|
|
20
20
|
const _moduleId = "vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel";
|
|
21
21
|
let MergeEditorModel = class MergeEditorModel extends EditorModel {
|
|
22
22
|
constructor(base, input1, input2, resultTextModel, diffComputer, options, telemetry, languageService, undoRedoService) {
|
|
@@ -3,37 +3,18 @@ import { Disposable } from '../../../../base/common/lifecycle.js';
|
|
|
3
3
|
class WebviewWindowDragMonitor extends Disposable {
|
|
4
4
|
constructor(targetWindow, getWebview) {
|
|
5
5
|
super();
|
|
6
|
-
|
|
6
|
+
this._register(addDisposableListener(targetWindow, EventType.DRAG_START, () => {
|
|
7
7
|
getWebview()?.windowDidDragStart();
|
|
8
|
-
};
|
|
8
|
+
}));
|
|
9
9
|
const onDragEnd = () => {
|
|
10
10
|
getWebview()?.windowDidDragEnd();
|
|
11
11
|
};
|
|
12
|
-
this._register(addDisposableListener(targetWindow, EventType.DRAG_START, () => {
|
|
13
|
-
onDragStart();
|
|
14
|
-
}));
|
|
15
12
|
this._register(addDisposableListener(targetWindow, EventType.DRAG_END, onDragEnd));
|
|
16
13
|
this._register(addDisposableListener(targetWindow, EventType.MOUSE_MOVE, currentEvent => {
|
|
17
14
|
if (currentEvent.buttons === 0) {
|
|
18
15
|
onDragEnd();
|
|
19
16
|
}
|
|
20
17
|
}));
|
|
21
|
-
this._register(addDisposableListener(targetWindow, EventType.DRAG, (event) => {
|
|
22
|
-
if (event.shiftKey) {
|
|
23
|
-
onDragEnd();
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
onDragStart();
|
|
27
|
-
}
|
|
28
|
-
}));
|
|
29
|
-
this._register(addDisposableListener(targetWindow, EventType.DRAG_OVER, (event) => {
|
|
30
|
-
if (event.shiftKey) {
|
|
31
|
-
onDragEnd();
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
onDragStart();
|
|
35
|
-
}
|
|
36
|
-
}));
|
|
37
18
|
}
|
|
38
19
|
}
|
|
39
20
|
export { WebviewWindowDragMonitor };
|
|
@@ -2,7 +2,7 @@ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.e
|
|
|
2
2
|
import { localizeWithPath } from '../../../../nls.js';
|
|
3
3
|
import { Emitter, Event } from '../../../../base/common/event.js';
|
|
4
4
|
import { CancellationToken, CancellationTokenSource } from '../../../../base/common/cancellation.js';
|
|
5
|
-
import {
|
|
5
|
+
import { ETAG_DISABLED, FileOperationResult, NotModifiedSinceFileOperationError } from '../../../../platform/files/common/files.js';
|
|
6
6
|
import { IFileService } from '../../../../platform/files/common/files.service.js';
|
|
7
7
|
import { SaveReason } from '../../../common/editor.js';
|
|
8
8
|
import { IWorkingCopyService } from './workingCopyService.service.js';
|