void IVsTextLinesEvents.OnChangeLineText(TextLineChange[] textLineChanges, int last) { if (!loadDone) { return; } int startIndex = textLineChanges[0].iStartIndex; int endIndex = textLineChanges[0].iNewEndIndex; if (endIndex - startIndex == SnippetDelimiter.Length) { lastCharacterEntered = CodeWindow.GetCharacterAtPosition(new TextPoint(textLineChanges[0].iStartLine, startIndex)); } else { lastCharacterEntered = null; } RefreshReplacementMarkers(); }
public void OnChangeLineText(TextLineChange[] lineChange, int last) { TextSpan span = new TextSpan(); span.iStartIndex = lineChange[0].iStartIndex; span.iStartLine = lineChange[0].iStartLine; span.iEndLine = lineChange[0].iOldEndLine; span.iEndIndex = lineChange[0].iOldEndIndex; AddDirty(span); span.iEndLine = lineChange[0].iNewEndLine; span.iEndIndex = lineChange[0].iNewEndIndex; AddDirty(span); }
// IVsTextLinesEvents public virtual void OnChangeLineText( TextLineChange[] lineChange, int last) { SetDirty(); }
public void OnChangeLineText(TextLineChange[] pTextLineChange, int fLast) { _shouldParse = true; }
void IVsTextLinesEvents.OnChangeLineText(TextLineChange[] pTextLineChange, int fLast) { _isDirty = true; }
public void OnLineChanged(object sender, TextLineChange[] changes, int last) { if (committing) return; CodeDomFileCodeModel model = parent.FileCodeModel as CodeDomFileCodeModel; Debug.Assert(model != null); for (int i = 0; i < changes.Length; i++) { UpdatePositions(changes[i].iStartLine, changes[i].iNewEndLine - changes[i].iOldEndLine, changes[i].iNewEndIndex - changes[i].iOldEndIndex); } isDirty = true; }
public override void OnChangeLineText(TextLineChange[] lineChange, int last) { base.OnChangeLineText(lineChange, last); fileNode.SubmitForCompile(); }
/// <summary> /// Called when text is added to the page via either the user editing the page or /// via using EditPoint's from FileCodeModel. We go through and update any items /// after the current item so their current positions are correct. We also mark the /// model as being dirty so that before we hand out any CodeElement's we can re-parse, but /// we avoid the expensive reparse if the user is simply doing multiple edits. /// /// Finally, when things go idle, we will also re-parse the document so we need not delay /// it until the user actually wants to do something. /// </summary> public void OnLineChanged(object sender, TextLineChange[] changes, int last) { isDirty = true; modelInitialized = false; }
public override void OnChangeLineText(TextLineChange[] lineChange, int last) { base.OnChangeLineText(lineChange, last); OnChange(); }
/// <summary> /// Notifies the client when the content of a text line in the buffer has changed. /// </summary> /// <param name="pTextLineChange">[in] Pointer to the <see cref="T:Microsoft.VisualStudio.TextManager.Interop.TextLineChange"/> structure that defines the shape of the old and new text.</param><param name="fLast">[in] Obsolete; Do not use.</param> public void OnChangeLineText(TextLineChange[] pTextLineChange, int fLast) { MessageBox.Show("text line changed in file TextLinesEventSink"); }
public void OnChangeLineText(TextLineChange[] pTextLineChange, int fLast) { _isDirty = 1; }
void IVsTextLinesEvents.OnChangeLineText(TextLineChange[] pTextLineChange, int fLast) { if (updateTimer != null) updateTimer.Dispose(); updateTimer = new Timer(FileModified, activeCodeFile, DELAY, Timeout.Infinite); }
public override void OnChangeLineText(TextLineChange[] lineChange, int last) { base.OnChangeLineText(lineChange, last); FullScanTime = System.Environment.TickCount; TimeStamp++; //if (Scanner != null && Scanner.GetLexer().ClearHoverHighlights()) { // int lineCount; // GetTextLines().GetLineCount(out lineCount); // Recolorize(1, lineCount); //} }
void IVsTextLinesEvents.OnChangeLineText(TextLineChange[] pTextLineChange, int fLast) { TextLineChangeEvent eh = OnFileChangedImmediate; if (null != eh) { eh(this, pTextLineChange, fLast); } _isDirty = true; }