Skip to content

Commit 635fb99

Browse files
committed
turn off completion by default, and rename the pref
1 parent 7906021 commit 635fb99

5 files changed

Lines changed: 22 additions & 20 deletions

File tree

build/shared/lib/defaults.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,10 @@ pdex.autoSave.autoSaveByDefault=true
344344
pdex.autoSave.autoSaveEnabled=false
345345
pdex.autoSave.promptDisplay=true
346346
pdex.autoSaveInterval=5
347-
pdex.ccEnabled=true
348347
pdex.dbgOutput=false
349348
pdex.errorCheckEnabled=true
350349
pdex.warningsEnabled=true
351350
pdex.writeErrorLogs=false
351+
352+
pdex.completion = false
353+
pdex.completion.trigger = false

build/shared/revisions.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ until all those issues are sorted out.
2121
messages. Hopefully this will return soon.
2222
https://github.com/processing/processing/issues/2852
2323

24+
+ Turned off code completion by default and reset its preference name.
25+
26+
2427
[ bug fixes ]
2528

2629
+ TGAs from saveFrame() create transparent/black movies with Movie Maker

pdex/src/processing/mode/experimental/ErrorMessageSimplifier.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@
88
import org.eclipse.jdt.core.compiler.IProblem;
99
import org.eclipse.jdt.internal.compiler.problem.DefaultProblem;
1010

11-
import static processing.mode.experimental.ExperimentalMode.log;
1211

1312
public class ErrorMessageSimplifier {
14-
15-
// private ErrorCheckerService errorCheckerService;
16-
1713
/**
1814
* Mapping between ProblemID constant and the constant name. Holds about 650
1915
* of them. Also, this is just temporary, will be used to find the common

pdex/src/processing/mode/experimental/ExperimentalMode.java

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import processing.app.Base;
3737
import processing.app.Editor;
3838
import processing.app.EditorState;
39-
import processing.app.Library;
4039
import processing.app.Mode;
4140
import processing.app.Preferences;
4241
import processing.app.RunnerListener;
@@ -149,20 +148,19 @@ public File getContentFile(String path) {
149148
*/
150149
volatile public static int codeCompletionTriggerLength = 2;
151150

152-
public static final String prefErrorCheck = "pdex.errorCheckEnabled",
153-
prefWarnings = "pdex.warningsEnabled",
154-
prefCodeCompletionEnabled = "pdex.ccEnabled",
155-
prefDebugOP = "pdex.dbgOutput",
156-
prefErrorLogs = "pdex.writeErrorLogs",
157-
prefAutoSaveInterval = "pdex.autoSaveInterval",
158-
prefAutoSave = "pdex.autoSave.autoSaveEnabled", // prefUntitledAutoSave = "pdex.autoSave.untitledAutoSaveEnabled",
159-
prefAutoSavePrompt = "pdex.autoSave.promptDisplay",
160-
prefDefaultAutoSave = "pdex.autoSave.autoSaveByDefault",
161-
prefCCTriggerEnabled = "pdex.ccTriggerEnabled",
162-
prefImportSuggestEnabled = "pdex.importSuggestEnabled";
163-
164-
// // TweakMode code (Preferences)
165-
volatile public static boolean enableTweak = false;
151+
static public final String prefErrorCheck = "pdex.errorCheckEnabled";
152+
static public final String prefWarnings = "pdex.warningsEnabled";
153+
static public final String prefCodeCompletionEnabled = "pdex.completion";
154+
static public final String prefCCTriggerEnabled = "pdex.completion.trigger";
155+
static public final String prefDebugOP = "pdex.dbgOutput";
156+
static public final String prefErrorLogs = "pdex.writeErrorLogs";
157+
static public final String prefAutoSaveInterval = "pdex.autoSaveInterval";
158+
static public final String prefAutoSave = "pdex.autoSave.autoSaveEnabled";
159+
static public final String prefAutoSavePrompt = "pdex.autoSave.promptDisplay";
160+
static public final String prefDefaultAutoSave = "pdex.autoSave.autoSaveByDefault";
161+
static public final String prefImportSuggestEnabled = "pdex.importSuggestEnabled";
162+
163+
static volatile public boolean enableTweak = false;
166164

167165
public void loadPreferences() {
168166
log("Load PDEX prefs");

todo.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ X TGAs from saveFrame() create transparent/black movies with Movie Maker
1515
X https://github.com/processing/processing/issues/2851
1616
X fix export problem on Windows with PDE X
1717
X https://github.com/processing/processing/issues/2806
18+
X turn off code completion by default (and reset the preference)
1819

1920
pulls
2021
X Optimize creation of boxed primitives
@@ -26,6 +27,8 @@ X https://github.com/processing/processing/pull/2844
2627
X black font outline appears with large VLW font and OpenGL renderer
2728
X https://github.com/processing/processing/issues/2845
2829
X https://github.com/processing/processing/pull/2856
30+
X updates to Spanish translation
31+
X https://github.com/processing/processing/pull/2857
2932

3033
cleaning
3134
X single line of code with no semicolon dies with "unexpected token: null"

0 commit comments

Comments
 (0)