Beispiel #1
0
        public SqlNonConformanceTagger(ITextBuffer textBuffer, SqlContainerConfiguration configuration)
        {
            this.textBuffer    = textBuffer;
            this.configuration = configuration;

            this.textBuffer.Changed += (sender, args) =>
            {
                var snapshot = args.After;
                invokeTagsChanged(snapshot);
            };
        }
        public static SqlContainerConfiguration Configuration()
        {
            var user   = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
            var result = SqlContainerConfiguration.FromFile(CONFIGURATION_PATH.Replace("{user}", user));

            if (result.If(out var configuration, out var exception))
            {
                return(configuration);
            }
            else
            {
                throw exception;
            }
        }