From 14965508c7070abc2ac19e7244f7b026d1a792b0 Mon Sep 17 00:00:00 2001 From: Alexandru Dima Date: Thu, 26 Aug 2021 16:55:47 +0200 Subject: [PATCH] update generated files --- .../customizing-the-appearence-exposed-colors.html | 2 +- ...ending-language-services-configure-javascript-defaults.html | 2 +- ...with-the-editor-adding-an-action-to-an-editor-instance.html | 2 +- .../interacting-with-the-editor-listening-to-key-events.html | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/test/playground.generated/customizing-the-appearence-exposed-colors.html b/test/playground.generated/customizing-the-appearence-exposed-colors.html index 5d58d20f..873455ba 100644 --- a/test/playground.generated/customizing-the-appearence-exposed-colors.html +++ b/test/playground.generated/customizing-the-appearence-exposed-colors.html @@ -177,7 +177,7 @@ monaco.editor.create(document.getElementById("container"), { 'peekViewEditor.matchHighlightBackground' // Match highlight color in the peek view editor. /* -var colors = require('vs/platform/registry/common/platform').Registry.data['base.contributions.colors'].colorSchema.properties +var colors = require('vs/platform/registry/common/platform').Registry.data.get('base.contributions.colors').colorSchema.properties Object.keys(colors).forEach(function(key) { var val = colors[key]; console.log( '//' + val.description + '\n' + key); diff --git a/test/playground.generated/extending-language-services-configure-javascript-defaults.html b/test/playground.generated/extending-language-services-configure-javascript-defaults.html index 271d7c07..c8fb76c7 100644 --- a/test/playground.generated/extending-language-services-configure-javascript-defaults.html +++ b/test/playground.generated/extending-language-services-configure-javascript-defaults.html @@ -35,7 +35,7 @@ THIS IS A GENERATED FILE VIA gulp generate-test-samples loadEditor(function() { /*----------------------------------------SAMPLE JS START*/ -// Add additonal d.ts files to the JavaScript language service and change. +// Add additional d.ts files to the JavaScript language service and change. // Also change the default compilation options. // The sample below shows how a class Facts is declared and introduced // to the system and how the compiler is told to use ES6 (target=2). diff --git a/test/playground.generated/interacting-with-the-editor-adding-an-action-to-an-editor-instance.html b/test/playground.generated/interacting-with-the-editor-adding-an-action-to-an-editor-instance.html index 1e9a5c28..ee799042 100644 --- a/test/playground.generated/interacting-with-the-editor-adding-an-action-to-an-editor-instance.html +++ b/test/playground.generated/interacting-with-the-editor-adding-an-action-to-an-editor-instance.html @@ -79,7 +79,7 @@ editor.addAction({ contextMenuOrder: 1.5, // Method that will be executed when the action is triggered. - // @param editor The editor instance is passed in as a convinience + // @param editor The editor instance is passed in as a convenience run: function(ed) { alert("i'm running => " + ed.getPosition()); return null; diff --git a/test/playground.generated/interacting-with-the-editor-listening-to-key-events.html b/test/playground.generated/interacting-with-the-editor-listening-to-key-events.html index b93aacfd..5783bc99 100644 --- a/test/playground.generated/interacting-with-the-editor-listening-to-key-events.html +++ b/test/playground.generated/interacting-with-the-editor-listening-to-key-events.html @@ -45,7 +45,8 @@ var myBinding = editor.addCommand(monaco.KeyCode.F9, function() { alert('F9 pressed!'); }); -// When cleaning up remember to call myBinding.dispose() +// You can't dispose `addCommand` +// If you need to dispose it you might use `addAction` or `registerCommand` /*----------------------------------------SAMPLE JS END*/