File tree 3 files changed +3
-7
lines changed
compiler/src/dotty/tools/dotc 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -102,11 +102,10 @@ trait SymDenotations { this: Context =>
102
102
103
103
/** Configurable: Accept stale symbol with warning if in IDE */
104
104
def acceptStale (denot : SingleDenotation ): Boolean =
105
- ( mode.is(Mode .Interactive ) && Config .ignoreStaleInIDE) && {
106
- ctx.warning (denot.staleSymbolMsg)
105
+ mode.is(Mode .Interactive ) && Config .ignoreStaleInIDE && {
106
+ ctx.echo (denot.staleSymbolMsg)
107
107
true
108
108
}
109
-
110
109
}
111
110
112
111
object SymDenotations {
Original file line number Diff line number Diff line change @@ -15,7 +15,4 @@ class InteractiveCompiler extends Compiler {
15
15
override def phases : List [List [Phase ]] = List (
16
16
List (new FrontEnd )
17
17
)
18
-
19
- override def rootContext (implicit ctx : Context ) =
20
- super .rootContext.fresh.addMode(Mode .Interactive )
21
18
}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class InteractiveDriver(settings: List[String]) extends Driver {
33
33
override def sourcesRequired = false
34
34
35
35
private val myInitCtx : Context = {
36
- val rootCtx = initCtx.fresh.addMode(Mode .ReadPositions )
36
+ val rootCtx = initCtx.fresh.addMode(Mode .ReadPositions ).addMode( Mode . Interactive )
37
37
rootCtx.setSetting(rootCtx.settings.YretainTrees , true )
38
38
val ctx = setup(settings.toArray, rootCtx)._2
39
39
ctx.initialize()(ctx)
You can’t perform that action at this time.
0 commit comments