Skip to content

Commit

Permalink
add some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
radeusgd committed Jul 2, 2021
1 parent b9b4d91 commit bdef492
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
project ([#1806](https://github.com/enso-org/enso/pull/1806)).
- Fixed a bug where unresolved imports would crash the compiler
([#1822](https://github.com/enso-org/enso/pull/1822)).
- Implemented the ability to dynamically load local libraries
([#1826](https://github.com/enso-org/enso/pull/1826)). Currently, it only
allows to load local libraries, it will be integrated with the editions system
soon.

## Tooling

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import org.enso.polyglot.runtime.Runtime.{Api, ApiResponse}

import java.nio.file.Path

/** A class that forwards notifications about loaded libraries and long-running
* tasks to the user interface.
*/
trait NotificationHandler extends ProgressReporter {

/** Called when a library has been loaded.
Expand Down Expand Up @@ -56,6 +59,8 @@ object NotificationHandler {
* the IDE.
*/
class InteractiveMode extends NotificationHandler {
private val logger = Logger[InteractiveMode]

private var endpoint: Option[Endpoint] = None
private var queue: List[Api.Response] = Nil

Expand Down Expand Up @@ -92,7 +97,7 @@ object NotificationHandler {
def registerLanguageServerEndpoint(endpoint: Endpoint): Unit =
this.synchronized {
if (this.endpoint.isDefined) {
Logger[InteractiveMode].warn(
logger.warn(
"Language Server endpoint has been set twice. " +
"The second one has been ignored."
)
Expand All @@ -105,6 +110,7 @@ object NotificationHandler {

/** @inheritdoc */
override def trackProgress(message: String, task: TaskProgress[_]): Unit = {
logger.info(message)
// TODO [RW] this should be implemented once progress tracking is used by downloads
}
}
Expand Down

0 comments on commit bdef492

Please sign in to comment.