From f2bb941a51cef395e5ff5a52933448d7c47e85ff Mon Sep 17 00:00:00 2001 From: wpowell-oss Date: Tue, 12 Sep 2017 13:51:57 +1200 Subject: [PATCH] Rebase to github/master --- spec/text-editor-spec.coffee | 9 --------- src/config-schema.js | 6 ------ src/text-editor-registry.js | 1 - 3 files changed, 16 deletions(-) diff --git a/spec/text-editor-spec.coffee b/spec/text-editor-spec.coffee index efe023a21..ec4a96359 100644 --- a/spec/text-editor-spec.coffee +++ b/spec/text-editor-spec.coffee @@ -5918,12 +5918,3 @@ describe "TextEditor", -> describe "::getElement", -> it "returns an element", -> expect(editor.getElement() instanceof HTMLElement).toBe(true) - - describe 'setMaxScreenLineLength', -> - it "sets the maximum line length in the editor before soft wrapping is forced", -> - expect(editor.maxScreenLineLength()).toBe 500 - editor.update({ - maxScreenLineLength: 1500 - }) - expect(editor.maxScreenLineLength()).toBe 1500 - diff --git a/src/config-schema.js b/src/config-schema.js index 00fb8bbe3..fb0164766 100644 --- a/src/config-schema.js +++ b/src/config-schema.js @@ -409,12 +409,6 @@ const configSchema = { minimum: 1, description: 'Identifies the length of a line which is used when wrapping text with the `Soft Wrap At Preferred Line Length` setting enabled, in number of characters.' }, - maxScreenLineLength: { - type: 'integer', - default: 500, - minimum: 500, - description: 'Defines the maximum width of the editor window before soft wrapping is enforced, in number of characters.' - }, tabLength: { type: 'integer', default: 2, diff --git a/src/text-editor-registry.js b/src/text-editor-registry.js index 35be27fd1..72aa8b364 100644 --- a/src/text-editor-registry.js +++ b/src/text-editor-registry.js @@ -18,7 +18,6 @@ const EDITOR_PARAMS_BY_SETTING_KEY = [ ['editor.softWrapHangingIndent', 'softWrapHangingIndentLength'], ['editor.softWrapAtPreferredLineLength', 'softWrapAtPreferredLineLength'], ['editor.preferredLineLength', 'preferredLineLength'], - ['editor.maxScreenLineLength', 'maxScreenLineLength'], ['editor.autoIndent', 'autoIndent'], ['editor.autoIndentOnPaste', 'autoIndentOnPaste'], ['editor.scrollPastEnd', 'scrollPastEnd'],