Example #1
0
        IIntellisenseCache CreateCache(ISassDocument document)
        {
            var cache = new IntellisenseCache(document, this);

            if (document.Stylesheet != null)
            {
                Task.Run(() => UpdateCache(cache, document));
            }
            else
            {
                // wait until we have a stylesheet to generate the cache
                document.StylesheetChanged += OnStylesheetChanged;
            }

            return(cache);
        }
        IIntellisenseCache CreateCache(ISassDocument document)
        {
            var cache = new IntellisenseCache(document, this);

            if (document.Stylesheet != null)
            {
                Task.Run(() => UpdateCache(cache, document));
            }
            else
            {
                // wait until we have a stylesheet to generate the cache
                document.StylesheetChanged += OnStylesheetChanged;
            }

            return cache;
        }