Пример #1
0
 private void OnInitialStylesheetChange(object sender, StylesheetChangedEventArgs e)
 {
     Document.StylesheetChanged -= OnInitialStylesheetChange;
     OnDocumentChanged(new DocumentChangedEventArgs
     {
         Stylesheet  = Document.Stylesheet,
         ChangeStart = 0,
         ChangeEnd   = Buffer.CurrentSnapshot.Length
     });
 }
Пример #2
0
        private void OnStylesheetChanged(object sender, StylesheetChangedEventArgs e)
        {
            // unsubscribe from future notifications
            var document = sender as ISassDocument;
            document.StylesheetChanged -= OnStylesheetChanged;

            // update the cache
            IIntellisenseCache cache;
            if (Caches.TryGetValue(document, out cache))
                Task.Run(() => UpdateCache(cache, document));
        }
Пример #3
0
        private void OnStylesheetChanged(object sender, StylesheetChangedEventArgs e)
        {
            // unsubscribe from future notifications
            var document = sender as ISassDocument;

            document.StylesheetChanged -= OnStylesheetChanged;

            // update the cache
            IIntellisenseCache cache;

            if (Caches.TryGetValue(document, out cache))
            {
                Task.Run(() => UpdateCache(cache, document));
            }
        }
Пример #4
0
 private void OnInitialStylesheetChange(object sender, StylesheetChangedEventArgs e)
 {
     Document.StylesheetChanged -= OnInitialStylesheetChange;
     OnDocumentChanged(new DocumentChangedEventArgs
     {
         Stylesheet = Document.Stylesheet,
         ChangeStart = 0,
         ChangeEnd = Buffer.CurrentSnapshot.Length
     });
 }