public void BothViewsUseVim() { _vimApplicationSettings.SetupGet(x => x.UseEditorDefaults).Returns(false); VimRcState = VimRcState.NewLoadSucceeded(new VimRcPath(VimRcKind.VimRc, "test"), new string[] { }); SetupVsTextView(); RaiseTextViewCreated(_textView); RaiseVimBufferCreated(_vimBuffer); _synchronizer.Setup(x => x.StartSynchronizing(_vimBuffer, SettingSyncSource.Vim)).Verifiable(); RaiseVsTextViewCreated(_vsTextView.Object); _synchronizer.Verify(); InvalidateSynchronizer(); DoEvents(); }
public void BothViewsWithVimRcAndEditorDefaults() { VimRcState = VimRcState.NewLoadSucceeded(new VimRcPath(VimRcKind.VimRc, "test")); _vimApplicationSettings.SetupGet(x => x.UseEditorDefaults).Returns(true); SetupVsTextView(); RaiseTextViewCreated(_textView); RaiseVimBufferCreated(_vimBuffer); _synchronizer.Setup(x => x.StartSynchronizing(_vimBuffer, SettingSyncSource.Editor)).Verifiable(); RaiseVsTextViewCreated(_vsTextView.Object); _synchronizer.Verify(); InvalidateSynchronizer(); _protectedOperations.RunAll(); }
public void BothViewsWithVimRc() { VimRcState = VimRcState.NewLoadSucceeded("test"); SetupVsTextView(); RaiseTextViewCreated(_textView); RaiseVimBufferCreated(_vimBuffer); _synchronizer.Setup(x => x.StartSynchronizing(_vimBuffer)).Verifiable(); _synchronizer.Setup(x => x.CopyVimToEditorSettings(_vimBuffer)).Verifiable(); RaiseVsTextViewCreated(_vsTextView.Object); _synchronizer.Verify(); InvalidateSynchronizer(); _protectedOperations.RunAll(); }
void IVimHost.VimRcLoaded(VimRcState vimRcState, IVimLocalSettings localSettings, IVimWindowSettings windowSettings) { VimRcState = vimRcState; }
void IVimHost.VimRcLoaded(VimRcState vimRcState, IVimLocalSettings localSettings, IVimWindowSettings windowSettings) { VimRcLoaded(vimRcState, localSettings, windowSettings); }
public virtual void VimRcLoaded(VimRcState vimRcState, IVimLocalSettings localSettings, IVimWindowSettings windowSettings) { }
public void VimRcLoaded(VimRcState vimRcState, IVimLocalSettings localSettings, IVimWindowSettings windowSettings) { //throw new NotImplementedException(); }
public override void VimRcLoaded(VimRcState vimRcState, IVimLocalSettings localSettings, IVimWindowSettings windowSettings) { if (vimRcState.IsLoadFailed) { // If we failed to load a vimrc file then we should add a couple of sanity // settings. Otherwise the Visual Studio experience wont't be what users expect localSettings.AutoIndent = true; } }