diff --git a/test/index.js b/test/index.js index 5deafb66..29e90b38 100644 --- a/test/index.js +++ b/test/index.js @@ -1,10 +1,21 @@ /// +/// define(['require', './samples'], function(require, SAMPLES) { var domutils = require('vs/base/browser/dom'); var model = monaco.editor.createModel('', 'plaintext'); +monaco.languages.typescript.typescriptDefaults.setInlayHintsOptions({ + includeInlayParameterNameHints: 'all', + includeInlayParameterNameHintsWhenArgumentMatchesName: true, + includeInlayFunctionParameterTypeHints: true, + includeInlayVariableTypeHints: true, + includeInlayPropertyDeclarationTypeHints: true, + includeInlayFunctionLikeReturnTypeHints: true, + includeInlayEnumMemberValueHints: true +}); + var editor = monaco.editor.create(document.getElementById('container'), { model: model, glyphMargin: true, @@ -295,6 +306,20 @@ function createOptions(editor) { editor.updateOptions({ folding: folding }); } )); + + + var bracketPairColorizationEnabled = false; + options.appendChild(createOptionToggle( + editor, + 'bracketPairColorizationEnabled', + function() { + return (bracketPairColorizationEnabled === false ? false : true); + }, + function(editor, newValue) { + bracketPairColorizationEnabled = newValue; + editor.updateOptions({ "bracketPairColorization.enabled": bracketPairColorizationEnabled, }); + } + )); }