Skip to content

Commit fac830d

Browse files
committed
chore: Fix nightlies after recent changes
The issues caused by scala/scala3#15877
1 parent 6ab6649 commit fac830d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

mtags/src/main/scala-3/scala/meta/internal/pc/MetalsInteractive.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@ object MetalsInteractive:
259259
indexed.ctx.source,
260260
)
261261
then List((head.symbol, head.typeOpt))
262+
// https://github.com/lampepfl/dotty/issues/15937
263+
else if head.isInstanceOf[TypeTree] then
264+
enclosingSymbolsWithExpressionType(path.tail, pos, indexed)
262265
else Nil
263266
else
264267
val recovered = recoverError(head, indexed)

tests/cross/src/test/scala/tests/pc/CompletionKeywordSuite.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ class CompletionKeywordSuite extends BaseCompletionSuite {
290290
|""".stripMargin,
291291
"""|return
292292
|""".stripMargin,
293+
// methods add in 3.2.1
294+
filter = item => !item.contains("retains"),
293295
)
294296

295297
check(
@@ -302,6 +304,8 @@ class CompletionKeywordSuite extends BaseCompletionSuite {
302304
|}
303305
|""".stripMargin,
304306
"",
307+
// methods add in 3.2.1
308+
filter = item => !item.contains("retains"),
305309
)
306310

307311
check(
@@ -319,6 +323,8 @@ class CompletionKeywordSuite extends BaseCompletionSuite {
319323
compat = Map(
320324
"3" -> ""
321325
),
326+
// methods add in 3.2.1
327+
filter = item => !item.contains("retains"),
322328
)
323329

324330
check(
@@ -329,6 +335,8 @@ class CompletionKeywordSuite extends BaseCompletionSuite {
329335
|ret@@
330336
|""".stripMargin,
331337
"",
338+
// methods add in 3.2.1
339+
filter = item => !item.contains("retains"),
332340
)
333341

334342
check(

0 commit comments

Comments
 (0)