Browse Source

Sample in the playground updated.

SpaceComet 3 years ago
parent
commit
e42557eac7

+ 1 - 1
website/playground/new-samples/customizing-the-appearence/exposed-colors/sample.js

@@ -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);