public PowerShellTokenizationService(ITextBuffer textBuffer) { _textBuffer = textBuffer; _classifierService = new ClassifierService(); _errorTagService = new ErrorTagSpanService(); _regionAndBraceMatchingService = new RegionAndBraceMatchingService(); _isBufferTokenizing = true; _lastSnapshot = _textBuffer.CurrentSnapshot; UpdateTokenization(); }
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(); }