@codingame/monaco-vscode-api 1.76.6 → 1.76.8
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 +7 -1
- package/dist/audioCue.js +28 -2
- package/dist/configuration2.js +1 -1
- package/dist/contextkeys.js +991 -15
- package/dist/debug.js +80 -165
- package/dist/files.js +1 -1
- package/dist/missing-services.js +1 -1
- package/dist/monaco.js +1 -1
- package/dist/polyfill.js +17 -42
- package/dist/snippetsService.js +1 -1
- package/dist/textFileEditorModel.js +1 -1
- package/dist/textmate.js +11 -7
- package/package.json +2 -1
- package/dist/assets/break-6b46c048.mp3 +0 -0
- package/dist/assets/diffLineDeleted-26945eb8.mp3 +0 -0
- package/dist/assets/diffLineInserted-8f202889.mp3 +0 -0
- package/dist/assets/diffLineModified-fb126694.mp3 +0 -0
- package/dist/assets/error-b93c2a76.mp3 +0 -0
- package/dist/assets/foldedAreas-a6b54171.mp3 +0 -0
- package/dist/assets/quickFixes-dc7d1e73.mp3 +0 -0
- package/dist/assets/taskCompleted-f0dd8e18.mp3 +0 -0
- package/dist/assets/taskFailed-5494702a.mp3 +0 -0
- package/dist/assets/terminalBell-ff9df1e1.mp3 +0 -0
- package/dist/assets/warning-2687e2e7.mp3 +0 -0
- /package/dist/assets/{break-6b46c048-6b46c048.mp3 → break.mp3} +0 -0
- /package/dist/assets/{diffLineDeleted-26945eb8-26945eb8.mp3 → diffLineDeleted.mp3} +0 -0
- /package/dist/assets/{diffLineInserted-8f202889-8f202889.mp3 → diffLineInserted.mp3} +0 -0
- /package/dist/assets/{diffLineModified-fb126694-fb126694.mp3 → diffLineModified.mp3} +0 -0
- /package/dist/assets/{error-b93c2a76-b93c2a76.mp3 → error.mp3} +0 -0
- /package/dist/assets/{foldedAreas-a6b54171-a6b54171.mp3 → foldedAreas.mp3} +0 -0
- /package/dist/assets/{quickFixes-dc7d1e73-dc7d1e73.mp3 → quickFixes.mp3} +0 -0
- /package/dist/assets/{taskCompleted-f0dd8e18-f0dd8e18.mp3 → taskCompleted.mp3} +0 -0
- /package/dist/assets/{taskFailed-5494702a-5494702a.mp3 → taskFailed.mp3} +0 -0
- /package/dist/assets/{terminalBell-ff9df1e1-ff9df1e1.mp3 → terminalBell.mp3} +0 -0
- /package/dist/assets/{warning-2687e2e7-2687e2e7.mp3 → warning.mp3} +0 -0
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ The VSCode api is composed of:
|
|
|
8
8
|
- Some features that are supported by Monaco (Language feature registrations...) which are just forwarded to it (with some transformations)
|
|
9
9
|
- Some features that are not supported by Monaco, and in such case:
|
|
10
10
|
- If it's an important feature: we let the user implement it as they wish.
|
|
11
|
-
- If it's some advanced features that don't make a lot of sense on Monaco (
|
|
11
|
+
- If it's some advanced features that don't make a lot of sense on Monaco (scm, tests...), it just throws an error when you try to use it.
|
|
12
12
|
|
|
13
13
|
To implement by hands the optional features (file system, workspace folders, file...), you can use the `Services` namespace from `vscode/services`:
|
|
14
14
|
|
|
@@ -161,6 +161,7 @@ It includes:
|
|
|
161
161
|
- Keybinding service, with user keybindings editor
|
|
162
162
|
- Token classification
|
|
163
163
|
- Snippets (but not working in monaco 0.34)
|
|
164
|
+
- Debuggers
|
|
164
165
|
|
|
165
166
|
It also uses the `getJsonSchemas` function to register them on the monaco json worker and have autocomplete/hover on settings and keybindings.
|
|
166
167
|
|
|
@@ -174,6 +175,11 @@ npm start
|
|
|
174
175
|
npm run start:debug
|
|
175
176
|
```
|
|
176
177
|
|
|
178
|
+
For the debug feature, also run:
|
|
179
|
+
```bash
|
|
180
|
+
npm run start:debugServer
|
|
181
|
+
```
|
|
182
|
+
|
|
177
183
|
### History
|
|
178
184
|
|
|
179
185
|
This project was mainly created to make the implementation of [monaco-languageclient](https://github.com/TypeFox/monaco-languageclient) more robust and maintainable.
|
package/dist/audioCue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as onServicesInitialized } from './polyfill.js';
|
|
1
|
+
import { o as onServicesInitialized, x as registerAssets } from './polyfill.js';
|
|
2
2
|
import { bS as IPreferencesService } from './missing-services.js';
|
|
3
3
|
import { _ as __decorate, a as __param, I as IEditorService, u as IDebugService } from './services2.js';
|
|
4
4
|
import { Disposable, DisposableStore, toDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
@@ -11,6 +11,17 @@ import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configurati
|
|
|
11
11
|
import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
12
12
|
import { FoldingController } from 'monaco-editor/esm/vs/editor/contrib/folding/browser/folding.js';
|
|
13
13
|
import { GhostTextController } from 'monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostTextController.js';
|
|
14
|
+
import break_mp3 from "./assets/break.mp3";
|
|
15
|
+
import diffLineDeleted_mp3 from "./assets/diffLineDeleted.mp3";
|
|
16
|
+
import diffLineInserted_mp3 from "./assets/diffLineInserted.mp3";
|
|
17
|
+
import diffLineModified_mp3 from "./assets/diffLineModified.mp3";
|
|
18
|
+
import error_mp3 from "./assets/error.mp3";
|
|
19
|
+
import foldedAreas_mp3 from "./assets/foldedAreas.mp3";
|
|
20
|
+
import quickFixes_mp3 from "./assets/quickFixes.mp3";
|
|
21
|
+
import taskCompleted_mp3 from "./assets/taskCompleted.mp3";
|
|
22
|
+
import taskFailed_mp3 from "./assets/taskFailed.mp3";
|
|
23
|
+
import terminalBell_mp3 from "./assets/terminalBell.mp3";
|
|
24
|
+
import warning_mp3 from "./assets/warning.mp3";
|
|
14
25
|
import { registerAction2, Action2 } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
|
|
15
26
|
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
16
27
|
import { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
|
|
@@ -516,7 +527,7 @@ let AudioCueService = class AudioCueService extends Disposable {
|
|
|
516
527
|
return;
|
|
517
528
|
}
|
|
518
529
|
this.playingSounds.add(sound);
|
|
519
|
-
const url = ( (FileAccess.asBrowserUri(`vs/platform/audioCues/browser/media/${sound.fileName}`).toString(true)));
|
|
530
|
+
const url = ( (( (FileAccess.asBrowserUri(`vs/platform/audioCues/browser/media/${sound.fileName}`))).toString(true)));
|
|
520
531
|
try {
|
|
521
532
|
await playAudio(url, this.getVolumeInPercent() / 100);
|
|
522
533
|
}
|
|
@@ -944,6 +955,20 @@ AudioCueLineDebuggerContribution = ( (__decorate([
|
|
|
944
955
|
( (__param(0, IDebugService))),
|
|
945
956
|
( (__param(1, IAudioCueService)))
|
|
946
957
|
], AudioCueLineDebuggerContribution)));
|
|
958
|
+
var audioAssets = Object.freeze({
|
|
959
|
+
__proto__: null,
|
|
960
|
+
vs_platform_audioCues_browser_media_break_mp3: break_mp3,
|
|
961
|
+
vs_platform_audioCues_browser_media_diffLineDeleted_mp3: diffLineDeleted_mp3,
|
|
962
|
+
vs_platform_audioCues_browser_media_diffLineInserted_mp3: diffLineInserted_mp3,
|
|
963
|
+
vs_platform_audioCues_browser_media_diffLineModified_mp3: diffLineModified_mp3,
|
|
964
|
+
vs_platform_audioCues_browser_media_error_mp3: error_mp3,
|
|
965
|
+
vs_platform_audioCues_browser_media_foldedAreas_mp3: foldedAreas_mp3,
|
|
966
|
+
vs_platform_audioCues_browser_media_quickFixes_mp3: quickFixes_mp3,
|
|
967
|
+
vs_platform_audioCues_browser_media_taskCompleted_mp3: taskCompleted_mp3,
|
|
968
|
+
vs_platform_audioCues_browser_media_taskFailed_mp3: taskFailed_mp3,
|
|
969
|
+
vs_platform_audioCues_browser_media_terminalBell_mp3: terminalBell_mp3,
|
|
970
|
+
vs_platform_audioCues_browser_media_warning_mp3: warning_mp3
|
|
971
|
+
});
|
|
947
972
|
class ShowAudioCueHelp extends Action2 {
|
|
948
973
|
constructor() {
|
|
949
974
|
super({
|
|
@@ -1134,6 +1159,7 @@ const audioCueFeatureBase = {
|
|
|
1134
1159
|
}
|
|
1135
1160
|
});
|
|
1136
1161
|
registerAction2(ShowAudioCueHelp);
|
|
1162
|
+
registerAssets(audioAssets);
|
|
1137
1163
|
function initialize(instantiationService) {
|
|
1138
1164
|
setTimeout(() => {
|
|
1139
1165
|
instantiationService.createInstance(AudioCueLineFeatureContribution);
|
package/dist/configuration2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Y as parseTree, Z as findNodeAtLocation, _ as createScanner } from './polyfill.js';
|
|
2
2
|
function format(documentText, range, options) {
|
|
3
3
|
let initialIndentLevel;
|
|
4
4
|
let formatText;
|