Skip to content

Commit 7a689ba

Browse files
committed
No LS logging to a specific file in the workspace by default
1 parent ef0e601 commit 7a689ba

File tree

1 file changed

+7
-10
lines changed
  • eclipse-language-servers/org.springframework.tooling.ls.eclipse.commons/src/org/springframework/tooling/ls/eclipse/commons/preferences

1 file changed

+7
-10
lines changed

eclipse-language-servers/org.springframework.tooling.ls.eclipse.commons/src/org/springframework/tooling/ls/eclipse/commons/preferences/PrefsInitializer.java

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@
1212

1313
import static org.springframework.tooling.ls.eclipse.commons.preferences.LanguageServerConsolePreferenceConstants.ENABLE_BY_DEFAULT;
1414

15-
import org.eclipse.core.runtime.IPath;
16-
import org.eclipse.core.runtime.Platform;
1715
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
1816
import org.eclipse.jface.preference.IPreferenceStore;
19-
import org.osgi.framework.Bundle;
2017
import org.springframework.tooling.ls.eclipse.commons.preferences.LanguageServerConsolePreferenceConstants.ServerInfo;
2118

2219
public class PrefsInitializer extends AbstractPreferenceInitializer {
@@ -26,13 +23,13 @@ public void initializeDefaultPreferences() {
2623
ServerInfo[] installedServers = LsPreferencesUtil.getInstalledLs();
2724
for (ServerInfo s : installedServers) {
2825
store.setDefault(s.preferenceKeyConsoleLog, ENABLE_BY_DEFAULT);
29-
Bundle bundle = Platform.getBundle(s.bundleId);
30-
if (bundle != null) {
31-
IPath stateLocation = Platform.getStateLocation(bundle);
32-
if (stateLocation != null) {
33-
store.setDefault(s.preferenceKeyFileLog, stateLocation.append(s.label.toLowerCase().replaceAll("\\s+", "-") + ".log").toFile().getAbsoluteFile().getPath());
34-
}
35-
}
26+
// Bundle bundle = Platform.getBundle(s.bundleId);
27+
// if (bundle != null) {
28+
// IPath stateLocation = Platform.getStateLocation(bundle);
29+
// if (stateLocation != null) {
30+
// store.setDefault(s.preferenceKeyFileLog, stateLocation.append(s.label.toLowerCase().replaceAll("\\s+", "-") + ".log").toFile().getAbsoluteFile().getPath());
31+
// }
32+
// }
3633
}
3734
store.setDefault(PreferenceConstants.HIGHLIGHT_CODELENS_PREFS, false);
3835
}

0 commit comments

Comments
 (0)