Example #1
0
        /// <summary>
        /// Apply changes through debugger.ExecuteStatement
        /// </summary>
        /// <param name="debugger"></param>
        public void ApplyChanges(EnvDTE.Debugger debugger)
        {
            ThreadHelper.ThrowIfNotOnUIThread();

            string[] queries = this.Compare(lastSyncObject);

            if (queries == null || queries.Length == 0)
            {
                return;
            }

            foreach (var query in queries)
            {
                debugger.ExecuteStatement(query);
            }

            lastSyncObject = this.Clone();
        }
Example #2
0
 public void ExecuteStatement(string statement) => _debugger.ExecuteStatement(statement);