예제 #1
0
        public PowerShellTokenizationService(ITextBuffer textBuffer)
        {
            _textBuffer                    = textBuffer;
            _classifierService             = new ClassifierService();
            _errorTagService               = new ErrorTagSpanService();
            _regionAndBraceMatchingService = new RegionAndBraceMatchingService();

            _isBufferTokenizing = true;
            _lastSnapshot       = _textBuffer.CurrentSnapshot;
            UpdateTokenization();
        }
예제 #2
0
        public PowerShellTokenizationService(ITextBuffer buffer)
        {
            Buffer                         = buffer;
            _classifierService             = new ClassifierService();
            _errorTagService               = new ErrorTagSpanService();
            _regionAndBraceMatchingService = new RegionAndBraceMatchingService();

            SetEmptyTokenizationProperties();
            SpanToTokenize = Buffer.CurrentSnapshot.CreateTrackingSpan(0, Buffer.CurrentSnapshot.Length, SpanTrackingMode.EdgeInclusive);
            StartTokenization();
        }
 public void Init()
 {
     _service = new RegionAndBraceMatchingService();
 }