@codingame/monaco-vscode-base-service-override 23.3.0 → 24.1.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/index.js +7 -4
- package/package.json +2 -8
- package/vscode/src/vs/base/common/observableInternal/experimental/time.d.ts +23 -0
- package/vscode/src/vs/base/common/observableInternal/experimental/time.js +94 -0
- package/vscode/src/vs/base/parts/request/common/requestImpl.d.ts +1 -1
- package/vscode/src/vs/base/parts/request/common/requestImpl.js +1 -1
- package/vscode/src/vs/platform/request/common/requestIpc.d.ts +2 -2
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +4 -3
- package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +1 -1
- package/vscode/src/vs/workbench/services/label/common/labelService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/label/common/labelService.js +15 -15
- package/vscode/src/vs/workbench/services/request/browser/requestService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/request/browser/requestService.js +1 -1
- package/vscode/src/vs/workbench/services/url/browser/urlService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/url/browser/urlService.js +1 -1
- package/vscode/src/vs/workbench/services/userActivity/common/userActivityRegistry.d.ts +1 -1
- package/vscode/src/vs/workbench/services/userAttention/browser/userAttentionBrowser.d.ts +28 -0
- package/vscode/src/vs/workbench/services/userAttention/browser/userAttentionBrowser.js +102 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/workbenchEditorWorkerService.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/workbenchEditorWorkerService.js +0 -26
package/index.js
CHANGED
|
@@ -27,16 +27,18 @@ import { AbstractPathService } from './vscode/src/vs/workbench/services/path/com
|
|
|
27
27
|
import { UserActivityService } from './vscode/src/vs/workbench/services/userActivity/common/userActivityService.js';
|
|
28
28
|
import { WorkingCopyFileService } from './vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.js';
|
|
29
29
|
import { ITrustedDomainService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/url/browser/trustedDomainService.service';
|
|
30
|
-
import { TrustedDomainService } from '@codingame/monaco-vscode-
|
|
30
|
+
import { TrustedDomainService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/url/browser/trustedDomainService';
|
|
31
31
|
import { LabelService } from './vscode/src/vs/workbench/services/label/common/labelService.js';
|
|
32
32
|
import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service';
|
|
33
33
|
import { IEditorWorkerService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/editorWorker.service';
|
|
34
|
-
import { WorkbenchEditorWorkerService } from './vscode/src/vs/workbench/contrib/codeEditor/browser/workbenchEditorWorkerService.js';
|
|
35
34
|
import { getEnvironmentOverride } from '@codingame/monaco-vscode-api/workbench';
|
|
36
35
|
import { IInlineCompletionsUnificationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/inlineCompletions/common/inlineCompletionsUnification.service';
|
|
37
36
|
import { InlineCompletionsUnificationImpl } from './vscode/src/vs/workbench/services/inlineCompletions/common/inlineCompletionsUnification.js';
|
|
38
37
|
import { IMarkdownRendererService } from '@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer.service';
|
|
39
38
|
import { MarkdownRendererService } from '@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer';
|
|
39
|
+
import { IUserAttentionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/userAttention/common/userAttentionService.service';
|
|
40
|
+
import { UserAttentionService } from './vscode/src/vs/workbench/services/userAttention/browser/userAttentionBrowser.js';
|
|
41
|
+
import { EditorWorkerService } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/editorWorkerService';
|
|
40
42
|
|
|
41
43
|
let BrowserPathServiceOverride = class BrowserPathServiceOverride extends AbstractPathService {
|
|
42
44
|
constructor(remoteAgentService, environmentService, contextService) {
|
|
@@ -62,9 +64,10 @@ function getServiceOverride() {
|
|
|
62
64
|
[IPathService.toString()]: new SyncDescriptor(BrowserPathServiceOverride, [], true),
|
|
63
65
|
[ITrustedDomainService.toString()]: new SyncDescriptor(TrustedDomainService, [], true),
|
|
64
66
|
[ILabelService.toString()]: new SyncDescriptor(LabelService, [], true),
|
|
65
|
-
[IEditorWorkerService.toString()]: new SyncDescriptor(
|
|
67
|
+
[IEditorWorkerService.toString()]: new SyncDescriptor(EditorWorkerService, [], true),
|
|
66
68
|
[IInlineCompletionsUnificationService.toString()]: new SyncDescriptor(InlineCompletionsUnificationImpl, [], true),
|
|
67
|
-
[IMarkdownRendererService.toString()]: new SyncDescriptor(MarkdownRendererService, [], true)
|
|
69
|
+
[IMarkdownRendererService.toString()]: new SyncDescriptor(MarkdownRendererService, [], true),
|
|
70
|
+
[IUserAttentionService.toString()]: new SyncDescriptor(UserAttentionService, [], true)
|
|
68
71
|
};
|
|
69
72
|
}
|
|
70
73
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-base-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "24.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - base service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,13 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-
|
|
19
|
-
"@codingame/monaco-vscode-23aade48-f094-5c08-9555-97fc9cca96c9-common": "23.3.0",
|
|
20
|
-
"@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common": "23.3.0",
|
|
21
|
-
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "23.3.0",
|
|
22
|
-
"@codingame/monaco-vscode-9a1a5840-af83-5d07-a156-ba32a36c5c4b-common": "23.3.0",
|
|
23
|
-
"@codingame/monaco-vscode-api": "23.3.0",
|
|
24
|
-
"@codingame/monaco-vscode-d987325e-3e05-53aa-b9ff-6f97476f64db-common": "23.3.0"
|
|
18
|
+
"@codingame/monaco-vscode-api": "24.1.0"
|
|
25
19
|
},
|
|
26
20
|
"main": "index.js",
|
|
27
21
|
"module": "index.js",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/base";
|
|
3
|
+
import { DisposableStore, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/commonFacade/deps";
|
|
4
|
+
/** Measures the total time an observable had the value "true". */
|
|
5
|
+
export declare class TotalTrueTimeObservable extends Disposable {
|
|
6
|
+
private readonly value;
|
|
7
|
+
private _totalTime;
|
|
8
|
+
private _startTime;
|
|
9
|
+
constructor(value: IObservable<boolean>);
|
|
10
|
+
/**
|
|
11
|
+
* Reports the total time the observable has been true in milliseconds.
|
|
12
|
+
* E.g. `true` for 100ms, then `false` for 50ms, then `true` for 200ms results in 300ms.
|
|
13
|
+
*/
|
|
14
|
+
totalTimeMs(): number;
|
|
15
|
+
/**
|
|
16
|
+
* Runs the callback when the total time the observable has been true increased by the given delta in milliseconds.
|
|
17
|
+
*/
|
|
18
|
+
fireWhenTimeIncreasedBy(deltaTimeMs: number, callback: () => void): IDisposable;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Returns an observable that is true when the input observable was true within the last `timeMs` milliseconds.
|
|
22
|
+
*/
|
|
23
|
+
export declare function wasTrueRecently(obs: IObservable<boolean>, timeMs: number, store: DisposableStore): IObservable<boolean>;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
|
|
2
|
+
import { Disposable, DisposableStore, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
3
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
4
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/arrays';
|
|
5
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
6
|
+
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
7
|
+
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
8
|
+
|
|
9
|
+
class TotalTrueTimeObservable extends Disposable {
|
|
10
|
+
constructor(value) {
|
|
11
|
+
super();
|
|
12
|
+
this.value = value;
|
|
13
|
+
this._totalTime = 0;
|
|
14
|
+
this._startTime = undefined;
|
|
15
|
+
this._register(autorun(reader => {
|
|
16
|
+
const isTrue = this.value.read(reader);
|
|
17
|
+
if (isTrue) {
|
|
18
|
+
this._startTime = Date.now();
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
if (this._startTime !== undefined) {
|
|
22
|
+
const delta = Date.now() - this._startTime;
|
|
23
|
+
this._totalTime += delta;
|
|
24
|
+
this._startTime = undefined;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
totalTimeMs() {
|
|
30
|
+
if (this._startTime !== undefined) {
|
|
31
|
+
return this._totalTime + (Date.now() - this._startTime);
|
|
32
|
+
}
|
|
33
|
+
return this._totalTime;
|
|
34
|
+
}
|
|
35
|
+
fireWhenTimeIncreasedBy(deltaTimeMs, callback) {
|
|
36
|
+
const store = ( new DisposableStore());
|
|
37
|
+
let accumulatedTime = 0;
|
|
38
|
+
let startTime = undefined;
|
|
39
|
+
store.add(autorun(reader => {
|
|
40
|
+
const isTrue = this.value.read(reader);
|
|
41
|
+
if (isTrue) {
|
|
42
|
+
startTime = Date.now();
|
|
43
|
+
const remainingTime = deltaTimeMs - accumulatedTime;
|
|
44
|
+
if (remainingTime <= 0) {
|
|
45
|
+
callback();
|
|
46
|
+
store.dispose();
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const handle = setTimeout(() => {
|
|
50
|
+
accumulatedTime += (Date.now() - startTime);
|
|
51
|
+
startTime = undefined;
|
|
52
|
+
callback();
|
|
53
|
+
store.dispose();
|
|
54
|
+
}, remainingTime);
|
|
55
|
+
reader.store.add(toDisposable(() => {
|
|
56
|
+
clearTimeout(handle);
|
|
57
|
+
if (startTime !== undefined) {
|
|
58
|
+
accumulatedTime += (Date.now() - startTime);
|
|
59
|
+
startTime = undefined;
|
|
60
|
+
}
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
}));
|
|
64
|
+
return store;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function wasTrueRecently(obs, timeMs, store) {
|
|
68
|
+
const result = observableValue('wasTrueRecently', false);
|
|
69
|
+
let timeout;
|
|
70
|
+
store.add(autorun(reader => {
|
|
71
|
+
const value = obs.read(reader);
|
|
72
|
+
if (value) {
|
|
73
|
+
result.set(true, undefined);
|
|
74
|
+
if (timeout !== undefined) {
|
|
75
|
+
clearTimeout(timeout);
|
|
76
|
+
timeout = undefined;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
timeout = setTimeout(() => {
|
|
81
|
+
result.set(false, undefined);
|
|
82
|
+
timeout = undefined;
|
|
83
|
+
}, timeMs);
|
|
84
|
+
}
|
|
85
|
+
}));
|
|
86
|
+
store.add(toDisposable(() => {
|
|
87
|
+
if (timeout !== undefined) {
|
|
88
|
+
clearTimeout(timeout);
|
|
89
|
+
}
|
|
90
|
+
}));
|
|
91
|
+
return result;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export { TotalTrueTimeObservable, wasTrueRecently };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
2
|
-
import { IRequestContext, IRequestOptions } from "@codingame/monaco-vscode-
|
|
2
|
+
import { IRequestContext, IRequestOptions } from "@codingame/monaco-vscode-api/vscode/vs/base/parts/request/common/request";
|
|
3
3
|
export declare function request(options: IRequestOptions, token: CancellationToken, isOnline?: () => boolean): Promise<IRequestContext>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { bufferToStream, VSBuffer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/buffer';
|
|
3
3
|
import { canceled } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
4
|
-
import { OfflineError } from '@codingame/monaco-vscode-
|
|
4
|
+
import { OfflineError } from '@codingame/monaco-vscode-api/vscode/vs/base/parts/request/common/request';
|
|
5
5
|
|
|
6
6
|
async function request(options, token, isOnline) {
|
|
7
7
|
if (token.isCancellationRequested) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
2
2
|
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
3
|
-
import { IChannel, IServerChannel } from "@codingame/monaco-vscode-
|
|
4
|
-
import { IRequestContext, IRequestOptions } from "@codingame/monaco-vscode-
|
|
3
|
+
import { IChannel, IServerChannel } from "@codingame/monaco-vscode-api/vscode/vs/base/parts/ipc/common/ipc";
|
|
4
|
+
import { IRequestContext, IRequestOptions } from "@codingame/monaco-vscode-api/vscode/vs/base/parts/request/common/request";
|
|
5
5
|
import { AuthInfo, Credentials } from "@codingame/monaco-vscode-api/vscode/vs/platform/request/common/request";
|
|
6
6
|
import { IRequestService } from "@codingame/monaco-vscode-api/vscode/vs/platform/request/common/request.service";
|
|
7
7
|
export declare class RequestChannel implements IServerChannel {
|
|
@@ -2,7 +2,7 @@ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
|
2
2
|
import { ITextFileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/textfile/common/textfiles.service";
|
|
3
3
|
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
4
4
|
import { ITextModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service";
|
|
5
|
-
import { IJSONValue } from "@codingame/monaco-vscode-
|
|
5
|
+
import { IJSONValue } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/configuration/common/jsonEditing";
|
|
6
6
|
import { IJSONEditingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/configuration/common/jsonEditing.service";
|
|
7
7
|
import { IFilesConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service";
|
|
8
8
|
export declare class JSONEditingService implements IJSONEditingService {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
4
|
import { parse } from '@codingame/monaco-vscode-api/vscode/vs/base/common/json';
|
|
5
|
-
import { setProperty } from '@codingame/monaco-vscode-
|
|
5
|
+
import { setProperty } from '@codingame/monaco-vscode-api/vscode/vs/base/common/jsonEdit';
|
|
6
6
|
import { Queue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
7
7
|
import { EditOperation } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/editOperation';
|
|
8
8
|
import { Range } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range';
|
|
@@ -10,7 +10,7 @@ import { Selection } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/
|
|
|
10
10
|
import { ITextFileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/textfile/common/textfiles.service';
|
|
11
11
|
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
12
12
|
import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service';
|
|
13
|
-
import { JSONEditingErrorCode, JSONEditingError } from '@codingame/monaco-vscode-
|
|
13
|
+
import { JSONEditingErrorCode, JSONEditingError } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/configuration/common/jsonEditing';
|
|
14
14
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
15
15
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
16
16
|
import { IFilesConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service';
|
|
@@ -51,6 +51,7 @@ let JSONEditingService = class JSONEditingService {
|
|
|
51
51
|
finally {
|
|
52
52
|
disposable?.dispose();
|
|
53
53
|
}
|
|
54
|
+
return undefined;
|
|
54
55
|
}
|
|
55
56
|
applyEditsToBuffer(edit, model) {
|
|
56
57
|
const startPosition = model.getPositionAt(edit.offset);
|
|
@@ -117,7 +118,7 @@ let JSONEditingService = class JSONEditingService {
|
|
|
117
118
|
switch (error) {
|
|
118
119
|
case JSONEditingErrorCode.ERROR_INVALID_FILE: {
|
|
119
120
|
return localize(
|
|
120
|
-
|
|
121
|
+
13744,
|
|
121
122
|
"Unable to write into the file. Please open the file to correct errors/warnings in the file and try again."
|
|
122
123
|
);
|
|
123
124
|
}
|
|
@@ -161,7 +161,7 @@ class DecorationStyles {
|
|
|
161
161
|
const strikethrough = ( data.some(d => d.strikethrough));
|
|
162
162
|
if (onlyChildren) {
|
|
163
163
|
badgeClassName = rule.bubbleBadgeClassName;
|
|
164
|
-
tooltip = ( localize(
|
|
164
|
+
tooltip = ( localize(13783, "Contains emphasized items"));
|
|
165
165
|
}
|
|
166
166
|
return {
|
|
167
167
|
labelClassName,
|
|
@@ -3,7 +3,7 @@ import { IDisposable, Disposable } from "@codingame/monaco-vscode-api/vscode/vs/
|
|
|
3
3
|
import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
4
4
|
import { IWorkspace, ISingleFolderWorkspaceIdentifier, IWorkspaceIdentifier } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace";
|
|
5
5
|
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
6
|
-
import { ResourceLabelFormatter, ResourceLabelFormatting, IFormatterChangeEvent, Verbosity } from "@codingame/monaco-vscode-
|
|
6
|
+
import { ResourceLabelFormatter, ResourceLabelFormatting, IFormatterChangeEvent, Verbosity } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label";
|
|
7
7
|
import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
|
|
8
8
|
import { ILifecycleService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
|
|
9
9
|
import { IPathService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service";
|
|
@@ -12,7 +12,7 @@ import { isWorkspace, toWorkspaceIdentifier, isSingleFolderWorkspaceIdentifier,
|
|
|
12
12
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
13
13
|
import { basenameOrAuthority, basename, joinPath, dirname } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
14
14
|
import { getPathLabel, tildify } from '@codingame/monaco-vscode-api/vscode/vs/base/common/labels';
|
|
15
|
-
import { Verbosity } from '@codingame/monaco-vscode-
|
|
15
|
+
import { Verbosity } from '@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label';
|
|
16
16
|
import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service';
|
|
17
17
|
import { ExtensionsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
|
|
18
18
|
import { match } from '@codingame/monaco-vscode-api/vscode/vs/base/common/glob';
|
|
@@ -26,12 +26,12 @@ import { IRemoteAgentService } from '@codingame/monaco-vscode-api/vscode/vs/work
|
|
|
26
26
|
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
27
27
|
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
28
28
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
29
|
-
import { Memento } from '@codingame/monaco-vscode-
|
|
29
|
+
import { Memento } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/memento';
|
|
30
30
|
|
|
31
31
|
const resourceLabelFormattersExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
32
32
|
extensionPoint: 'resourceLabelFormatters',
|
|
33
33
|
jsonSchema: {
|
|
34
|
-
description: ( localize(
|
|
34
|
+
description: ( localize(14086, 'Contributes resource label formatting rules.')),
|
|
35
35
|
type: 'array',
|
|
36
36
|
items: {
|
|
37
37
|
type: 'object',
|
|
@@ -40,52 +40,52 @@ const resourceLabelFormattersExtPoint = ExtensionsRegistry.registerExtensionPoin
|
|
|
40
40
|
scheme: {
|
|
41
41
|
type: 'string',
|
|
42
42
|
description: ( localize(
|
|
43
|
-
|
|
43
|
+
14087,
|
|
44
44
|
'URI scheme on which to match the formatter on. For example "file". Simple glob patterns are supported.'
|
|
45
45
|
)),
|
|
46
46
|
},
|
|
47
47
|
authority: {
|
|
48
48
|
type: 'string',
|
|
49
49
|
description: ( localize(
|
|
50
|
-
|
|
50
|
+
14088,
|
|
51
51
|
'URI authority on which to match the formatter on. Simple glob patterns are supported.'
|
|
52
52
|
)),
|
|
53
53
|
},
|
|
54
54
|
formatting: {
|
|
55
|
-
description: ( localize(
|
|
55
|
+
description: ( localize(14089, "Rules for formatting uri resource labels.")),
|
|
56
56
|
type: 'object',
|
|
57
57
|
properties: {
|
|
58
58
|
label: {
|
|
59
59
|
type: 'string',
|
|
60
60
|
description: ( localize(
|
|
61
|
-
|
|
61
|
+
14090,
|
|
62
62
|
"Label rules to display. For example: myLabel:/${path}. ${path}, ${scheme}, ${authority} and ${authoritySuffix} are supported as variables."
|
|
63
63
|
))
|
|
64
64
|
},
|
|
65
65
|
separator: {
|
|
66
66
|
type: 'string',
|
|
67
67
|
description: ( localize(
|
|
68
|
-
|
|
68
|
+
14091,
|
|
69
69
|
"Separator to be used in the uri label display. '/' or '\' as an example."
|
|
70
70
|
))
|
|
71
71
|
},
|
|
72
72
|
stripPathStartingSeparator: {
|
|
73
73
|
type: 'boolean',
|
|
74
74
|
description: ( localize(
|
|
75
|
-
|
|
75
|
+
14092,
|
|
76
76
|
"Controls whether `${path}` substitutions should have starting separator characters stripped."
|
|
77
77
|
))
|
|
78
78
|
},
|
|
79
79
|
tildify: {
|
|
80
80
|
type: 'boolean',
|
|
81
81
|
description: ( localize(
|
|
82
|
-
|
|
82
|
+
14093,
|
|
83
83
|
"Controls if the start of the uri label should be tildified when possible."
|
|
84
84
|
))
|
|
85
85
|
},
|
|
86
86
|
workspaceSuffix: {
|
|
87
87
|
type: 'string',
|
|
88
|
-
description: ( localize(
|
|
88
|
+
description: ( localize(14094, "Suffix appended to the workspace label."))
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -267,10 +267,10 @@ let LabelService = class LabelService extends Disposable {
|
|
|
267
267
|
}
|
|
268
268
|
doGetWorkspaceLabel(workspaceUri, options) {
|
|
269
269
|
if (isUntitledWorkspace(workspaceUri, this.environmentService)) {
|
|
270
|
-
return localize(
|
|
270
|
+
return localize(14095, "Untitled (Workspace)");
|
|
271
271
|
}
|
|
272
272
|
if (isTemporaryWorkspace(workspaceUri)) {
|
|
273
|
-
return localize(
|
|
273
|
+
return localize(14096, "Workspace");
|
|
274
274
|
}
|
|
275
275
|
let filename = basename(workspaceUri);
|
|
276
276
|
if (filename.endsWith(WORKSPACE_EXTENSION)) {
|
|
@@ -283,14 +283,14 @@ let LabelService = class LabelService extends Disposable {
|
|
|
283
283
|
break;
|
|
284
284
|
case Verbosity.LONG:
|
|
285
285
|
label = ( localize(
|
|
286
|
-
|
|
286
|
+
14097,
|
|
287
287
|
"{0} (Workspace)",
|
|
288
288
|
this.getUriLabel(joinPath(dirname(workspaceUri), filename))
|
|
289
289
|
));
|
|
290
290
|
break;
|
|
291
291
|
case Verbosity.MEDIUM:
|
|
292
292
|
default:
|
|
293
|
-
label = ( localize(
|
|
293
|
+
label = ( localize(14098, "{0} (Workspace)", filename));
|
|
294
294
|
break;
|
|
295
295
|
}
|
|
296
296
|
if (options?.verbose === Verbosity.SHORT) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IRequestOptions, IRequestContext } from "@codingame/monaco-vscode-
|
|
1
|
+
import { IRequestOptions, IRequestContext } from "@codingame/monaco-vscode-api/vscode/vs/base/parts/request/common/request";
|
|
2
2
|
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
3
3
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
4
4
|
import { IRemoteAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteAgentService.service";
|
|
@@ -14,7 +14,7 @@ import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/
|
|
|
14
14
|
|
|
15
15
|
let BrowserRequestService = class BrowserRequestService extends AbstractRequestService {
|
|
16
16
|
constructor(remoteAgentService, configurationService, loggerService) {
|
|
17
|
-
const logger = loggerService.createLogger(`network`, { name: ( localize(
|
|
17
|
+
const logger = loggerService.createLogger(`network`, { name: ( localize(14204, "Network")), group: windowLogGroup });
|
|
18
18
|
const logService = ( new LogService(logger));
|
|
19
19
|
super(logService);
|
|
20
20
|
this.remoteAgentService = remoteAgentService;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { URI, UriComponents } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
2
|
import { AbstractURLService } from "../../../../platform/url/common/urlService.js";
|
|
3
3
|
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
4
|
-
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-
|
|
4
|
+
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
5
5
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
6
6
|
import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
|
|
7
7
|
export interface IURLCallbackProvider {
|
|
@@ -4,7 +4,7 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/ins
|
|
|
4
4
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
5
5
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
6
6
|
import { AbstractURLService } from '../../../../platform/url/common/urlService.js';
|
|
7
|
-
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-
|
|
7
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
8
8
|
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
9
9
|
import { matchesScheme } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
10
10
|
import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
|
|
@@ -3,7 +3,7 @@ import { IUserActivityService } from "@codingame/monaco-vscode-api/vscode/vs/wor
|
|
|
3
3
|
declare class UserActivityRegistry {
|
|
4
4
|
private todo;
|
|
5
5
|
add: (ctor: {
|
|
6
|
-
new (s: IUserActivityService, ...args:
|
|
6
|
+
new (s: IUserActivityService, ...args: unknown[]): unknown;
|
|
7
7
|
}) => void;
|
|
8
8
|
take(userActivityService: IUserActivityService, instantiation: IInstantiationService): void;
|
|
9
9
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable";
|
|
3
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
5
|
+
import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
|
|
6
|
+
import { IUserAttentionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/userAttention/common/userAttentionService.service";
|
|
7
|
+
export declare class UserAttentionService extends Disposable implements IUserAttentionService {
|
|
8
|
+
private readonly _logService;
|
|
9
|
+
readonly _serviceBrand: undefined;
|
|
10
|
+
private readonly _isTracingEnabled;
|
|
11
|
+
private readonly _timeKeeper;
|
|
12
|
+
readonly isVsCodeFocused: IObservable<boolean>;
|
|
13
|
+
readonly hasUserAttention: IObservable<boolean>;
|
|
14
|
+
readonly isUserActive: IObservable<boolean>;
|
|
15
|
+
constructor(instantiationService: IInstantiationService, _logService: ILogService);
|
|
16
|
+
fireAfterGivenFocusTimePassed(focusTimeMs: number, callback: () => void): IDisposable;
|
|
17
|
+
get totalFocusTimeMs(): number;
|
|
18
|
+
}
|
|
19
|
+
export declare class UserAttentionServiceEnv extends Disposable {
|
|
20
|
+
private readonly _hostService;
|
|
21
|
+
private readonly _logService;
|
|
22
|
+
readonly isVsCodeFocused: IObservable<boolean>;
|
|
23
|
+
readonly isUserActive: IObservable<boolean>;
|
|
24
|
+
private readonly _isUserActive;
|
|
25
|
+
private _activityDebounceTimeout;
|
|
26
|
+
constructor(_hostService: IHostService, _logService: ILogService);
|
|
27
|
+
private _markUserActivity;
|
|
28
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { onDidRegisterWindow, addDisposableListener } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
+
import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
|
|
5
|
+
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
6
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
7
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
8
|
+
import { wasTrueRecently, TotalTrueTimeObservable } from '../../../../base/common/observableInternal/experimental/time.js';
|
|
9
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
10
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
11
|
+
import { LogLevel } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log';
|
|
12
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
13
|
+
import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
|
|
14
|
+
import { observableFromEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableFromEvent';
|
|
15
|
+
import { derived } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/derived';
|
|
16
|
+
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
17
|
+
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
18
|
+
|
|
19
|
+
const USER_ATTENTION_TIMEOUT_MS = 60_000;
|
|
20
|
+
let UserAttentionService = class UserAttentionService extends Disposable {
|
|
21
|
+
constructor(instantiationService, _logService) {
|
|
22
|
+
super();
|
|
23
|
+
this._logService = _logService;
|
|
24
|
+
const hostAdapter = this._register(instantiationService.createInstance(UserAttentionServiceEnv));
|
|
25
|
+
this.isVsCodeFocused = hostAdapter.isVsCodeFocused;
|
|
26
|
+
this.isUserActive = hostAdapter.isUserActive;
|
|
27
|
+
this._isTracingEnabled = observableFromEvent(this, this._logService.onDidChangeLogLevel, () => this._logService.getLevel() === LogLevel.Trace);
|
|
28
|
+
const hadRecentActivity = wasTrueRecently(this.isUserActive, USER_ATTENTION_TIMEOUT_MS, this._store);
|
|
29
|
+
this.hasUserAttention = derived(this, reader => {
|
|
30
|
+
return hadRecentActivity.read(reader);
|
|
31
|
+
});
|
|
32
|
+
this._timeKeeper = this._register(( new TotalTrueTimeObservable(this.hasUserAttention)));
|
|
33
|
+
this._register(autorun(reader => {
|
|
34
|
+
if (!this._isTracingEnabled.read(reader)) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
reader.store.add(autorun(innerReader => {
|
|
38
|
+
const focused = this.isVsCodeFocused.read(innerReader);
|
|
39
|
+
this._logService.trace(`[UserAttentionService] VS Code focus changed: ${focused}`);
|
|
40
|
+
}));
|
|
41
|
+
reader.store.add(autorun(innerReader => {
|
|
42
|
+
const hasAttention = this.hasUserAttention.read(innerReader);
|
|
43
|
+
this._logService.trace(`[UserAttentionService] User attention changed: ${hasAttention}`);
|
|
44
|
+
}));
|
|
45
|
+
}));
|
|
46
|
+
}
|
|
47
|
+
fireAfterGivenFocusTimePassed(focusTimeMs, callback) {
|
|
48
|
+
return this._timeKeeper.fireWhenTimeIncreasedBy(focusTimeMs, callback);
|
|
49
|
+
}
|
|
50
|
+
get totalFocusTimeMs() {
|
|
51
|
+
return this._timeKeeper.totalTimeMs();
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
UserAttentionService = ( __decorate([
|
|
55
|
+
( __param(0, IInstantiationService)),
|
|
56
|
+
( __param(1, ILogService))
|
|
57
|
+
], UserAttentionService));
|
|
58
|
+
let UserAttentionServiceEnv = class UserAttentionServiceEnv extends Disposable {
|
|
59
|
+
constructor(_hostService, _logService) {
|
|
60
|
+
super();
|
|
61
|
+
this._hostService = _hostService;
|
|
62
|
+
this._logService = _logService;
|
|
63
|
+
this._isUserActive = observableValue(this, false);
|
|
64
|
+
this.isVsCodeFocused = observableFromEvent(this, this._hostService.onDidChangeFocus, () => this._hostService.hasFocus);
|
|
65
|
+
this.isUserActive = this._isUserActive;
|
|
66
|
+
const onActivity = () => {
|
|
67
|
+
this._markUserActivity();
|
|
68
|
+
};
|
|
69
|
+
this._register(Event.runAndSubscribe(onDidRegisterWindow, ({ window, disposables }) => {
|
|
70
|
+
disposables.add(addDisposableListener(window.document, 'keydown', onActivity, eventListenerOptions));
|
|
71
|
+
disposables.add(addDisposableListener(window.document, 'mousemove', onActivity, eventListenerOptions));
|
|
72
|
+
disposables.add(addDisposableListener(window.document, 'mousedown', onActivity, eventListenerOptions));
|
|
73
|
+
disposables.add(addDisposableListener(window.document, 'touchstart', onActivity, eventListenerOptions));
|
|
74
|
+
}, { window: mainWindow, disposables: this._store }));
|
|
75
|
+
if (this._hostService.hasFocus) {
|
|
76
|
+
this._markUserActivity();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
_markUserActivity() {
|
|
80
|
+
if (this._activityDebounceTimeout !== undefined) {
|
|
81
|
+
clearTimeout(this._activityDebounceTimeout);
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
this._logService.trace('[UserAttentionService] User activity detected');
|
|
85
|
+
this._isUserActive.set(true, undefined);
|
|
86
|
+
}
|
|
87
|
+
this._activityDebounceTimeout = setTimeout(() => {
|
|
88
|
+
this._isUserActive.set(false, undefined);
|
|
89
|
+
this._activityDebounceTimeout = undefined;
|
|
90
|
+
}, 500);
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
UserAttentionServiceEnv = ( __decorate([
|
|
94
|
+
( __param(0, IHostService)),
|
|
95
|
+
( __param(1, ILogService))
|
|
96
|
+
], UserAttentionServiceEnv));
|
|
97
|
+
const eventListenerOptions = {
|
|
98
|
+
passive: true,
|
|
99
|
+
capture: true,
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export { UserAttentionService, UserAttentionServiceEnv };
|
|
@@ -4,7 +4,7 @@ import { IProgress, IProgressStep } from "@codingame/monaco-vscode-api/vscode/vs
|
|
|
4
4
|
import { IProgressService } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service";
|
|
5
5
|
import { IDisposable, Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
6
6
|
import { IStoredFileWorkingCopySaveParticipant, IStoredFileWorkingCopySaveParticipantContext } from "./workingCopyFileService.js";
|
|
7
|
-
import { IStoredFileWorkingCopy, IStoredFileWorkingCopyModel } from "@codingame/monaco-vscode-
|
|
7
|
+
import { IStoredFileWorkingCopy, IStoredFileWorkingCopyModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/storedFileWorkingCopy";
|
|
8
8
|
export declare class StoredFileWorkingCopySaveParticipant extends Disposable {
|
|
9
9
|
private readonly logService;
|
|
10
10
|
private readonly progressService;
|
package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js
CHANGED
|
@@ -27,13 +27,13 @@ let StoredFileWorkingCopySaveParticipant = class StoredFileWorkingCopySavePartic
|
|
|
27
27
|
const cts = ( new CancellationTokenSource(token));
|
|
28
28
|
workingCopy.model?.pushStackElement();
|
|
29
29
|
progress.report({
|
|
30
|
-
message: ( localize(
|
|
30
|
+
message: ( localize(14594, "Running Code Actions and Formatters..."))
|
|
31
31
|
});
|
|
32
32
|
let bubbleCancel = false;
|
|
33
33
|
await this.progressService.withProgress({
|
|
34
34
|
priority: NotificationPriority.URGENT,
|
|
35
35
|
location: ProgressLocation.Notification,
|
|
36
|
-
cancellable: ( localize(
|
|
36
|
+
cancellable: ( localize(14595, "Skip")),
|
|
37
37
|
delay: workingCopy.isDirty() ? 5000 : 3000
|
|
38
38
|
}, async (progress) => {
|
|
39
39
|
const participants = Array.from(this.saveParticipants).sort((a, b) => {
|
|
@@ -6,12 +6,12 @@ import { FileOperation, IFileStatWithMetadata } from "@codingame/monaco-vscode-a
|
|
|
6
6
|
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
7
7
|
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
8
8
|
import { IWorkingCopyService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyService.service";
|
|
9
|
-
import { IWorkingCopy } from "@codingame/monaco-vscode-
|
|
9
|
+
import { IWorkingCopy } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopy";
|
|
10
10
|
import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
11
11
|
import { VSBuffer, VSBufferReadable, VSBufferReadableStream } from "@codingame/monaco-vscode-api/vscode/vs/base/common/buffer";
|
|
12
12
|
import { SaveReason } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
|
|
13
13
|
import { IProgress, IProgressStep } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress";
|
|
14
|
-
import { IStoredFileWorkingCopy, IStoredFileWorkingCopyModel } from "@codingame/monaco-vscode-
|
|
14
|
+
import { IStoredFileWorkingCopy, IStoredFileWorkingCopyModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/storedFileWorkingCopy";
|
|
15
15
|
import { IWorkingCopyFileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service";
|
|
16
16
|
export interface SourceTargetPair {
|
|
17
17
|
/**
|
package/vscode/src/vs/workbench/contrib/codeEditor/browser/workbenchEditorWorkerService.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { EditorWorkerService } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/editorWorkerService";
|
|
2
|
-
import { ILanguageConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/languageConfigurationRegistry.service";
|
|
3
|
-
import { ILanguageFeaturesService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/languageFeatures.service";
|
|
4
|
-
import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service";
|
|
5
|
-
import { ITextResourceConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/textResourceConfiguration.service";
|
|
6
|
-
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
7
|
-
export declare class WorkbenchEditorWorkerService extends EditorWorkerService {
|
|
8
|
-
constructor(modelService: IModelService, configurationService: ITextResourceConfigurationService, logService: ILogService, languageConfigurationService: ILanguageConfigurationService, languageFeaturesService: ILanguageFeaturesService);
|
|
9
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { WebWorkerDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/webWorkerFactory';
|
|
4
|
-
import { FileAccess } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
5
|
-
import { EditorWorkerService } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/editorWorkerService';
|
|
6
|
-
import { ILanguageConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/languageConfigurationRegistry.service';
|
|
7
|
-
import { ILanguageFeaturesService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/languageFeatures.service';
|
|
8
|
-
import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service';
|
|
9
|
-
import { ITextResourceConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/textResourceConfiguration.service';
|
|
10
|
-
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
11
|
-
|
|
12
|
-
let WorkbenchEditorWorkerService = class WorkbenchEditorWorkerService extends EditorWorkerService {
|
|
13
|
-
constructor(modelService, configurationService, logService, languageConfigurationService, languageFeaturesService) {
|
|
14
|
-
const workerDescriptor = ( new WebWorkerDescriptor(( FileAccess.asBrowserUri('vs/editor/common/services/editorWebWorkerMain.js')), 'TextEditorWorker'));
|
|
15
|
-
super(workerDescriptor, modelService, configurationService, logService, languageConfigurationService, languageFeaturesService);
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
WorkbenchEditorWorkerService = ( __decorate([
|
|
19
|
-
( __param(0, IModelService)),
|
|
20
|
-
( __param(1, ITextResourceConfigurationService)),
|
|
21
|
-
( __param(2, ILogService)),
|
|
22
|
-
( __param(3, ILanguageConfigurationService)),
|
|
23
|
-
( __param(4, ILanguageFeaturesService))
|
|
24
|
-
], WorkbenchEditorWorkerService));
|
|
25
|
-
|
|
26
|
-
export { WorkbenchEditorWorkerService };
|