From 0b10139f53e1e56996c0ade9100855eecbcfb796 Mon Sep 17 00:00:00 2001 From: Niklas Mollenhauer Date: Sat, 3 Mar 2018 18:54:04 +0100 Subject: [PATCH] Fix line number API usage --- .../creating-the-editor-editor-basic-options.html | 4 ++-- .../creating-the-editor/editor-basic-options/sample.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/playground.generated/creating-the-editor-editor-basic-options.html b/test/playground.generated/creating-the-editor-editor-basic-options.html index c82fe3ce..e6538f89 100644 --- a/test/playground.generated/creating-the-editor-editor-basic-options.html +++ b/test/playground.generated/creating-the-editor-editor-basic-options.html @@ -44,7 +44,7 @@ var editor = monaco.editor.create(document.getElementById("container"), { value: "// First line\nfunction hello() {\n\talert('Hello world!');\n}\n// Last line", language: "javascript", - lineNumbers: false, + lineNumbers: "off", roundedSelection: false, scrollBeyondLastLine: false, readOnly: false, @@ -52,7 +52,7 @@ var editor = monaco.editor.create(document.getElementById("container"), { }); setTimeout(function() { editor.updateOptions({ - lineNumbers: true + lineNumbers: "on" }); }, 2000); diff --git a/website/playground/new-samples/creating-the-editor/editor-basic-options/sample.js b/website/playground/new-samples/creating-the-editor/editor-basic-options/sample.js index 615f2208..bb61b4c1 100644 --- a/website/playground/new-samples/creating-the-editor/editor-basic-options/sample.js +++ b/website/playground/new-samples/creating-the-editor/editor-basic-options/sample.js @@ -6,7 +6,7 @@ var editor = monaco.editor.create(document.getElementById("container"), { value: "// First line\nfunction hello() {\n\talert('Hello world!');\n}\n// Last line", language: "javascript", - lineNumbers: false, + lineNumbers: "off", roundedSelection: false, scrollBeyondLastLine: false, readOnly: false, @@ -14,6 +14,6 @@ var editor = monaco.editor.create(document.getElementById("container"), { }); setTimeout(function() { editor.updateOptions({ - lineNumbers: true + lineNumbers: "on" }); }, 2000);