Skip to content

Commit

Permalink
chore: Fix nightlies after recent changes
Browse files Browse the repository at this point in the history
The issues caused by scala/scala3#15877
  • Loading branch information
tgodzik committed Aug 30, 2022
1 parent 6ab6649 commit fac830d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ object MetalsInteractive:
indexed.ctx.source,
)
then List((head.symbol, head.typeOpt))
// https://github.com/lampepfl/dotty/issues/15937
else if head.isInstanceOf[TypeTree] then
enclosingSymbolsWithExpressionType(path.tail, pos, indexed)
else Nil
else
val recovered = recoverError(head, indexed)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ class CompletionKeywordSuite extends BaseCompletionSuite {
|""".stripMargin,
"""|return
|""".stripMargin,
// methods add in 3.2.1
filter = item => !item.contains("retains"),
)

check(
Expand All @@ -302,6 +304,8 @@ class CompletionKeywordSuite extends BaseCompletionSuite {
|}
|""".stripMargin,
"",
// methods add in 3.2.1
filter = item => !item.contains("retains"),
)

check(
Expand All @@ -319,6 +323,8 @@ class CompletionKeywordSuite extends BaseCompletionSuite {
compat = Map(
"3" -> ""
),
// methods add in 3.2.1
filter = item => !item.contains("retains"),
)

check(
Expand All @@ -329,6 +335,8 @@ class CompletionKeywordSuite extends BaseCompletionSuite {
|ret@@
|""".stripMargin,
"",
// methods add in 3.2.1
filter = item => !item.contains("retains"),
)

check(
Expand Down

0 comments on commit fac830d

Please sign in to comment.