@codingame/monaco-vscode-api 1.76.8 → 1.78.0-next.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/README.md +87 -49
- package/dist/Bibtex.tmLanguage.js +2 -0
- package/dist/Handlebars.tmLanguage.js +2 -0
- package/dist/JSON.tmLanguage.js +2 -0
- package/dist/JSONC.tmLanguage.js +2 -0
- package/dist/JavaScript.tmLanguage.js +2 -0
- package/dist/JavaScriptReact.tmLanguage.js +2 -0
- package/dist/LaTeX.tmLanguage.js +2 -0
- package/dist/MagicPython.tmLanguage.js +2 -0
- package/dist/MagicRegExp.tmLanguage.js +2 -0
- package/dist/Red-color-theme.js +2 -0
- package/dist/Regular Expressions (JavaScript).js +2 -0
- package/dist/TeX.tmLanguage.js +2 -0
- package/dist/TypeScript.tmLanguage.js +2 -0
- package/dist/TypeScriptReact.tmLanguage.js +2 -0
- package/dist/_.contribution.js +1 -1
- package/dist/abyss-color-theme.js +2 -0
- package/dist/api.js +1 -3
- package/dist/api2.js +421 -18091
- package/dist/asp-vb-net.tmlanguage.js +2 -0
- package/dist/assets/diffLineDeleted.mp3 +0 -0
- package/dist/assets/diffLineInserted.mp3 +0 -0
- package/dist/assets/diffLineModified.mp3 +0 -0
- package/dist/audioCue.js +108 -478
- package/dist/bat.js +9 -0
- package/dist/batchfile.js +2 -0
- package/dist/batchfile.tmLanguage.js +2 -0
- package/dist/button.js +35 -8
- package/dist/c.js +2 -0
- package/dist/c.tmLanguage.js +2 -0
- package/dist/clojure.js +8 -0
- package/dist/clojure.tmLanguage.js +2 -0
- package/dist/coffeescript.js +9 -0
- package/dist/coffeescript.tmLanguage.js +2 -0
- package/dist/coffeescript2.js +2 -0
- package/dist/configuration.d.ts +269 -4
- package/dist/configuration.js +4326 -328
- package/dist/configuration2.js +14 -324
- package/dist/cpp-grammar-bailout.tmLanguage.js +2 -0
- package/dist/cpp.embedded.macro.tmLanguage.js +2 -0
- package/dist/cpp.js +16 -0
- package/dist/cpp.tmLanguage.js +2 -0
- package/dist/cpp2.js +2 -0
- package/dist/csharp.js +9 -0
- package/dist/csharp.tmLanguage.js +2 -0
- package/dist/csharp2.js +2 -0
- package/dist/cshtml.tmLanguage.js +2 -0
- package/dist/css.js +8 -0
- package/dist/css.tmLanguage.js +2 -0
- package/dist/cuda-cpp.tmLanguage.js +2 -0
- package/dist/dark_plus.js +2 -0
- package/dist/dark_plus_experimental.js +2 -0
- package/dist/dark_vs.js +2 -0
- package/dist/dart.js +8 -0
- package/dist/dart.tmLanguage.js +2 -0
- package/dist/debug.js +12115 -12209
- package/dist/default-extensions/bat.js +12 -0
- package/dist/default-extensions/clojure.js +11 -0
- package/dist/default-extensions/coffeescript.js +12 -0
- package/dist/default-extensions/cpp.js +19 -0
- package/dist/default-extensions/csharp.js +12 -0
- package/dist/default-extensions/css.js +11 -0
- package/dist/default-extensions/dart.js +11 -0
- package/dist/default-extensions/diff.js +11 -0
- package/dist/default-extensions/docker.js +11 -0
- package/dist/default-extensions/fsharp.js +12 -0
- package/dist/default-extensions/go.js +11 -0
- package/dist/default-extensions/groovy.js +12 -0
- package/dist/default-extensions/handlebars.js +11 -0
- package/dist/default-extensions/hlsl.js +11 -0
- package/dist/default-extensions/html.js +13 -0
- package/dist/default-extensions/ini.js +13 -0
- package/dist/default-extensions/java.js +12 -0
- package/dist/default-extensions/javascript.js +17 -0
- package/dist/default-extensions/json.js +13 -0
- package/dist/default-extensions/julia.js +11 -0
- package/dist/default-extensions/latex.js +14 -0
- package/dist/default-extensions/less.js +11 -0
- package/dist/default-extensions/log.js +10 -0
- package/dist/default-extensions/lua.js +11 -0
- package/dist/default-extensions/make.js +11 -0
- package/dist/default-extensions/markdown-basics.js +12 -0
- package/dist/default-extensions/objective-c.js +13 -0
- package/dist/default-extensions/perl.js +13 -0
- package/dist/default-extensions/php.js +13 -0
- package/dist/default-extensions/powershell.js +11 -0
- package/dist/default-extensions/pug.js +11 -0
- package/dist/default-extensions/python.js +12 -0
- package/dist/default-extensions/r.js +11 -0
- package/dist/default-extensions/razor.js +11 -0
- package/dist/default-extensions/ruby.js +11 -0
- package/dist/default-extensions/rust.js +11 -0
- package/dist/default-extensions/scss.js +12 -0
- package/dist/default-extensions/shaderlab.js +11 -0
- package/dist/default-extensions/shellscript.js +11 -0
- package/dist/default-extensions/sql.js +11 -0
- package/dist/default-extensions/swift.js +12 -0
- package/dist/default-extensions/theme-abyss.js +10 -0
- package/dist/default-extensions/theme-defaults.js +18 -0
- package/dist/default-extensions/theme-kimbie-dark.js +10 -0
- package/dist/default-extensions/theme-monokai-dimmed.js +10 -0
- package/dist/default-extensions/theme-monokai.js +10 -0
- package/dist/default-extensions/theme-quietlight.js +10 -0
- package/dist/default-extensions/theme-red.js +10 -0
- package/dist/default-extensions/theme-seti.js +10 -0
- package/dist/default-extensions/theme-solarized-dark.js +10 -0
- package/dist/default-extensions/theme-solarized-light.js +10 -0
- package/dist/default-extensions/theme-tomorrow-night-blue.js +10 -0
- package/dist/default-extensions/typescript-basics.js +17 -0
- package/dist/default-extensions/vb.js +12 -0
- package/dist/default-extensions/xml.js +13 -0
- package/dist/default-extensions/yaml.js +13 -0
- package/dist/dialogs.js +12 -216
- package/dist/diff.js +8 -0
- package/dist/diff.tmLanguage.js +2 -0
- package/dist/dimmed-monokai-color-theme.js +2 -0
- package/dist/docker.js +8 -0
- package/dist/docker.tmLanguage.js +2 -0
- package/dist/dom.js +101 -0
- package/dist/extensionManagement.js +4 -0
- package/dist/extensions.d.ts +368 -23
- package/dist/extensions.js +4 -85
- package/dist/extensionsRegistry.js +63 -64
- package/dist/files.d.ts +845 -0
- package/dist/files.js +1805 -1151
- package/dist/files2.js +32 -0
- package/dist/fsharp.js +9 -0
- package/dist/fsharp.tmLanguage.js +2 -0
- package/dist/fsharp2.js +2 -0
- package/dist/go.js +8 -0
- package/dist/go.tmLanguage.js +2 -0
- package/dist/groovy.js +9 -0
- package/dist/groovy.tmLanguage.js +2 -0
- package/dist/groovy2.js +2 -0
- package/dist/handlebars.js +8 -0
- package/dist/hc_black.js +2 -0
- package/dist/hc_light.js +2 -0
- package/dist/hlsl.js +8 -0
- package/dist/hlsl.tmLanguage.js +2 -0
- package/dist/html-derivative.tmLanguage.js +2 -0
- package/dist/html.js +10 -0
- package/dist/html.tmLanguage.js +2 -0
- package/dist/html.tmLanguage2.js +2 -0
- package/dist/html2.js +2 -0
- package/dist/ini.js +10 -0
- package/dist/ini.language-configuration.js +2 -0
- package/dist/ini.tmLanguage.js +2 -0
- package/dist/injection.js +1 -1
- package/dist/java.js +9 -0
- package/dist/java.tmLanguage.js +2 -0
- package/dist/java2.js +2 -0
- package/dist/javascript-language-configuration.js +2 -0
- package/dist/javascript.js +14 -0
- package/dist/javascript2.js +2 -0
- package/dist/jsdoc.js.injection.tmLanguage.js +2 -0
- package/dist/jsdoc.ts.injection.tmLanguage.js +2 -0
- package/dist/json.js +10 -0
- package/dist/jsonErrorMessages.js +1 -1
- package/dist/julia.js +8 -0
- package/dist/julia.tmLanguage.js +2 -0
- package/dist/keybindings.d.ts +1 -10
- package/dist/keybindings.js +291 -353
- package/dist/kimbie-dark-color-theme.js +2 -0
- package/dist/language-configuration.js +2 -0
- package/dist/language-configuration10.js +2 -0
- package/dist/language-configuration11.js +2 -0
- package/dist/language-configuration12.js +2 -0
- package/dist/language-configuration13.js +2 -0
- package/dist/language-configuration14.js +2 -0
- package/dist/language-configuration15.js +2 -0
- package/dist/language-configuration16.js +2 -0
- package/dist/language-configuration17.js +2 -0
- package/dist/language-configuration18.js +2 -0
- package/dist/language-configuration19.js +2 -0
- package/dist/language-configuration2.js +2 -0
- package/dist/language-configuration20.js +2 -0
- package/dist/language-configuration21.js +2 -0
- package/dist/language-configuration22.js +2 -0
- package/dist/language-configuration23.js +2 -0
- package/dist/language-configuration24.js +2 -0
- package/dist/language-configuration25.js +2 -0
- package/dist/language-configuration26.js +2 -0
- package/dist/language-configuration27.js +2 -0
- package/dist/language-configuration28.js +2 -0
- package/dist/language-configuration29.js +2 -0
- package/dist/language-configuration3.js +2 -0
- package/dist/language-configuration30.js +2 -0
- package/dist/language-configuration31.js +2 -0
- package/dist/language-configuration32.js +2 -0
- package/dist/language-configuration33.js +2 -0
- package/dist/language-configuration34.js +2 -0
- package/dist/language-configuration35.js +2 -0
- package/dist/language-configuration36.js +2 -0
- package/dist/language-configuration37.js +2 -0
- package/dist/language-configuration38.js +2 -0
- package/dist/language-configuration39.js +2 -0
- package/dist/language-configuration4.js +2 -0
- package/dist/language-configuration5.js +2 -0
- package/dist/language-configuration6.js +2 -0
- package/dist/language-configuration7.js +2 -0
- package/dist/language-configuration8.js +2 -0
- package/dist/language-configuration9.js +2 -0
- package/dist/languageService.js +5 -6
- package/dist/languages.d.ts +66 -1
- package/dist/languages.js +924 -5
- package/dist/latex.js +11 -0
- package/dist/layout.contribution.darwin.js +1 -1
- package/dist/layout.contribution.linux.js +1 -1
- package/dist/layout.contribution.win.js +1 -1
- package/dist/layout.js +4 -10
- package/dist/layoutService.js +10 -2
- package/dist/less.js +8 -0
- package/dist/less.tmLanguage.js +2 -0
- package/dist/light_plus.js +2 -0
- package/dist/light_plus_experimental.js +2 -0
- package/dist/light_vs.js +2 -0
- package/dist/log.js +7 -0
- package/dist/log.tmLanguage.js +2 -0
- package/dist/lua.js +8 -0
- package/dist/lua.tmLanguage.js +2 -0
- package/dist/make.js +8 -0
- package/dist/make.tmLanguage.js +2 -0
- package/dist/markdown-basics.js +9 -0
- package/dist/markdown-latex-combined.tmLanguage.js +2 -0
- package/dist/markdown.js +2 -0
- package/dist/markdown.tmLanguage.js +2 -0
- package/dist/memento.js +91 -0
- package/dist/modelEditor.d.ts +1480 -138
- package/dist/modelEditor.js +8700 -326
- package/dist/monaco.d.ts +987 -15
- package/dist/monaco.js +40 -10
- package/dist/monokai-color-theme.js +2 -0
- package/dist/notifications.js +86 -64
- package/dist/objective-c.js +10 -0
- package/dist/objective-c.tmLanguage.js +2 -0
- package/dist/objective-c__.tmLanguage.js +2 -0
- package/dist/perl.js +10 -0
- package/dist/perl.language-configuration.js +2 -0
- package/dist/perl.tmLanguage.js +2 -0
- package/dist/perl6.language-configuration.js +2 -0
- package/dist/perl6.tmLanguage.js +2 -0
- package/dist/php.js +10 -0
- package/dist/php.tmLanguage.js +2 -0
- package/dist/php2.js +2 -0
- package/dist/platform.js +105 -0
- package/dist/platform.tmLanguage.js +2 -0
- package/dist/polyfill.js +51922 -11067
- package/dist/powershell.js +8 -0
- package/dist/powershell.tmLanguage.js +2 -0
- package/dist/preferences.js +2532 -0
- package/dist/properties.language-configuration.js +2 -0
- package/dist/pug.js +8 -0
- package/dist/pug.tmLanguage.js +2 -0
- package/dist/python.js +9 -0
- package/dist/quietlight-color-theme.js +2 -0
- package/dist/r.js +8 -0
- package/dist/r.tmLanguage.js +2 -0
- package/dist/razor.js +8 -0
- package/dist/rollup-vsix-plugin.d.ts +8 -0
- package/dist/rollup-vsix-plugin.js +104 -0
- package/dist/ruby.js +8 -0
- package/dist/ruby.tmLanguage.js +2 -0
- package/dist/rust.js +8 -0
- package/dist/rust.tmLanguage.js +2 -0
- package/dist/sassdoc.tmLanguage.js +2 -0
- package/dist/scss.js +9 -0
- package/dist/scss.tmLanguage.js +2 -0
- package/dist/services.d.ts +12988 -12840
- package/dist/services.js +1 -1
- package/dist/shaderlab.js +8 -0
- package/dist/shaderlab.tmLanguage.js +2 -0
- package/dist/shell-unix-bash.tmLanguage.js +2 -0
- package/dist/shellscript.js +8 -0
- package/dist/snippets.js +6 -11
- package/dist/snippetsService.js +7 -10
- package/dist/solarized-dark-color-theme.js +2 -0
- package/dist/solarized-light-color-theme.js +2 -0
- package/dist/sql.js +8 -0
- package/dist/sql.tmLanguage.js +2 -0
- package/dist/swift.js +9 -0
- package/dist/swift.tmLanguage.js +2 -0
- package/dist/swift2.js +2 -0
- package/dist/tags-language-configuration.js +2 -0
- package/dist/textmate.d.ts +0 -264
- package/dist/textmate.js +402 -66
- package/dist/theme-abyss.js +7 -0
- package/dist/theme-defaults.js +15 -0
- package/dist/theme-kimbie-dark.js +7 -0
- package/dist/theme-monokai-dimmed.js +7 -0
- package/dist/theme-monokai.js +7 -0
- package/dist/theme-quietlight.js +7 -0
- package/dist/theme-red.js +7 -0
- package/dist/theme-seti.js +7 -0
- package/dist/theme-solarized-dark.js +7 -0
- package/dist/theme-solarized-light.js +7 -0
- package/dist/theme-tomorrow-night-blue.js +7 -0
- package/dist/theme.js +6 -11
- package/dist/{contextkeys.js → theme2.js} +165 -143
- package/dist/tokenClassificationRegistry.js +46 -2
- package/dist/tomorrow-night-blue-color-theme.js +2 -0
- package/dist/typescript-basics.js +14 -0
- package/dist/typescript.js +2 -0
- package/dist/unboundCommands.js +41 -0
- package/dist/utils.js +345 -0
- package/dist/vb.js +9 -0
- package/dist/vb2.js +2 -0
- package/dist/vs-seti-icon-theme.js +2 -0
- package/dist/vs_minimal-icon-theme.js +2 -0
- package/dist/xml.js +10 -0
- package/dist/xml.language-configuration.js +2 -0
- package/dist/xml.tmLanguage.js +2 -0
- package/dist/xsl.language-configuration.js +2 -0
- package/dist/xsl.tmLanguage.js +2 -0
- package/dist/yaml.js +10 -0
- package/dist/yaml.tmLanguage.js +2 -0
- package/package.json +50 -33
- package/dist/async.js +0 -301
- package/dist/cancellation.js +0 -3
- package/dist/configurationRegistry.js +0 -441
- package/dist/extensionResourceLoader.js +0 -96
- package/dist/labels.js +0 -14
- package/dist/languageConfiguration.js +0 -919
- package/dist/missing-services.js +0 -5554
- package/dist/resources.js +0 -197
- package/dist/services2.js +0 -3467
- package/dist/textFileEditorModel.js +0 -2985
- package/dist/tokenClassification.d.ts +0 -7
- package/dist/tokenClassification.js +0 -277
- package/dist/variableResolver.js +0 -1711
- package/dist/workbenchThemeService.js +0 -46
- package/dist/workspaceContext.js +0 -50
- /package/dist/{languageConfiguration.d.ts → preferences.d.ts} +0 -0
package/dist/monaco.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { a1 as distinct } from './polyfill.js';
|
|
1
|
+
import { __decorate, __param, IFileService, distinct, IUserDataProfilesService } from './polyfill.js';
|
|
2
|
+
export { ContextKeyExprType } from './polyfill.js';
|
|
4
3
|
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js';
|
|
5
4
|
export { registerColor } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
6
|
-
import {
|
|
5
|
+
import { createInjectedClass } from './injection.js';
|
|
7
6
|
import { editorOptionsRegistry } from 'monaco-editor/esm/vs/editor/common/config/editorOptions.js';
|
|
8
7
|
import { equals } from 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
9
8
|
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
10
9
|
export { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
11
10
|
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
11
|
+
import { VSBuffer } from 'monaco-editor/esm/vs/base/common/buffer.js';
|
|
12
|
+
import { ITextModelService } from 'monaco-editor/esm/vs/editor/common/services/resolverService.js';
|
|
12
13
|
import { Extensions as Extensions$1 } from 'monaco-editor/esm/vs/platform/jsonschemas/common/jsonContributionRegistry.js';
|
|
13
14
|
import { Extensions as Extensions$2 } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
|
|
14
15
|
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
@@ -159,15 +160,27 @@ let ConfiguredStandaloneEditor = class ConfiguredStandaloneEditor extends create
|
|
|
159
160
|
this.updateEditorConfiguration();
|
|
160
161
|
}
|
|
161
162
|
};
|
|
162
|
-
ConfiguredStandaloneEditor =
|
|
163
|
+
ConfiguredStandaloneEditor = __decorate([
|
|
163
164
|
( __param(3, IInstantiationService)),
|
|
164
165
|
( __param(4, ITextResourceConfigurationService))
|
|
165
|
-
], ConfiguredStandaloneEditor)
|
|
166
|
+
], ConfiguredStandaloneEditor);
|
|
166
167
|
class ConfiguredStandaloneDiffEditor extends StandaloneDiffEditor {
|
|
167
168
|
_createInnerEditor(instantiationService, container, options) {
|
|
168
169
|
return instantiationService.createInstance(ConfiguredStandaloneEditor, container, true, options);
|
|
169
170
|
}
|
|
170
171
|
}
|
|
172
|
+
async function writeFile(uri, content) {
|
|
173
|
+
await StandaloneServices.get(IFileService).writeFile(uri, VSBuffer.fromString(content));
|
|
174
|
+
}
|
|
175
|
+
async function deleteFile(uri, options) {
|
|
176
|
+
await StandaloneServices.get(IFileService).del(uri, options);
|
|
177
|
+
}
|
|
178
|
+
async function createModelReference(resource, content) {
|
|
179
|
+
if (content != null) {
|
|
180
|
+
await writeFile(resource, content);
|
|
181
|
+
}
|
|
182
|
+
return (await StandaloneServices.get(ITextModelService).createModelReference(resource));
|
|
183
|
+
}
|
|
171
184
|
const createConfiguredEditor = (domElement, options, override) => {
|
|
172
185
|
const instantiationService = StandaloneServices.initialize(override ?? {});
|
|
173
186
|
return instantiationService.createInstance(ConfiguredStandaloneEditor, domElement, false, options);
|
|
@@ -181,7 +194,15 @@ const Extensions = {
|
|
|
181
194
|
...Extensions$2
|
|
182
195
|
};
|
|
183
196
|
const registry = ( Registry.as(Extensions.JSONContribution));
|
|
184
|
-
function
|
|
197
|
+
function getDefaultFileMatch() {
|
|
198
|
+
const userDataProfilesService = StandaloneServices.get(IUserDataProfilesService);
|
|
199
|
+
const profile = userDataProfilesService.defaultProfile;
|
|
200
|
+
return {
|
|
201
|
+
keybindings: [( profile.keybindingsResource.toString(true))],
|
|
202
|
+
'settings/user': [( profile.settingsResource.toString(true))]
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
function getJsonSchemas(fileMatchs = getDefaultFileMatch()) {
|
|
185
206
|
return ( Object.entries(registry.getSchemaContributions().schemas)
|
|
186
207
|
.filter(([uri]) => uri !== 'vscode://schemas/vscode-extensions')
|
|
187
208
|
.map(([uri, schema]) => {
|
|
@@ -190,9 +211,18 @@ function getJsonSchemas(fileMatchs = {}) {
|
|
|
190
211
|
return {
|
|
191
212
|
uri,
|
|
192
213
|
schema,
|
|
193
|
-
fileMatch:
|
|
214
|
+
fileMatch: fileMatchs[schemaName]
|
|
194
215
|
};
|
|
195
216
|
}));
|
|
196
217
|
}
|
|
197
|
-
|
|
198
|
-
|
|
218
|
+
function synchronizeJsonSchemas() {
|
|
219
|
+
function updateDiagnosticsOptions() {
|
|
220
|
+
monaco.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
221
|
+
...monaco.languages.json.jsonDefaults.diagnosticsOptions,
|
|
222
|
+
schemas: getJsonSchemas()
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
updateDiagnosticsOptions();
|
|
226
|
+
return registry.onDidChangeSchema(updateDiagnosticsOptions);
|
|
227
|
+
}
|
|
228
|
+
export { Extensions, createConfiguredDiffEditor, createConfiguredEditor, createModelReference, deleteFile, synchronizeJsonSchemas, writeFile };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var monokaiColorTheme = "// This theme's colors are based on the original Monokai:\n// #1e1f1c (tab well, borders)\n// #272822 (editor background)\n// #414339 (selection)\n// #75715e (focus)\n// #f8f8f2 (editor foreground)\n{\n\t\"type\": \"dark\",\n\t\"colors\": {\n\t\t\"dropdown.background\": \"#414339\",\n\t\t\"list.activeSelectionBackground\": \"#75715E\",\n\t\t\"quickInputList.focusBackground\": \"#414339\",\n\t\t\"dropdown.listBackground\": \"#1e1f1c\",\n\t\t\"list.inactiveSelectionBackground\": \"#414339\",\n\t\t\"list.hoverBackground\": \"#3e3d32\",\n\t\t\"list.dropBackground\": \"#414339\",\n\t\t\"list.highlightForeground\": \"#f8f8f2\",\n\t\t\"button.background\": \"#75715E\",\n\t\t\"editor.background\": \"#272822\",\n\t\t\"editor.foreground\": \"#f8f8f2\",\n\t\t\"selection.background\": \"#878b9180\",\n\t\t\"editor.selectionHighlightBackground\": \"#575b6180\",\n\t\t\"editor.selectionBackground\": \"#878b9180\",\n\t\t\"minimap.selectionHighlight\": \"#878b9180\",\n\t\t\"editor.wordHighlightBackground\": \"#4a4a7680\",\n\t\t\"editor.wordHighlightStrongBackground\": \"#6a6a9680\",\n\t\t\"editor.lineHighlightBackground\": \"#3e3d32\",\n\t\t\"editorLineNumber.activeForeground\": \"#c2c2bf\",\n\t\t\"editorCursor.foreground\": \"#f8f8f0\",\n\t\t\"editorWhitespace.foreground\": \"#464741\",\n\t\t\"editorIndentGuide.background\": \"#464741\",\n\t\t\"editorIndentGuide.activeBackground\": \"#767771\",\n\t\t\"editorGroupHeader.tabsBackground\": \"#1e1f1c\",\n\t\t\"editorGroup.dropBackground\": \"#41433980\",\n\t\t\"tab.inactiveBackground\": \"#34352f\",\n\t\t\"tab.border\": \"#1e1f1c\",\n\t\t\"tab.inactiveForeground\": \"#ccccc7\", // needs to be bright so it's readable when another editor group is focused\n\t\t\"tab.lastPinnedBorder\": \"#414339\",\n\t\t\"widget.shadow\": \"#00000098\",\n\t\t\"progressBar.background\": \"#75715E\",\n\t\t\"badge.background\": \"#75715E\",\n\t\t\"badge.foreground\": \"#f8f8f2\",\n\t\t\"editorLineNumber.foreground\": \"#90908a\",\n\t\t\"panelTitle.activeForeground\": \"#f8f8f2\",\n\t\t\"panelTitle.activeBorder\": \"#75715E\",\n\t\t\"panelTitle.inactiveForeground\": \"#75715E\",\n\t\t\"panel.border\": \"#414339\",\n\t\t\"settings.focusedRowBackground\": \"#4143395A\",\n\t\t\"titleBar.activeBackground\": \"#1e1f1c\",\n\t\t\"statusBar.background\": \"#414339\",\n\t\t\"statusBar.noFolderBackground\": \"#414339\",\n\t\t\"statusBar.debuggingBackground\": \"#75715E\",\n\t\t\"statusBarItem.remoteBackground\": \"#AC6218\",\n\t\t\"ports.iconRunningProcessForeground\": \"#ccccc7\",\n\t\t\"activityBar.background\": \"#272822\",\n\t\t\"activityBar.foreground\": \"#f8f8f2\",\n\t\t\"sideBar.background\": \"#1e1f1c\",\n\t\t\"sideBarSectionHeader.background\": \"#272822\",\n\t\t\"menu.background\": \"#1e1f1c\",\n\t\t\"menu.foreground\": \"#cccccc\",\n\t\t\"pickerGroup.foreground\": \"#75715E\",\n\t\t\"input.background\": \"#414339\",\n\t\t\"inputOption.activeBorder\": \"#75715E\",\n\t\t\"focusBorder\": \"#99947c\",\n\t\t\"editorWidget.background\": \"#1e1f1c\",\n\t\t\"debugToolBar.background\": \"#1e1f1c\",\n\t\t\"diffEditor.insertedTextBackground\": \"#4b661680\", // middle of #272822 and #a6e22e\n\t\t\"diffEditor.removedTextBackground\": \"#90274A70\", // middle of #272822 and #f92672\n\t\t\"inputValidation.errorBackground\": \"#90274A\", // middle of #272822 and #f92672\n\t\t\"inputValidation.errorBorder\": \"#f92672\",\n\t\t\"inputValidation.warningBackground\": \"#848528\", // middle of #272822 and #e2e22e\n\t\t\"inputValidation.warningBorder\": \"#e2e22e\",\n\t\t\"inputValidation.infoBackground\": \"#546190\", // middle of #272822 and #819aff\n\t\t\"inputValidation.infoBorder\": \"#819aff\",\n\t\t\"editorHoverWidget.background\": \"#414339\",\n\t\t\"editorHoverWidget.border\": \"#75715E\",\n\t\t\"editorSuggestWidget.background\": \"#272822\",\n\t\t\"editorSuggestWidget.border\": \"#75715E\",\n\t\t\"editorGroup.border\": \"#34352f\",\n\t\t\"peekView.border\": \"#75715E\",\n\t\t\"peekViewEditor.background\": \"#272822\",\n\t\t\"peekViewResult.background\": \"#1e1f1c\",\n\t\t\"peekViewTitle.background\": \"#1e1f1c\",\n\t\t\"peekViewResult.selectionBackground\": \"#414339\",\n\t\t\"peekViewResult.matchHighlightBackground\": \"#75715E\",\n\t\t\"peekViewEditor.matchHighlightBackground\": \"#75715E\",\n\t\t\"terminal.ansiBlack\": \"#333333\",\n\t\t\"terminal.ansiRed\": \"#C4265E\", // the bright color with ~75% transparent on the background\n\t\t\"terminal.ansiGreen\": \"#86B42B\",\n\t\t\"terminal.ansiYellow\": \"#B3B42B\",\n\t\t\"terminal.ansiBlue\": \"#6A7EC8\",\n\t\t\"terminal.ansiMagenta\": \"#8C6BC8\",\n\t\t\"terminal.ansiCyan\": \"#56ADBC\",\n\t\t\"terminal.ansiWhite\": \"#e3e3dd\",\n\t\t\"terminal.ansiBrightBlack\": \"#666666\",\n\t\t\"terminal.ansiBrightRed\": \"#f92672\",\n\t\t\"terminal.ansiBrightGreen\": \"#A6E22E\",\n\t\t\"terminal.ansiBrightYellow\": \"#e2e22e\", // hue shifted #A6E22E\n\t\t\"terminal.ansiBrightBlue\": \"#819aff\", // hue shifted #AE81FF\n\t\t\"terminal.ansiBrightMagenta\": \"#AE81FF\",\n\t\t\"terminal.ansiBrightCyan\": \"#66D9EF\",\n\t\t\"terminal.ansiBrightWhite\": \"#f8f8f2\"\n\t},\n\t\"tokenColors\": [\n\t\t{\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#F8F8F2\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"scope\": [\n\t\t\t\t\"meta.embedded\",\n\t\t\t\t\"source.groovy.embedded\",\n\t\t\t\t\"string meta.image.inline.markdown\"\n\t\t\t],\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#F8F8F2\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Comment\",\n\t\t\t\"scope\": \"comment\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#88846f\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"String\",\n\t\t\t\"scope\": \"string\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#E6DB74\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Template Definition\",\n\t\t\t\"scope\": [\n\t\t\t\t\"punctuation.definition.template-expression\",\n\t\t\t\t\"punctuation.section.embedded\"\n\t\t\t],\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#F92672\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Reset JavaScript string interpolation expression\",\n\t\t\t\"scope\": [\n\t\t\t\t\"meta.template.expression\"\n\t\t\t],\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#F8F8F2\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Number\",\n\t\t\t\"scope\": \"constant.numeric\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#AE81FF\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Built-in constant\",\n\t\t\t\"scope\": \"constant.language\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#AE81FF\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"User-defined constant\",\n\t\t\t\"scope\": \"constant.character, constant.other\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#AE81FF\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Variable\",\n\t\t\t\"scope\": \"variable\",\n\t\t\t\"settings\": {\n\t\t\t\t\"fontStyle\": \"\",\n\t\t\t\t\"foreground\": \"#F8F8F2\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Keyword\",\n\t\t\t\"scope\": \"keyword\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#F92672\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Storage\",\n\t\t\t\"scope\": \"storage\",\n\t\t\t\"settings\": {\n\t\t\t\t\"fontStyle\": \"\",\n\t\t\t\t\"foreground\": \"#F92672\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Storage type\",\n\t\t\t\"scope\": \"storage.type\",\n\t\t\t\"settings\": {\n\t\t\t\t\"fontStyle\": \"italic\",\n\t\t\t\t\"foreground\": \"#66D9EF\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Class name\",\n\t\t\t\"scope\": \"entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution\",\n\t\t\t\"settings\": {\n\t\t\t\t\"fontStyle\": \"underline\",\n\t\t\t\t\"foreground\": \"#A6E22E\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Inherited class\",\n\t\t\t\"scope\": \"entity.other.inherited-class\",\n\t\t\t\"settings\": {\n\t\t\t\t\"fontStyle\": \"italic underline\",\n\t\t\t\t\"foreground\": \"#A6E22E\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Function name\",\n\t\t\t\"scope\": \"entity.name.function\",\n\t\t\t\"settings\": {\n\t\t\t\t\"fontStyle\": \"\",\n\t\t\t\t\"foreground\": \"#A6E22E\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Function argument\",\n\t\t\t\"scope\": \"variable.parameter\",\n\t\t\t\"settings\": {\n\t\t\t\t\"fontStyle\": \"italic\",\n\t\t\t\t\"foreground\": \"#FD971F\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Tag name\",\n\t\t\t\"scope\": \"entity.name.tag\",\n\t\t\t\"settings\": {\n\t\t\t\t\"fontStyle\": \"\",\n\t\t\t\t\"foreground\": \"#F92672\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Tag attribute\",\n\t\t\t\"scope\": \"entity.other.attribute-name\",\n\t\t\t\"settings\": {\n\t\t\t\t\"fontStyle\": \"\",\n\t\t\t\t\"foreground\": \"#A6E22E\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Library function\",\n\t\t\t\"scope\": \"support.function\",\n\t\t\t\"settings\": {\n\t\t\t\t\"fontStyle\": \"\",\n\t\t\t\t\"foreground\": \"#66D9EF\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Library constant\",\n\t\t\t\"scope\": \"support.constant\",\n\t\t\t\"settings\": {\n\t\t\t\t\"fontStyle\": \"\",\n\t\t\t\t\"foreground\": \"#66D9EF\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Library class/type\",\n\t\t\t\"scope\": \"support.type, support.class\",\n\t\t\t\"settings\": {\n\t\t\t\t\"fontStyle\": \"italic\",\n\t\t\t\t\"foreground\": \"#66D9EF\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Library variable\",\n\t\t\t\"scope\": \"support.other.variable\",\n\t\t\t\"settings\": {\n\t\t\t\t\"fontStyle\": \"\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Invalid\",\n\t\t\t\"scope\": \"invalid\",\n\t\t\t\"settings\": {\n\t\t\t\t\"fontStyle\": \"\",\n\t\t\t\t\"foreground\": \"#F44747\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Invalid deprecated\",\n\t\t\t\"scope\": \"invalid.deprecated\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#F44747\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"JSON String\",\n\t\t\t\"scope\": \"meta.structure.dictionary.json string.quoted.double.json\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#CFCFC2\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"diff.header\",\n\t\t\t\"scope\": \"meta.diff, meta.diff.header\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#75715E\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"diff.deleted\",\n\t\t\t\"scope\": \"markup.deleted\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#F92672\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"diff.inserted\",\n\t\t\t\"scope\": \"markup.inserted\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#A6E22E\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"diff.changed\",\n\t\t\t\"scope\": \"markup.changed\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#E6DB74\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"scope\": \"constant.numeric.line-number.find-in-files - match\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#AE81FFA0\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"scope\": \"entity.name.filename.find-in-files\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#E6DB74\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Markup Quote\",\n\t\t\t\"scope\": \"markup.quote\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#F92672\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Markup Lists\",\n\t\t\t\"scope\": \"markup.list\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#E6DB74\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Markup Styling\",\n\t\t\t\"scope\": \"markup.bold, markup.italic\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#66D9EF\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Markup Inline\",\n\t\t\t\"scope\": \"markup.inline.raw\",\n\t\t\t\"settings\": {\n\t\t\t\t\"fontStyle\": \"\",\n\t\t\t\t\"foreground\": \"#FD971F\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Markup Headings\",\n\t\t\t\"scope\": \"markup.heading\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#A6E22E\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Markup Setext Header\",\n\t\t\t\"scope\": \"markup.heading.setext\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#A6E22E\",\n\t\t\t\t\"fontStyle\": \"bold\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Markup Headings\",\n\t\t\t\"scope\": \"markup.heading.markdown\",\n\t\t\t\"settings\": {\n\t\t\t\t\"fontStyle\": \"bold\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Markdown Quote\",\n\t\t\t\"scope\": \"markup.quote.markdown\",\n\t\t\t\"settings\": {\n\t\t\t\t\"fontStyle\": \"italic\",\n\t\t\t\t\"foreground\": \"#75715E\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Markdown Bold\",\n\t\t\t\"scope\": \"markup.bold.markdown\",\n\t\t\t\"settings\": {\n\t\t\t\t\"fontStyle\": \"bold\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Markdown Link Title/Description\",\n\t\t\t\"scope\": \"string.other.link.title.markdown,string.other.link.description.markdown\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#AE81FF\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Markdown Underline Link/Image\",\n\t\t\t\"scope\": \"markup.underline.link.markdown,markup.underline.link.image.markdown\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#E6DB74\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Markdown Emphasis\",\n\t\t\t\"scope\": \"markup.italic.markdown\",\n\t\t\t\"settings\": {\n\t\t\t\t\"fontStyle\": \"italic\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"scope\": \"markup.strikethrough\",\n\t\t\t\"settings\": {\n\t\t\t\t\"fontStyle\": \"strikethrough\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Markdown Punctuation Definition Link\",\n\t\t\t\"scope\": \"markup.list.unnumbered.markdown, markup.list.numbered.markdown\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#f8f8f2\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"Markdown List Punctuation\",\n\t\t\t\"scope\": [\n\t\t\t\t\"punctuation.definition.list.begin.markdown\"\n\t\t\t],\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#A6E22E\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"scope\": \"token.info-token\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#6796e6\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"scope\": \"token.warn-token\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#cd9731\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"scope\": \"token.error-token\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#f44747\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"scope\": \"token.debug-token\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#b267e6\"\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"name\": \"this.self\",\n\t\t\t\"scope\": \"variable.language\",\n\t\t\t\"settings\": {\n\t\t\t\t\"foreground\": \"#FD971F\"\n\t\t\t}\n\t\t}\n\t],\n\t\"semanticHighlighting\": true\n}\n";
|
|
2
|
+
export { monokaiColorTheme as default };
|
package/dist/notifications.js
CHANGED
|
@@ -1,51 +1,48 @@
|
|
|
1
|
-
import { n,
|
|
2
|
-
import {
|
|
3
|
-
import { _ as __decorate, E as Emitter, N as NotificationsFilter, a as __param, G as NeverShowAgainScope, d as IEditorGroupsService, t as IHostService } from './services2.js';
|
|
4
|
-
import { N as NotificationsToastsVisibleContext, a as NOTIFICATIONS_BACKGROUND, b as NOTIFICATIONS_TOAST_BORDER, c as NotificationsCenterVisibleContext, d as NOTIFICATIONS_CENTER_BORDER, e as NOTIFICATIONS_CENTER_HEADER_FOREGROUND, f as NOTIFICATIONS_CENTER_HEADER_BACKGROUND, i as isErrorWithActions, g as NotificationFocusedContext } from './contextkeys.js';
|
|
1
|
+
import { n, __decorate, onRenderWorkbench, Emitter, NotificationsFilter, __param, NotificationPriority, IntervalCounter, NeverShowAgainScope, assertAllDefined, isErrorWithActions, IEditorGroupsService, ILifecycleService, IHostService } from './polyfill.js';
|
|
2
|
+
import { NotificationsCenterVisibleContext, NotificationFocusedContext, NotificationsToastsVisibleContext, NOTIFICATIONS_BACKGROUND, NOTIFICATIONS_TOAST_BORDER, NOTIFICATIONS_CENTER_BORDER, NOTIFICATIONS_CENTER_HEADER_FOREGROUND, NOTIFICATIONS_CENTER_HEADER_BACKGROUND } from './theme2.js';
|
|
5
3
|
import { Disposable, toDisposable, DisposableStore, dispose } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
6
4
|
import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
7
5
|
import { NoOpNotification, Severity, INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
|
8
6
|
import { isCancellationError } from 'monaco-editor/esm/vs/base/common/errors.js';
|
|
9
7
|
import { toErrorMessage } from 'monaco-editor/esm/vs/base/common/errorMessage.js';
|
|
10
8
|
import { parseLinkedText } from 'monaco-editor/esm/vs/base/common/linkedText.js';
|
|
11
|
-
import { equals, isNonEmptyArray } from 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
12
|
-
import {
|
|
13
|
-
import { ITelemetryService } from 'monaco-editor/esm/vs/platform/telemetry/common/telemetry.js';
|
|
9
|
+
import { equals, firstOrDefault, isNonEmptyArray } from 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
10
|
+
import { ActionRunner, Action } from 'monaco-editor/esm/vs/base/common/actions.js';
|
|
14
11
|
import { hash } from 'monaco-editor/esm/vs/base/common/hash.js';
|
|
15
|
-
import {
|
|
12
|
+
import { ITelemetryService } from 'monaco-editor/esm/vs/platform/telemetry/common/telemetry.js';
|
|
13
|
+
import { CommandsRegistry, ICommandService } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
|
|
16
14
|
import { KeybindingsRegistry } from 'monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
15
|
+
import { IListService, WorkbenchList } from 'monaco-editor/esm/vs/platform/list/browser/listService.js';
|
|
16
|
+
import { ContextKeyExpr, IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
17
|
+
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
19
18
|
import { MenuRegistry, MenuId } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
|
|
20
19
|
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
21
20
|
import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
|
|
22
21
|
import { IClipboardService } from 'monaco-editor/esm/vs/platform/clipboard/common/clipboardService.js';
|
|
23
22
|
import { registerIcon } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
|
|
24
23
|
import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
25
|
-
import {
|
|
26
|
-
import { Dimension, addDisposableListener, EventType, EventHelper, clearNode, scheduleAtNextAnimationFrame, isAncestor, $, trackFocus,
|
|
24
|
+
import { ButtonBar } from './button.js';
|
|
25
|
+
import { Dimension, getClientArea, addDisposableListener, EventType, EventHelper, clearNode, scheduleAtNextAnimationFrame, isAncestor, $, trackFocus, isEventLike } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
27
26
|
import { DomEmitter } from 'monaco-editor/esm/vs/base/browser/event.js';
|
|
28
27
|
import { Gesture, EventType as EventType$1 } from 'monaco-editor/esm/vs/base/browser/touch.js';
|
|
29
28
|
import { ActionBar } from 'monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.js';
|
|
30
29
|
import { ProgressBar } from 'monaco-editor/esm/vs/base/browser/ui/progressbar/progressbar.js';
|
|
31
30
|
import { defaultProgressBarStyles, defaultButtonStyles } from 'monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js';
|
|
32
31
|
import { IContextMenuService } from 'monaco-editor/esm/vs/platform/contextview/browser/contextView.js';
|
|
33
|
-
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
34
32
|
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
35
33
|
import { IOpenerService } from 'monaco-editor/esm/vs/platform/opener/common/opener.js';
|
|
36
34
|
import { IKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/common/keybinding.js';
|
|
37
35
|
import { StandardKeyboardEvent } from 'monaco-editor/esm/vs/base/browser/keyboardEvent.js';
|
|
38
36
|
import { DropdownMenuActionViewItem } from 'monaco-editor/esm/vs/base/browser/ui/dropdown/dropdownActionViewItem.js';
|
|
39
37
|
import { assertIsDefined } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
40
|
-
import {
|
|
38
|
+
import { IWorkbenchLayoutService } from './layoutService.js';
|
|
41
39
|
import { widgetShadow } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
42
|
-
import { I as IntervalCounter } from './async.js';
|
|
43
40
|
import { Themable, IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
|
|
44
41
|
import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
|
|
45
42
|
import { alert } from 'monaco-editor/esm/vs/base/browser/ui/aria/aria.js';
|
|
46
|
-
import {
|
|
47
|
-
import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
|
|
43
|
+
import { getServiceOverride as getServiceOverride$1 } from './layout.js';
|
|
48
44
|
import { ILayoutService } from 'monaco-editor/esm/vs/platform/layout/browser/layoutService.js';
|
|
45
|
+
import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
|
|
49
46
|
var css$3 = ".monaco-workbench>.notifications-toasts{bottom:26px;display:none;overflow:hidden;position:absolute;right:3px;z-index:1000}.monaco-workbench.nostatusbar>.notifications-toasts{bottom:3px}.monaco-workbench>.notifications-toasts.visible{display:flex;flex-direction:column}.monaco-workbench>.notifications-toasts .notification-toast-container{overflow:hidden}.monaco-workbench>.notifications-toasts .notification-toast-container>.notification-toast{border-radius:4px;margin:8px;opacity:0;transform:translate3d(0,100%,0);transition:transform .3s ease-out,opacity .3s ease-out}.monaco-workbench.reduce-motion>.notifications-toasts .notification-toast-container>.notification-toast{transition:transform 0ms ease-out,opacity 0ms ease-out}.monaco-workbench>.notifications-toasts .notification-toast-container>.notification-toast.notification-fade-in{opacity:1;transform:none}.monaco-workbench>.notifications-toasts .notification-toast-container>.notification-toast.notification-fade-in-done{opacity:1;transform:none;transition:none}.monaco-workbench>.notifications-toasts .codicon.codicon-error{color:var(--vscode-notificationsErrorIcon-foreground)!important}.monaco-workbench>.notifications-toasts .codicon.codicon-warning{color:var(--vscode-notificationsWarningIcon-foreground)!important}.monaco-workbench>.notifications-toasts .codicon.codicon-info{color:var(--vscode-notificationsInfoIcon-foreground)!important}";
|
|
50
47
|
n(css$3,{});
|
|
51
48
|
var css$2 = ".monaco-workbench .notifications-list-container{background:var(--vscode-notifications-background);border-radius:inherit;color:var(--vscode-notifications-foreground);outline-color:var(--vscode-contrastBorder)}.monaco-workbench .notifications-list-container .notification-list-item{border-radius:4px;box-sizing:border-box;display:flex;flex-direction:column;flex-direction:column-reverse;height:100%;padding:10px 5px}.monaco-workbench .notifications-list-container .notification-offset-helper{word-wrap:break-word;line-height:22px;opacity:0;position:absolute}.monaco-workbench .notifications-list-container .monaco-scrollable-element{border-radius:4px}.monaco-workbench .notifications-list-container .notification-list-item>.notification-list-item-main-row{display:flex;flex-grow:1}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-icon{align-items:center;background-position:50%;background-repeat:no-repeat;display:flex;flex:0 0 16px;font-size:18px;height:22px;margin-left:4px;margin-right:4px}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-message{flex:1;line-height:22px;overflow:hidden;text-overflow:ellipsis;user-select:text;-webkit-user-select:text}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-message a{color:var(--vscode-notificationLink-foreground)}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-message a:focus{outline-color:var(--vscode-focusBorder);outline-style:solid;outline-width:1px}.monaco-workbench .notifications-list-container .notification-list-item.expanded .notification-list-item-message{word-wrap:break-word;white-space:normal}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-toolbar-container{display:none;height:22px}.monaco-workbench .notifications-list-container .monaco-list-row.focused .notification-list-item .notification-list-item-toolbar-container,.monaco-workbench .notifications-list-container .notification-list-item.expanded .notification-list-item-toolbar-container,.monaco-workbench .notifications-list-container .notification-list-item:hover .notification-list-item-toolbar-container{display:block}.monaco-workbench .notifications-list-container .notification-list-item>.notification-list-item-details-row{align-items:center;display:none;overflow:hidden;padding-left:5px}.monaco-workbench .notifications-list-container .notification-list-item.expanded>.notification-list-item-details-row{display:flex}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-source{flex:1;font-size:12px;overflow:hidden;text-overflow:ellipsis}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-buttons-container{display:flex;overflow:hidden}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-buttons-container>.monaco-button,.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-buttons-container>.monaco-button-dropdown{margin:4px 5px}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-buttons-container .monaco-button{outline-offset:2px!important}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-buttons-container .monaco-text-button{display:inline-block;font-size:12px;overflow:hidden;padding:4px 10px;text-overflow:ellipsis;width:fit-content}.monaco-workbench .notifications-list-container .notification-list-item .notification-list-item-buttons-container .monaco-dropdown-button{padding:5px}.monaco-workbench .notifications-list-container .progress-bit{bottom:0;height:2px}";
|
|
@@ -245,12 +242,16 @@ class NotificationViewItem extends Disposable {
|
|
|
245
242
|
else if (isErrorWithActions(notification.message)) {
|
|
246
243
|
actions = { primary: notification.message.actions };
|
|
247
244
|
}
|
|
245
|
+
let priority = notification.priority ?? NotificationPriority.DEFAULT;
|
|
246
|
+
if (priority === NotificationPriority.DEFAULT && (filter === NotificationsFilter.SILENT || (filter === NotificationsFilter.ERROR && notification.severity !== Severity.Error))) {
|
|
247
|
+
priority = NotificationPriority.SILENT;
|
|
248
|
+
}
|
|
248
249
|
return (
|
|
249
250
|
(new NotificationViewItem(
|
|
250
251
|
notification.id,
|
|
251
252
|
severity,
|
|
252
253
|
notification.sticky,
|
|
253
|
-
|
|
254
|
+
priority,
|
|
254
255
|
message,
|
|
255
256
|
notification.source,
|
|
256
257
|
notification.progress,
|
|
@@ -277,12 +278,12 @@ class NotificationViewItem extends Disposable {
|
|
|
277
278
|
const linkedText = parseLinkedText(message);
|
|
278
279
|
return { raw, linkedText, original: input };
|
|
279
280
|
}
|
|
280
|
-
constructor(id, _severity, _sticky,
|
|
281
|
+
constructor(id, _severity, _sticky, _priority, _message, _source, progress, actions) {
|
|
281
282
|
super();
|
|
282
283
|
this.id = id;
|
|
283
284
|
this._severity = _severity;
|
|
284
285
|
this._sticky = _sticky;
|
|
285
|
-
this.
|
|
286
|
+
this._priority = _priority;
|
|
286
287
|
this._message = _message;
|
|
287
288
|
this._source = _source;
|
|
288
289
|
this._visible = false;
|
|
@@ -339,8 +340,8 @@ class NotificationViewItem extends Disposable {
|
|
|
339
340
|
}
|
|
340
341
|
return false;
|
|
341
342
|
}
|
|
342
|
-
get
|
|
343
|
-
return
|
|
343
|
+
get priority() {
|
|
344
|
+
return this._priority;
|
|
344
345
|
}
|
|
345
346
|
get hasActions() {
|
|
346
347
|
if (!this._actions) {
|
|
@@ -508,11 +509,11 @@ let NotificationsTelemetry = class NotificationsTelemetry extends Disposable {
|
|
|
508
509
|
registerListeners() {
|
|
509
510
|
this._register(this.notificationService.onDidAddNotification(notification => {
|
|
510
511
|
const source = notification.source && typeof notification.source !== 'string' ? notification.source.id : notification.source;
|
|
511
|
-
this.telemetryService.publicLog2('notification:show', notificationToMetrics(notification.message, source,
|
|
512
|
+
this.telemetryService.publicLog2('notification:show', notificationToMetrics(notification.message, source, notification.priority === NotificationPriority.SILENT));
|
|
512
513
|
}));
|
|
513
514
|
this._register(this.notificationService.onDidRemoveNotification(notification => {
|
|
514
515
|
const source = notification.source && typeof notification.source !== 'string' ? notification.source.id : notification.source;
|
|
515
|
-
this.telemetryService.publicLog2('notification:close', notificationToMetrics(notification.message, source,
|
|
516
|
+
this.telemetryService.publicLog2('notification:close', notificationToMetrics(notification.message, source, notification.priority === NotificationPriority.SILENT));
|
|
516
517
|
}));
|
|
517
518
|
}
|
|
518
519
|
};
|
|
@@ -531,6 +532,7 @@ const FOCUS_FIRST_NOTIFICATION_TOAST = 'notifications.focusFirstToast';
|
|
|
531
532
|
const FOCUS_LAST_NOTIFICATION_TOAST = 'notifications.focusLastToast';
|
|
532
533
|
const COLLAPSE_NOTIFICATION = 'notification.collapse';
|
|
533
534
|
const EXPAND_NOTIFICATION = 'notification.expand';
|
|
535
|
+
const ACCEPT_PRIMARY_ACTION_NOTIFICATION = 'notification.acceptPrimaryAction';
|
|
534
536
|
const TOGGLE_NOTIFICATION = 'notification.toggle';
|
|
535
537
|
const CLEAR_NOTIFICATION = 'notification.clear';
|
|
536
538
|
const CLEAR_ALL_NOTIFICATIONS = 'notifications.clearAll';
|
|
@@ -562,7 +564,7 @@ function registerNotificationCommands(center, toasts, model) {
|
|
|
562
564
|
const telemetryService = accessor.get(ITelemetryService);
|
|
563
565
|
for (const notification of model.notifications) {
|
|
564
566
|
if (notification.visible) {
|
|
565
|
-
telemetryService.publicLog2('notification:hide', notificationToMetrics(notification.message.original, notification.sourceId, notification.
|
|
567
|
+
telemetryService.publicLog2('notification:hide', notificationToMetrics(notification.message.original, notification.sourceId, notification.priority === NotificationPriority.SILENT));
|
|
566
568
|
}
|
|
567
569
|
}
|
|
568
570
|
center.hide();
|
|
@@ -602,6 +604,25 @@ function registerNotificationCommands(center, toasts, model) {
|
|
|
602
604
|
notification?.expand();
|
|
603
605
|
}
|
|
604
606
|
});
|
|
607
|
+
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
608
|
+
id: ACCEPT_PRIMARY_ACTION_NOTIFICATION,
|
|
609
|
+
weight: 200 ,
|
|
610
|
+
when: ( (ContextKeyExpr.and(NotificationsToastsVisibleContext))),
|
|
611
|
+
primary: 2048 | 1024 | 31 ,
|
|
612
|
+
handler: (accessor) => {
|
|
613
|
+
const actionRunner = accessor.get(IInstantiationService).createInstance(NotificationActionRunner);
|
|
614
|
+
const notification = firstOrDefault(model.notifications);
|
|
615
|
+
if (!notification) {
|
|
616
|
+
return;
|
|
617
|
+
}
|
|
618
|
+
const primaryAction = notification.actions?.primary ? firstOrDefault(notification.actions.primary) : undefined;
|
|
619
|
+
if (!primaryAction) {
|
|
620
|
+
return;
|
|
621
|
+
}
|
|
622
|
+
actionRunner.run(primaryAction, notification);
|
|
623
|
+
notification.close();
|
|
624
|
+
}
|
|
625
|
+
});
|
|
605
626
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
606
627
|
id: COLLAPSE_NOTIFICATION,
|
|
607
628
|
weight: 200 ,
|
|
@@ -627,7 +648,7 @@ function registerNotificationCommands(center, toasts, model) {
|
|
|
627
648
|
const telemetryService = accessor.get(ITelemetryService);
|
|
628
649
|
for (const notification of model.notifications) {
|
|
629
650
|
if (notification.visible) {
|
|
630
|
-
telemetryService.publicLog2('notification:hide', notificationToMetrics(notification.message.original, notification.sourceId, notification.
|
|
651
|
+
telemetryService.publicLog2('notification:hide', notificationToMetrics(notification.message.original, notification.sourceId, notification.priority === NotificationPriority.SILENT));
|
|
631
652
|
}
|
|
632
653
|
}
|
|
633
654
|
toasts.hide();
|
|
@@ -692,9 +713,38 @@ function registerNotificationCommands(center, toasts, model) {
|
|
|
692
713
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: SHOW_NOTIFICATIONS_CENTER, title: { value: ( (localize('showNotifications', "Show Notifications"))), original: 'Show Notifications' }, category } });
|
|
693
714
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: HIDE_NOTIFICATIONS_CENTER, title: { value: ( (localize('hideNotifications', "Hide Notifications"))), original: 'Hide Notifications' }, category }, when: NotificationsCenterVisibleContext });
|
|
694
715
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLEAR_ALL_NOTIFICATIONS, title: { value: ( (localize('clearAllNotifications', "Clear All Notifications"))), original: 'Clear All Notifications' }, category } });
|
|
716
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: ACCEPT_PRIMARY_ACTION_NOTIFICATION, title: { value: ( (localize('acceptNotificationPrimaryAction', "Accept Notification Primary Action"))), original: 'Accept Notification Primary Action' }, category } });
|
|
695
717
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: TOGGLE_DO_NOT_DISTURB_MODE, title: { value: ( (localize('toggleDoNotDisturbMode', "Toggle Do Not Disturb Mode"))), original: 'Toggle Do Not Disturb Mode' }, category } });
|
|
696
718
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: FOCUS_NOTIFICATION_TOAST, title: { value: ( (localize('focusNotificationToasts', "Focus Notification Toast"))), original: 'Focus Notification Toast' }, category }, when: NotificationsToastsVisibleContext });
|
|
697
719
|
}
|
|
720
|
+
let NotificationActionRunner = class NotificationActionRunner extends ActionRunner {
|
|
721
|
+
constructor(telemetryService, notificationService) {
|
|
722
|
+
super();
|
|
723
|
+
this.telemetryService = telemetryService;
|
|
724
|
+
this.notificationService = notificationService;
|
|
725
|
+
}
|
|
726
|
+
async runAction(action, context) {
|
|
727
|
+
this.telemetryService.publicLog2('workbenchActionExecuted', { id: action.id, from: 'message' });
|
|
728
|
+
if (isNotificationViewItem(context)) {
|
|
729
|
+
this.telemetryService.publicLog2('notification:actionExecuted', {
|
|
730
|
+
id: ( (hash(( (context.message.original.toString()))).toString())),
|
|
731
|
+
actionLabel: action.label,
|
|
732
|
+
source: context.sourceId || 'core',
|
|
733
|
+
silent: context.priority === NotificationPriority.SILENT
|
|
734
|
+
});
|
|
735
|
+
}
|
|
736
|
+
try {
|
|
737
|
+
await super.runAction(action, context);
|
|
738
|
+
}
|
|
739
|
+
catch (error) {
|
|
740
|
+
this.notificationService.error(error);
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
};
|
|
744
|
+
NotificationActionRunner = ( (__decorate([
|
|
745
|
+
( (__param(0, ITelemetryService))),
|
|
746
|
+
( (__param(1, INotificationService)))
|
|
747
|
+
], NotificationActionRunner)));
|
|
698
748
|
const clearIcon = ( (registerIcon(
|
|
699
749
|
'notifications-clear',
|
|
700
750
|
Codicon.close,
|
|
@@ -836,34 +886,6 @@ CopyNotificationMessageAction.LABEL = ( (localize('copyNotification', "Copy Text
|
|
|
836
886
|
CopyNotificationMessageAction = ( (__decorate([
|
|
837
887
|
( (__param(2, IClipboardService)))
|
|
838
888
|
], CopyNotificationMessageAction)));
|
|
839
|
-
let NotificationActionRunner = class NotificationActionRunner extends ActionRunner {
|
|
840
|
-
constructor(telemetryService, notificationService) {
|
|
841
|
-
super();
|
|
842
|
-
this.telemetryService = telemetryService;
|
|
843
|
-
this.notificationService = notificationService;
|
|
844
|
-
}
|
|
845
|
-
async runAction(action, context) {
|
|
846
|
-
this.telemetryService.publicLog2('workbenchActionExecuted', { id: action.id, from: 'message' });
|
|
847
|
-
if (isNotificationViewItem(context)) {
|
|
848
|
-
this.telemetryService.publicLog2('notification:actionExecuted', {
|
|
849
|
-
id: ( (hash(( (context.message.original.toString()))).toString())),
|
|
850
|
-
actionLabel: action.label,
|
|
851
|
-
source: context.sourceId || 'core',
|
|
852
|
-
silent: context.silent
|
|
853
|
-
});
|
|
854
|
-
}
|
|
855
|
-
try {
|
|
856
|
-
await super.runAction(action, context);
|
|
857
|
-
}
|
|
858
|
-
catch (error) {
|
|
859
|
-
this.notificationService.error(error);
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
};
|
|
863
|
-
NotificationActionRunner = ( (__decorate([
|
|
864
|
-
( (__param(0, ITelemetryService))),
|
|
865
|
-
( (__param(1, INotificationService)))
|
|
866
|
-
], NotificationActionRunner)));
|
|
867
889
|
class NotificationsListDelegate {
|
|
868
890
|
constructor(container) {
|
|
869
891
|
this.offsetHelper = this.createOffsetHelper(container);
|
|
@@ -1455,7 +1477,7 @@ let NotificationsToasts = class NotificationsToasts extends Themable {
|
|
|
1455
1477
|
if (this.isNotificationsCenterVisible) {
|
|
1456
1478
|
return;
|
|
1457
1479
|
}
|
|
1458
|
-
if (item.
|
|
1480
|
+
if (item.priority === NotificationPriority.SILENT) {
|
|
1459
1481
|
return;
|
|
1460
1482
|
}
|
|
1461
1483
|
if (this.addedToastsIntervalCounter.increment() > NotificationsToasts.SPAM_PROTECTION.limit) {
|
|
@@ -1830,7 +1852,7 @@ let NotificationService = class NotificationService extends Disposable {
|
|
|
1830
1852
|
message: e.item.message.original,
|
|
1831
1853
|
severity: e.item.severity,
|
|
1832
1854
|
source: typeof e.item.sourceId === 'string' && typeof e.item.source === 'string' ? { id: e.item.sourceId, label: e.item.source } : e.item.source,
|
|
1833
|
-
|
|
1855
|
+
priority: e.item.priority
|
|
1834
1856
|
};
|
|
1835
1857
|
if (e.kind === 0 ) {
|
|
1836
1858
|
this._onDidAddNotification.fire(notification);
|
|
@@ -1976,7 +1998,7 @@ let NotificationService = class NotificationService extends Disposable {
|
|
|
1976
1998
|
toDispose.add(action);
|
|
1977
1999
|
});
|
|
1978
2000
|
const actions = { primary: primaryActions, secondary: secondaryActions };
|
|
1979
|
-
const handle = this.notify({ severity, message, actions, sticky: options?.sticky,
|
|
2001
|
+
const handle = this.notify({ severity, message, actions, sticky: options?.sticky, priority: options?.priority });
|
|
1980
2002
|
Event.once(handle.onDidClose)(() => {
|
|
1981
2003
|
toDispose.dispose();
|
|
1982
2004
|
if (options && typeof options.onCancel === 'function' && !choiceClicked) {
|
|
@@ -2223,7 +2245,7 @@ class NotificationsAlerts extends Disposable {
|
|
|
2223
2245
|
}
|
|
2224
2246
|
}
|
|
2225
2247
|
triggerAriaAlert(notification) {
|
|
2226
|
-
if (notification.
|
|
2248
|
+
if (notification.priority === NotificationPriority.SILENT) {
|
|
2227
2249
|
return;
|
|
2228
2250
|
}
|
|
2229
2251
|
const listener = notification.onDidChangeContent(e => {
|
|
@@ -2260,9 +2282,10 @@ class NotificationsAlerts extends Disposable {
|
|
|
2260
2282
|
alert(alertText);
|
|
2261
2283
|
}
|
|
2262
2284
|
}
|
|
2263
|
-
|
|
2264
|
-
const container =
|
|
2265
|
-
const model =
|
|
2285
|
+
onRenderWorkbench(async (accessor) => {
|
|
2286
|
+
const container = accessor.get(ILayoutService).container;
|
|
2287
|
+
const model = accessor.get(INotificationService).model;
|
|
2288
|
+
const instantiationService = accessor.get(IInstantiationService);
|
|
2266
2289
|
setTimeout(() => {
|
|
2267
2290
|
const notificationsCenter = instantiationService.createInstance(NotificationsCenter, container, model);
|
|
2268
2291
|
const notificationsToasts = instantiationService.createInstance(NotificationsToasts, container, model);
|
|
@@ -2271,11 +2294,10 @@ function initialize(instantiationService) {
|
|
|
2271
2294
|
registerNotificationCommands(notificationsCenter, notificationsToasts, model);
|
|
2272
2295
|
notificationsToasts.layout(getClientArea(container));
|
|
2273
2296
|
});
|
|
2274
|
-
}
|
|
2297
|
+
});
|
|
2275
2298
|
function getServiceOverride(container) {
|
|
2276
|
-
onServicesInitialized(initialize);
|
|
2277
2299
|
return {
|
|
2278
|
-
[( INotificationService.toString())]: new SyncDescriptor(NotificationService),
|
|
2300
|
+
[( INotificationService.toString())]: new SyncDescriptor(NotificationService, undefined, true),
|
|
2279
2301
|
...getServiceOverride$1(container)
|
|
2280
2302
|
};
|
|
2281
2303
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { registerExtension } from './api2.js';
|
|
2
|
+
import { onExtHostInitialized } from './polyfill.js';
|
|
3
|
+
var manifest = {name:"objective-c",displayName:"%displayName%",description:"%description%",version:"1.0.0",publisher:"vscode",license:"MIT",engines:{vscode:"*"},scripts:{"update-grammar":"node ./build/update-grammars.js"},contributes:{languages:[{id:"objective-c",extensions:[".m"],aliases:["Objective-C"],configuration:"./language-configuration.json"},{id:"objective-cpp",extensions:[".mm"],aliases:["Objective-C++"],configuration:"./language-configuration.json"}],grammars:[{language:"objective-c",scopeName:"source.objc",path:"./syntaxes/objective-c.tmLanguage.json"},{language:"objective-cpp",scopeName:"source.objcpp",path:"./syntaxes/objective-c++.tmLanguage.json"}]},repository:{type:"git",url:"https://github.com/microsoft/vscode.git"}};
|
|
4
|
+
onExtHostInitialized(() => {
|
|
5
|
+
const { registerFile } = registerExtension(manifest);
|
|
6
|
+
registerFile('./language-configuration.json', async () => await import('./language-configuration23.js').then(module => module.default ?? module)),
|
|
7
|
+
registerFile('./language-configuration.json', async () => await import('./language-configuration23.js').then(module => module.default ?? module)),
|
|
8
|
+
registerFile('./syntaxes/objective-c.tmLanguage.json', async () => await import('./objective-c.tmLanguage.js').then(module => module.default ?? module)),
|
|
9
|
+
registerFile('./syntaxes/objective-c++.tmLanguage.json', async () => await import('./objective-c__.tmLanguage.js').then(module => module.default ?? module));
|
|
10
|
+
});
|