Skip to content

Commit

Permalink
fix: Changes on Formatter profiles have no effect before reloading (#…
Browse files Browse the repository at this point in the history
…1738)

Signed-off-by: Shi Chen <[email protected]>
  • Loading branch information
CsCherrYY authored Apr 23, 2021
1 parent b5223d7 commit d6bf874
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.SubMonitor;
import org.eclipse.core.runtime.URIUtil;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.jdt.core.IClasspathEntry;
import org.eclipse.jdt.core.IJavaProject;
Expand Down Expand Up @@ -175,7 +176,7 @@ public void fileChanged(String uriString, CHANGE_TYPE changeType) {
List<URI> uris = getURIs(settingsUrl);
boolean changed = false;
for (URI settingsURI : uris) {
if (settingsURI.equals(uri)) {
if (URIUtil.sameURI(settingsURI, uri)) {
changed = true;
break;
}
Expand All @@ -193,7 +194,7 @@ public void fileChanged(String uriString, CHANGE_TYPE changeType) {
List<URI> uris = getURIs(formatterUrl);
boolean changed = false;
for (URI formatterUri : uris) {
if (formatterUri.equals(uri)) {
if (URIUtil.sameURI(formatterUri, uri)) {
changed = true;
break;
}
Expand Down

0 comments on commit d6bf874

Please sign in to comment.