editor: fix word wrap settings in simple editor

This commit is contained in:
Joao Moreno
2019-11-25 12:26:01 +01:00
parent 6941792f28
commit c2c643947b
@@ -211,6 +211,10 @@ class ToggleWordWrapController extends Disposable implements IEditorContribution
// in the settings editor...
return;
}
if (this.editor.isSimpleWidget) {
// in a simple widget...
return;
}
// Ensure correct word wrap settings
const newModel = this.editor.getModel();
if (!newModel) {