File tree 2 files changed +3
-2
lines changed
compiler/src/dotty/tools/dotc/core
language-server/src/dotty/tools/languageserver
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -667,7 +667,8 @@ object Symbols {
667
667
case None =>
668
668
val idSet = mutable.SortedSet [String ]()
669
669
tree.foreachSubTree {
670
- case tree : tpd.NameTree if tree.name.isInstanceOf [SimpleName ] => idSet += tree.name.toString
670
+ case tree : tpd.NameTree if tree.name.toTermName.isInstanceOf [SimpleName ] =>
671
+ idSet += tree.name.toString
671
672
case _ =>
672
673
}
673
674
val ids = idSet.toArray
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class DottyLanguageServer extends LanguageServer
65
65
66
66
myDrivers = new mutable.HashMap
67
67
for (config <- configs) {
68
- implicit class updateDeco (ss : List [String ]): List [ String ] {
68
+ implicit class updateDeco (ss : List [String ]) {
69
69
def update (pathKind : String , pathInfo : String ) = {
70
70
val idx = ss.indexOf(pathKind)
71
71
val ss1 = if (idx >= 0 ) ss.take(idx) ++ ss.drop(idx + 2 ) else ss
You can’t perform that action at this time.
0 commit comments