-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
close #6800 Update the `executionContext/expressionUpdates` notification and send the list of not applied arguments in addition to the method pointer. # Important Notes IDE is updated to support the new API.
- Loading branch information
Showing
24 changed files
with
1,281 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
engine/language-server/src/main/scala/org/enso/languageserver/runtime/MethodCall.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.enso.languageserver.runtime | ||
|
||
import org.enso.polyglot.runtime.Runtime.Api | ||
|
||
/** A representation of a method call. | ||
* | ||
* @param methodPointer the method pointer of a call | ||
* @param notAppliedArguments indexes of arguments that have not been applied | ||
* to this method | ||
*/ | ||
case class MethodCall( | ||
methodPointer: MethodPointer, | ||
notAppliedArguments: Vector[Int] | ||
) { | ||
|
||
/** Convert this method call to the corresponding [[Api]] message. */ | ||
def toApi: Api.MethodCall = | ||
Api.MethodCall(methodPointer.toApi, notAppliedArguments) | ||
} | ||
|
||
/** An object pointing to a method definition. | ||
* | ||
* @param module the module of the method file | ||
* @param definedOnType method type | ||
* @param name method name | ||
*/ | ||
case class MethodPointer(module: String, definedOnType: String, name: String) { | ||
|
||
/** Convert this method pointer to the corresponding [[Api]] message. */ | ||
def toApi: Api.MethodPointer = | ||
Api.MethodPointer(module, definedOnType, name) | ||
} |
16 changes: 0 additions & 16 deletions
16
engine/language-server/src/main/scala/org/enso/languageserver/runtime/MethodPointer.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.