1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 23:55:26 +02:00

launchbar: target config provider lc working copies bugs

per target config provider adds working copy into cache on change
notifications which creates problems
a) they never cleaned up
b) now when its searching its picking a wrong config (wc) causing 
it to return invalid config

fix push up higher in launch bar itself, no point propagating
launch change notifications from working copies

Change-Id: I3b7bc94f3ef6ab385fc43cc5482ab4c9b943e8fa
This commit is contained in:
Alena Laskavaia 2015-06-03 10:53:32 -04:00
parent e1ac2000de
commit 01bfa62a4d

View file

@ -815,6 +815,11 @@ public class LaunchBarManager implements ILaunchBarManager, IRemoteConnectionCha
@Override
public void launchConfigurationChanged(ILaunchConfiguration configuration) {
// we have to ignore notifications from working copies, otherwise
// we will get thousand of events and we don't track working copies
// (add/remove events are not sent for WCs)
if (configuration.isWorkingCopy())
return;
for (LaunchDescriptorTypeInfo descTypeInfo : orderedDescriptorTypes) {
for (LaunchConfigProviderInfo providerInfo : configProviders.get(descTypeInfo.getId())) {
try {