@codingame/monaco-vscode-api 1.76.0-next.2 → 1.76.1
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 +4 -1
- package/dist/api.js +1 -8
- package/dist/assets/break-6b46c048-6b46c048.mp3 +0 -0
- package/dist/assets/break-6b46c048.mp3 +0 -0
- package/dist/assets/diffLineDeleted-26945eb8-26945eb8.mp3 +0 -0
- package/dist/assets/diffLineDeleted-26945eb8.mp3 +0 -0
- package/dist/assets/diffLineInserted-8f202889-8f202889.mp3 +0 -0
- package/dist/assets/diffLineInserted-8f202889.mp3 +0 -0
- package/dist/assets/diffLineModified-fb126694-fb126694.mp3 +0 -0
- package/dist/assets/diffLineModified-fb126694.mp3 +0 -0
- package/dist/assets/error-b93c2a76-b93c2a76.mp3 +0 -0
- package/dist/assets/error-b93c2a76.mp3 +0 -0
- package/dist/assets/foldedAreas-a6b54171-a6b54171.mp3 +0 -0
- package/dist/assets/foldedAreas-a6b54171.mp3 +0 -0
- package/dist/assets/quickFixes-dc7d1e73-dc7d1e73.mp3 +0 -0
- package/dist/assets/quickFixes-dc7d1e73.mp3 +0 -0
- package/dist/assets/taskCompleted-f0dd8e18-f0dd8e18.mp3 +0 -0
- package/dist/assets/taskCompleted-f0dd8e18.mp3 +0 -0
- package/dist/assets/taskFailed-5494702a-5494702a.mp3 +0 -0
- package/dist/assets/taskFailed-5494702a.mp3 +0 -0
- package/dist/assets/terminalBell-ff9df1e1-ff9df1e1.mp3 +0 -0
- package/dist/assets/terminalBell-ff9df1e1.mp3 +0 -0
- package/dist/assets/warning-2687e2e7-2687e2e7.mp3 +0 -0
- package/dist/assets/warning-2687e2e7.mp3 +0 -0
- package/dist/audioCue.d.ts +22 -0
- package/dist/audioCue.js +1147 -0
- package/dist/button.js +325 -0
- package/dist/dialog.web.contribution.js +945 -0
- package/dist/dialogs.js +7 -960
- package/dist/extHost.js +1 -1
- package/dist/files.js +2 -1
- package/dist/layout.js +4 -325
- package/dist/missing-services.js +65 -1
- package/dist/modelEditor.js +21 -3
- package/dist/notifications.js +2 -1
- package/dist/polyfill.js +186 -2
- package/dist/services.d.ts +56 -1
- package/dist/services.js +1 -0
- package/dist/snippets.js +1 -1
- package/dist/textmate.d.ts +1 -1
- package/dist/textmate.js +5 -18
- package/dist/workbenchThemeService.js +1 -1
- package/dist/workspaceContext.js +2 -0
- package/package.json +14 -5
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ StandaloneServices.initialize({
|
|
|
49
49
|
})
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
Additionally, this library exposes
|
|
52
|
+
Additionally, this library exposes 11 modules that include the vscode version of some services (with some glue to make it work with monaco):
|
|
53
53
|
|
|
54
54
|
- Notifications: `vscode/service-override/notifications`
|
|
55
55
|
- Dialogs: `vscode/service-override/dialogs`
|
|
@@ -62,6 +62,7 @@ Additionally, this library exposes 10 modules that include the vscode version of
|
|
|
62
62
|
- Snippets: `vscode/service-override/snippets`
|
|
63
63
|
- VSCode themes: `vscode/service-override/theme`
|
|
64
64
|
- Token classification: `vscode/service-override/tokenClassification`
|
|
65
|
+
- Audio cue: `vscode/service-override/audioCue`
|
|
65
66
|
|
|
66
67
|
Usage:
|
|
67
68
|
|
|
@@ -144,6 +145,8 @@ vscode.languages.registerCompletionItemProvider(...)
|
|
|
144
145
|
|
|
145
146
|
### Demo
|
|
146
147
|
|
|
148
|
+
Try it out on https://codingame.github.io/monaco-vscode-api/
|
|
149
|
+
|
|
147
150
|
There is a demo that showcases the service-override features. It allows to register contributions with the same syntaxes as in VSCode.
|
|
148
151
|
It includes:
|
|
149
152
|
|
package/dist/api.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './polyfill.js';
|
|
2
2
|
import { B as Breakpoint$1, C as CallHierarchyIncomingCall$1, a as CallHierarchyItem$1, b as CallHierarchyOutgoingCall$1, c as CancellationTokenSource$1, d as CodeAction$1, e as CodeActionKind$1, f as CodeActionTriggerKind$1, g as CodeLens$1, h as Color$1, i as ColorInformation$1, j as ColorPresentation$1, k as CommentMode$1, l as CommentThreadCollapsibleState$1, m as CompletionItem$1, n as CompletionItemKind$1, o as CompletionItemTag$1, p as CompletionList$1, q as CompletionTriggerKind$1, r as ConfigurationTarget$1, s as CustomExecution$1, D as DebugAdapterExecutable$1, t as DebugAdapterInlineImplementation$1, u as DebugAdapterNamedPipeServer$1, v as DebugAdapterServer$1, w as DebugConsoleMode$1, x as DecorationRangeBehavior$1, y as Diagnostic$1, z as DiagnosticRelatedInformation$1, A as DiagnosticSeverity$1, E as DiagnosticTag$1, F as Disposable$1, G as DocumentHighlight$1, H as DocumentHighlightKind$1, I as DocumentLink$1, J as DocumentSymbol$1, K as EndOfLine$1, L as EnvironmentVariableMutatorType$1, M as EvaluatableExpression$1, N as InlineValueText$1, O as InlineValueVariableLookup$1, P as InlineValueEvaluatableExpression$1, Q as ExtensionKind$1, R as ExtensionMode$1, S as FileChangeType$1, T as FileDecoration$1, U as FileSystemError$1, V as FoldingRange$1, W as FoldingRangeKind$1, X as FunctionBreakpoint$1, Y as Hover$1, Z as Location$1, _ as MarkdownString$1, $ as ParameterInformation$1, a0 as Position$1, a1 as ProcessExecution$1, a2 as ProgressLocation$1, a3 as QuickInputButtons$1, a4 as Range$1, a5 as RelativePattern$1, a6 as Selection$2, a7 as SelectionRange$1, a8 as SemanticTokens$1, a9 as SemanticTokensBuilder$1, aa as SemanticTokensEdit$1, ab as SemanticTokensEdits$1, ac as SemanticTokensLegend$1, ad as ShellExecution$1, ae as ShellQuoting$1, af as SignatureHelp$1, ag as SignatureHelpTriggerKind$1, ah as SignatureInformation$1, ai as SnippetString$1, aj as SourceBreakpoint$1, ak as StatusBarAlignment$1, al as SymbolInformation$1, am as SymbolKind$1, an as SymbolTag$1, ao as Task$1, ap as TaskGroup$1, aq as TaskPanelKind$1, ar as TaskRevealKind$1, as as TaskScope$1, at as TerminalLink$1, au as TerminalLocation$1, av as TerminalProfile$1, aw as TextDocumentSaveReason$1, ax as TextEdit$1, ay as TextEditorLineNumbersStyle$1, az as TextEditorRevealType$1, aA as TextEditorSelectionChangeKind$1, aB as TextDocumentChangeReason$1, aC as ThemeColor$1, aD as ThemeIcon$1, aE as TreeItem$1, aF as TreeItemCollapsibleState$1, aG as TypeHierarchyItem$1, aH as UIKind$1, aI as ViewColumn$1, aJ as WorkspaceEdit$1, aK as InlayHint$1, aL as InlayHintLabelPart$1, aM as InlayHintKind$1, aN as NotebookRange$1, aO as NotebookCellKind$1, aP as NotebookCellData$1, aQ as NotebookData$1, aR as NotebookCellStatusBarAlignment$1, aS as NotebookCellOutput$1, aT as NotebookCellOutputItem$1, aU as NotebookCellStatusBarItem$1, aV as NotebookControllerAffinity$1, aW as LinkedEditingRanges$1, aX as TestRunRequest$1, aY as TestMessage$1, aZ as TestTag$1, a_ as TestRunProfileKind$1, a$ as LanguageStatusSeverity$1, b0 as QuickPickItemKind$1, b1 as TextDiffTabInput, b2 as CustomEditorTabInput, b3 as NotebookEditorTabInput, b4 as NotebookDiffEditorTabInput, b5 as WebviewEditorTabInput, b6 as TerminalEditorTabInput, b7 as InputBoxValidationSeverity$1, b8 as InlineSuggestionList, b9 as InlineCompletionTriggerKind$1, ba as InlineSuggestion, bb as DocumentDropEdit$1, bc as NotebookEditorRevealType$1, bd as SnippetTextEdit$1, be as NotebookEdit$1, bf as TerminalExitReason$1, bg as CommentThreadState$1, bh as TelemetryTrustedValue$1, bi as getExtHostServices, bj as DEFAULT_EXTENSION, bk as LanguageSelector, bl as initData, bm as ExtHostTelemetryLogger } from './extHost.js';
|
|
3
|
+
import { D as DebugConfigurationProviderTriggerKind$1, u as unsupported$1 } from './missing-services.js';
|
|
3
4
|
import { E as Emitter } from './contextkey.js';
|
|
4
5
|
import { F as FileType$1, a as FilePermission$1, S as Services } from './services2.js';
|
|
5
6
|
import { score } from 'monaco-editor/esm/vs/editor/common/languageSelector.js';
|
|
6
|
-
import { u as unsupported$1 } from './missing-services.js';
|
|
7
7
|
import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
8
8
|
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
9
9
|
import Severity from 'monaco-editor/esm/vs/base/common/severity.js';
|
|
@@ -17,13 +17,6 @@ import { CancellationError as CancellationError$1 } from 'monaco-editor/esm/vs/b
|
|
|
17
17
|
import { IndentAction as IndentAction$1 } from 'monaco-editor/esm/vs/editor/common/languages/languageConfiguration.js';
|
|
18
18
|
import { OverviewRulerLane as OverviewRulerLane$1 } from 'monaco-editor/esm/vs/editor/common/model.js';
|
|
19
19
|
import { TextEditorCursorStyle as TextEditorCursorStyle$1 } from 'monaco-editor/esm/vs/editor/common/config/editorOptions.js';
|
|
20
|
-
var DebugConfigurationProviderTriggerKind$1;
|
|
21
|
-
( ((function(DebugConfigurationProviderTriggerKind) {
|
|
22
|
-
DebugConfigurationProviderTriggerKind[DebugConfigurationProviderTriggerKind["Initial"] = 1] = "Initial";
|
|
23
|
-
DebugConfigurationProviderTriggerKind[DebugConfigurationProviderTriggerKind["Dynamic"] = 2] = "Dynamic";
|
|
24
|
-
})(
|
|
25
|
-
DebugConfigurationProviderTriggerKind$1 || (DebugConfigurationProviderTriggerKind$1 = {})
|
|
26
|
-
)));
|
|
27
20
|
function checkSelector(selector) {
|
|
28
21
|
return selector;
|
|
29
22
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as monaco from 'monaco-editor';
|
|
2
|
+
|
|
3
|
+
type IEditorOverrideServices = monaco.editor.IEditorOverrideServices
|
|
4
|
+
|
|
5
|
+
interface IRawLanguageExtensionPoint {
|
|
6
|
+
id: string;
|
|
7
|
+
extensions: string[];
|
|
8
|
+
filenames: string[];
|
|
9
|
+
filenamePatterns: string[];
|
|
10
|
+
firstLine: string;
|
|
11
|
+
aliases: string[];
|
|
12
|
+
mimetypes: string[];
|
|
13
|
+
configuration: string;
|
|
14
|
+
icon: {
|
|
15
|
+
light: string;
|
|
16
|
+
dark: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare function getServiceOverride(): IEditorOverrideServices;
|
|
21
|
+
|
|
22
|
+
export { IRawLanguageExtensionPoint, getServiceOverride as default };
|