@codingame/monaco-vscode-api 7.0.2 → 7.0.5
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/missing-services.js +3 -3
- package/package.json +8 -8
- 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/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/missing-services.js
CHANGED
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.5",
|
|
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.5",
|
|
103
|
+
"@codingame/monaco-vscode-files-service-override": "7.0.5",
|
|
104
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "7.0.5",
|
|
105
|
+
"@codingame/monaco-vscode-environment-service-override": "7.0.5",
|
|
106
|
+
"@codingame/monaco-vscode-layout-service-override": "7.0.5",
|
|
107
|
+
"@codingame/monaco-vscode-host-service-override": "7.0.5",
|
|
108
|
+
"@codingame/monaco-vscode-base-service-override": "7.0.5"
|
|
109
109
|
}
|
|
110
110
|
}
|
|
@@ -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) {
|
|
@@ -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';
|