From e5ea2a2af88667efd99a64ec4188f4e6d1077113 Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Wed, 9 Apr 2025 20:21:41 +0200 Subject: [PATCH] improvement: Support using directives in worksheets --- .../tools/pc/completions/ScalaCliCompletions.scala | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/presentation-compiler/src/main/dotty/tools/pc/completions/ScalaCliCompletions.scala b/presentation-compiler/src/main/dotty/tools/pc/completions/ScalaCliCompletions.scala index e2a0a033ee6b..8df727b14155 100644 --- a/presentation-compiler/src/main/dotty/tools/pc/completions/ScalaCliCompletions.scala +++ b/presentation-compiler/src/main/dotty/tools/pc/completions/ScalaCliCompletions.scala @@ -13,14 +13,20 @@ class ScalaCliCompletions( ): def unapply(path: List[Tree]) = def scalaCliDep = CoursierComplete.isScalaCliDep( - pos.lineContent.take(pos.column).stripPrefix("/*