Пример #1
0
        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();
        }
Пример #2
0
 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);
 }
Пример #3
0
 // IVsTextLinesEvents
 public virtual void OnChangeLineText( TextLineChange[] lineChange, int last) {
   SetDirty();
 }
Пример #4
0
 public void OnChangeLineText(TextLineChange[] pTextLineChange, int fLast)
 {
     _shouldParse = true;
 }
Пример #5
0
 void IVsTextLinesEvents.OnChangeLineText(TextLineChange[] pTextLineChange, int fLast)
 {
     _isDirty = true;
 }
Пример #6
0
        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;
        }
Пример #7
0
 public override void OnChangeLineText(TextLineChange[] lineChange, int last)
 {
     base.OnChangeLineText(lineChange, last);
     fileNode.SubmitForCompile();
 }
Пример #8
0
 /// <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;
 }
Пример #9
0
 public override void OnChangeLineText(TextLineChange[] lineChange, int last)
 {
     base.OnChangeLineText(lineChange, last);
     OnChange();
 }
Пример #10
0
 /// <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");
 }
Пример #11
0
 public void OnChangeLineText(TextLineChange[] pTextLineChange, int fLast)
 {
     _isDirty = 1;
 }
Пример #12
0
 void IVsTextLinesEvents.OnChangeLineText(TextLineChange[] pTextLineChange, int fLast)
 {
     if (updateTimer != null)
         updateTimer.Dispose();
     updateTimer = new Timer(FileModified, activeCodeFile, DELAY, Timeout.Infinite);
 }
Пример #13
0
        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);
            //}
        }
Пример #14
-33
        void IVsTextLinesEvents.OnChangeLineText(TextLineChange[] pTextLineChange, int fLast) {
            TextLineChangeEvent eh = OnFileChangedImmediate;
            if (null != eh) {
                eh(this, pTextLineChange, fLast);
            }

            _isDirty = true;
        }