浏览代码

Fix line number API usage

Niklas Mollenhauer 7 年之前
父节点
当前提交
0b10139f53

+ 2 - 2
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);
 

+ 2 - 2
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);