mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
updated todo
This commit is contained in:
@@ -25,20 +25,24 @@ x! Library CC for nested would be tricky. Need to jump from local->compiled code
|
||||
x! Should I implement wrapper for ASTNode? - possibly needed for code completion with compiled and non-compiled code. Done.
|
||||
* Trie implementation would be lower priority, "premature optimisation is pure evil". Get all features of CC working good enough and then plan this.
|
||||
x Differentiating between multiple statements on the same line. How to? Done with offset handling.
|
||||
* - Add a static debug field, disable debugging info on console.
|
||||
* - update build.xml to produce dists
|
||||
* - Make this a contributed mode - mode.txt, github releases feature, version numbering, git tags, etc
|
||||
|
||||
Finer details
|
||||
x! - Ignore String case while finding completion candidates
|
||||
x - Multiple 3rd party classes found in various packages. Not a chance no more.
|
||||
x Obj a1; a1.-> completion doesn't work before it is instantiated. Look into that. Began working again by itself. Yay!
|
||||
* printStuff(int,float,String) - completion endings have to be appropriate. Right now it's just printStuff(,,). Cursor positioning also needs to be taken care of. Argument list as tooltip if possible?
|
||||
* printStuff(int,float,String) - completion endings have to be appropriate. Right now it's just printStuff(,,). Cursor positioning also needs to be taken care of(done). Argument list as tooltip if possible?
|
||||
x Cursor positioning should be after the first ( if arguments present, else after ()
|
||||
x Display the type of Completion(method return type, variable type) in the popup.
|
||||
- facing some issues for local types. Fixed.
|
||||
* Sorted list of completion candidates - fields, then methods. It's unsorted presently.
|
||||
x Sorted list of completion candidates - fields, then methods. It's unsorted presently.
|
||||
*! p5 enhanced stuff in java, how does it fit in with everything else, and edge cases. Possibly add support for them. Offset handling improvements should help here.
|
||||
* - Diamond opertaor isn't supported for now. Bummer.
|
||||
* - Diamond operator isn't supported for now. Bummer.
|
||||
x Reflection API - getMethods vs getDeclaredMethods. declared.
|
||||
x Need to add offset correction to ASTGenerator and its lookup methods. Or leave it for later? All set to implement
|
||||
* - Icons for completions? Or overkill right now?
|
||||
|
||||
Completion List
|
||||
x Dynamically update the list instead of recreating on every keystroke(new list data, pos, etc.)
|
||||
|
||||
@@ -24,20 +24,6 @@ public class CompletionCandidate implements Comparable<CompletionCandidate>{
|
||||
PREDEF_METHOD = 2, LOCAL_CLASS = 3, LOCAL_METHOD = 4, LOCAL_FIELD = 5,
|
||||
LOCAL_VAR = 6;
|
||||
|
||||
// public CompletionCandidate(String name, String className, String label,
|
||||
// int TYPE) {
|
||||
// elementName = name;
|
||||
// if (label.length() > 0)
|
||||
// this.label = label;
|
||||
// else
|
||||
// this.label = name;
|
||||
// this.type = TYPE;
|
||||
// if (type == LOCAL_METHOD) {
|
||||
// this.label += "()";
|
||||
// }
|
||||
// completionString = this.label;
|
||||
// }
|
||||
|
||||
public CompletionCandidate(Method method) {
|
||||
method.getDeclaringClass().getName();
|
||||
elementName = method.getName();
|
||||
@@ -150,7 +136,6 @@ public class CompletionCandidate implements Comparable<CompletionCandidate>{
|
||||
if(type != cc.getType()){
|
||||
return cc.getType() - type;
|
||||
}
|
||||
|
||||
return (elementName.compareTo(cc.getElementName()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user