Skip to content

Commit

Permalink
Merge pull request #2616 from SpaceComet/main
Browse files Browse the repository at this point in the history
Small update on the website playground
  • Loading branch information
alexdima authored Aug 23, 2021
2 parents 54e01d8 + e42557e commit 848d520
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,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);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ 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`

0 comments on commit 848d520

Please sign in to comment.