logic: minor vs plugin fix

fixed some minor plugin issues
This commit is contained in:
wrongway88
2017-02-11 19:08:59 +01:00
parent 0eb959bf54
commit e1d2c3a4e0
6 changed files with 15 additions and 12 deletions
+1
View File
@@ -1,3 +1,4 @@
Settings.cpp WARNING: File for Settings not found: data/TestSettings.xml
Token.cpp ERROR: Location Id was not referenced by this Token. Token.cpp ERROR: Location Id was not referenced by this Token.
Node.cpp WARNING: Cannot change NodeType after it was already set from namespace to class Node.cpp WARNING: Cannot change NodeType after it was already set from namespace to class
Edge.cpp ERROR: Nodes are not plain copies. Edge.cpp ERROR: Nodes are not plain copies.
Binary file not shown.
@@ -64,10 +64,12 @@ namespace CoatiSoftware.CoatiPlugin.SolutionParser
public void AddOrUpdateCommandObject(CommandObject commandObject) public void AddOrUpdateCommandObject(CommandObject commandObject)
{ {
if (TryUpdateCommandObject(commandObject) == false) _commandObjects.Add(commandObject); // updating is not efficient as it is
{
_commandObjects.Add(commandObject); //if (TryUpdateCommandObject(commandObject) == false)
} //{
// _commandObjects.Add(commandObject);
//}
} }
// remove commandObjects for removed files // remove commandObjects for removed files
@@ -110,10 +110,11 @@ namespace CoatiSoftware.CoatiPlugin.Wizard
private void InitProjectCheckList() private void InitProjectCheckList()
{ {
if(_cdb != null) // way to slow for large projects
{ //if(_cdb != null)
_cdb.TryLoadData(); //{
} // _cdb.TryLoadData();
//}
foreach(Utility.SolutionUtility.SolutionStructure.Node node in _projectStructure.Nodes) foreach(Utility.SolutionUtility.SolutionStructure.Node node in _projectStructure.Nodes)
{ {
@@ -181,7 +181,6 @@ namespace CoatiSoftware.CoatiPlugin.Wizard
{ {
// parallel with tasks // parallel with tasks
Multitasking.LimitedThreadsTaskScheduler scheduler = new Multitasking.LimitedThreadsTaskScheduler(_threadCount); Multitasking.LimitedThreadsTaskScheduler scheduler = new Multitasking.LimitedThreadsTaskScheduler(_threadCount);
TaskFactory factory = new TaskFactory(scheduler); TaskFactory factory = new TaskFactory(scheduler);
List<Task> tasks = new List<Task>(); List<Task> tasks = new List<Task>();
@@ -219,9 +218,9 @@ namespace CoatiSoftware.CoatiPlugin.Wizard
int threadCount = System.Diagnostics.Process.GetCurrentProcess().Threads.Count; int threadCount = System.Diagnostics.Process.GetCurrentProcess().Threads.Count;
Logging.Logging.LogInfo("thread count: " + threadCount.ToString());
Task.WaitAll(tasks.ToArray()); Task.WaitAll(tasks.ToArray());
backgroundWorker1.ReportProgress(100, "Writing data to file. This might take several minutes...");
} }
catch(Exception e) catch(Exception e)
{ {
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011"> <PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata> <Metadata>
<Identity Id="acf15780-03b5-440e-a41e-db79b7043fc2" Version="0.9.0" Language="en-US" Publisher="Coati Software OG" /> <Identity Id="acf15780-03b5-440e-a41e-db79b7043fc2" Version="0.9.1" Language="en-US" Publisher="Coati Software OG" />
<DisplayName>CoatiPlugin</DisplayName> <DisplayName>CoatiPlugin</DisplayName>
<Description xml:space="preserve">This package allows Coati to communicate with Visual Studio and vice versa.</Description> <Description xml:space="preserve">This package allows Coati to communicate with Visual Studio and vice versa.</Description>
<MoreInfo>http://www.coati.io/</MoreInfo> <MoreInfo>http://www.coati.io/</MoreInfo>