File tree 2 files changed +15
-5
lines changed
src/haxeLanguageServer/features/haxe/refactoring
2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 1
- # @install: lix --silent download "gh://github.com/HaxeCheckstyle/haxe-rename#222e156eef9a32fb86ad015940248a683268cd7f " into rename/2.3.1/github/222e156eef9a32fb86ad015940248a683268cd7f
2
- -cp ${HAXE_LIBCACHE}/rename/2.3.1/github/222e156eef9a32fb86ad015940248a683268cd7f /src
1
+ # @install: lix --silent download "gh://github.com/HaxeCheckstyle/haxe-rename#031091ba12a60b45d523f551adccc2cf3f1bf7d6 " into rename/2.3.1/github/031091ba12a60b45d523f551adccc2cf3f1bf7d6
2
+ -cp ${HAXE_LIBCACHE}/rename/2.3.1/github/031091ba12a60b45d523f551adccc2cf3f1bf7d6 /src
3
3
-D rename=2.3.1
Original file line number Diff line number Diff line change @@ -42,7 +42,11 @@ class LanguageServerTyper implements ITyper {
42
42
#end
43
43
resolve (null );
44
44
} else {
45
- resolve (buildTypeHint (hover , ' $filePath @ $pos ' ));
45
+ final typeHint : Null <TypeHintType > = buildTypeHint (hover , ' $filePath @ $pos ' );
46
+ #if debug
47
+ trace (' [refactor] received type info for $filePath @ $pos : ${refactor. PrintHelper .typeHintToString (typeHint )}' );
48
+ #end
49
+ resolve (typeHint );
46
50
}
47
51
return null ;
48
52
}, reject .handler ());
@@ -59,8 +63,14 @@ class LanguageServerTyper implements ITyper {
59
63
final name = printer .printPath (path .path );
60
64
var fullPath = fullPrinter .printPath (path .path );
61
65
final typeName = path .path ?. typeName ;
62
- if (typeName != null && typeName .startsWith (" Abstract<" )) {
63
- fullPath = typeName .substring (9 , typeName .length - 1 );
66
+
67
+ if (typeName != null ) {
68
+ if (typeName .startsWith (" Abstract<" )) {
69
+ fullPath = typeName .substring (9 , typeName .length - 1 );
70
+ }
71
+ if (typeName .startsWith (" Class<" )) {
72
+ fullPath = typeName .substring (6 , typeName .length - 1 );
73
+ }
64
74
}
65
75
final type = typeList ?. getType (fullPath );
66
76
final params : Array <TypeHintType > = [];
You can’t perform that action at this time.
0 commit comments