Ejemplo n.º 1
0
            public LanguagesEditorTestExportProvider(CompositionContainer compositionContainer, IServiceManager services) : base(compositionContainer)
            {
                services.AddService(new TestEditorSupport());
                _coreShell = TestCoreShell.CreateFromCompositionContainer(compositionContainer, services);

                // TODO: HACK - remove after REditorSettings turn into service.
                REditorSettings.Initialize(new TestSettingsStorage());
            }
Ejemplo n.º 2
0
        public void Settings_TestDefaults()
        {
            var settings = new REditorSettings(new TestSettingsStorage());

            settings.CommitOnSpace.Should().BeFalse();
            settings.CompletionEnabled.Should().BeTrue();
            settings.FormatOnPaste.Should().BeTrue();
            settings.IndentSize.Should().Be(4);
            settings.IndentStyle.Should().Be(IndentStyle.Smart);
            settings.IndentType.Should().Be(IndentType.Spaces);
            settings.TabSize.Should().Be(4);
            settings.SyntaxCheckEnabled.Should().BeTrue();
            settings.SignatureHelpEnabled.Should().BeTrue();

            settings.FormatOptions.IndentSize.Should().Be(4);
            settings.FormatOptions.TabSize.Should().Be(4);
            settings.FormatOptions.IndentType.Should().Be(IndentType.Spaces);
            settings.FormatOptions.SpaceAfterComma.Should().BeTrue();
            settings.FormatOptions.SpaceAfterKeyword.Should().BeTrue();
            settings.FormatOptions.BracesOnNewLine.Should().BeFalse();
        }
Ejemplo n.º 3
0
 public override void ResetSettings()
 {
     REditorSettings.ResetSettings();
     base.ResetSettings();
 }