File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
src/main/dotty/tools/pc/completions
test/dotty/tools/pc/tests/completion Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ import org.eclipse.lsp4j.InsertTextFormat
32
32
import org .eclipse .lsp4j .InsertTextMode
33
33
import org .eclipse .lsp4j .Range as LspRange
34
34
import org .eclipse .lsp4j .TextEdit
35
- import dotty .tools .dotc .cc .CaptureSet .empty
36
35
37
36
class CompletionProvider (
38
37
search : SymbolSearch ,
Original file line number Diff line number Diff line change @@ -552,3 +552,16 @@ class CompletionExtraConstructorSuite extends BaseCompletionSuite:
552
552
|""" .stripMargin
553
553
)
554
554
555
+ @ Test def `dont-include-private-members` =
556
+ check(
557
+ """ |object TestObject:
558
+ | private def apply(i: Int) = i
559
+ |object Main:
560
+ | TestObject@@
561
+ |""" .stripMargin,
562
+ """ |TestClass($0)
563
+ |new Wrapper.TestClass
564
+ |TestClass
565
+ |""" .stripMargin
566
+ )
567
+
You can’t perform that action at this time.
0 commit comments