Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandy Armstrong <sandy@xamarin.com>2019-09-11 01:56:27 +0300
committerSandy Armstrong <sandy@xamarin.com>2019-09-18 19:23:09 +0300
commitfa0fac3a5eed1acc5fb1b903e273d3c85eb3526d (patch)
tree41f18222305a06827bcc4246e10e25b2ebd18cc2 /main/src/core/MonoDevelop.Ide
parente49d04ddf87aff0981165d7d3a6f14cb6442c697 (diff)
Fix: Remove support for BOTH editors
On Mac, remove legacy editor's display binding. Do all work through modern editor's display binding. Now "open with" submenu will only show "Source Code Editor", which will either be legacy or modern based on whatever's picked by the display binding. It is no longer possible to edit C# with legacy editor.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextEditorDisplayBinding.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextEditorDisplayBinding.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextEditorDisplayBinding.cs
index cf6ecf627e..9e46365e8a 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextEditorDisplayBinding.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextEditorDisplayBinding.cs
@@ -23,6 +23,9 @@
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
+
+#if !MAC
+
using System;
using MonoDevelop.Core;
using MonoDevelop.Ide.Gui;
@@ -56,7 +59,7 @@ namespace MonoDevelop.Ide.Editor
}
return list.Add (new DocumentControllerDescription {
- Name = GettextCatalog.GetString ("Legacy Source Code Editor"),
+ Name = GettextCatalog.GetString ("Source Code Editor"),
Role = DocumentControllerRole.Source,
CanUseAsDefault = true
});
@@ -69,4 +72,6 @@ namespace MonoDevelop.Ide.Editor
public override string Id => "MonoDevelop.Ide.Editor.TextEditorDisplayBinding";
}
-} \ No newline at end of file
+}
+
+#endif \ No newline at end of file