-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #919 from aml-org/r/v5.3.8
W-13122900: r/v5.3.8
- Loading branch information
Showing
35 changed files
with
156 additions
and
105 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
24 changes: 24 additions & 0 deletions
24
...server/jvm/src/main/scala/org/mulesoft/als/server/client/AlsLanguageClientExtensions.java
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,24 @@ | ||
package org.mulesoft.als.server.client; | ||
|
||
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; | ||
import org.eclipse.lsp4j.services.LanguageClientExtensions; | ||
import org.mulesoft.als.server.feature.serialization.SerializationResult; | ||
import org.mulesoft.als.server.feature.workspace.FilesInProjectParams; | ||
|
||
import java.io.StringWriter; | ||
|
||
public interface AlsLanguageClientExtensions extends LanguageClientExtensions { | ||
/** | ||
* Serialization notifications are sent from the server to the client to | ||
* signal results of serialization runs. | ||
*/ | ||
@JsonNotification("serializeJSONLD") | ||
void publishSerialization(SerializationResult<StringWriter> serialization); | ||
|
||
/** | ||
* filesInProject notifications are sent from the server to the client to | ||
* signal results of main file runs. | ||
*/ | ||
@JsonNotification("filesInProject") | ||
void publishProjectFiles(FilesInProjectParams filesInProjectParams); | ||
} |
25 changes: 25 additions & 0 deletions
25
als-server/jvm/src/main/scala/org/mulesoft/als/server/client/AlsLanguageClientWrapper.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,25 @@ | ||
package org.mulesoft.als.server.client | ||
|
||
import org.mulesoft.als.server.feature.serialization.SerializationResult | ||
import org.mulesoft.als.server.feature.workspace.FilesInProjectParams | ||
import org.mulesoft.als.server.protocol.client.AlsLanguageClient | ||
import org.mulesoft.lsp.Lsp4JConversions.lsp4JPublishDiagnosticsParams | ||
import org.mulesoft.lsp.client.LspLanguageClient | ||
import org.mulesoft.lsp.feature.diagnostic.PublishDiagnosticsParams | ||
import org.mulesoft.lsp.feature.telemetry.TelemetryMessage | ||
|
||
import java.io.StringWriter | ||
|
||
case class AlsLanguageClientWrapper(private val inner: AlsLanguageClientExtensions) | ||
extends LspLanguageClient | ||
with AlsLanguageClient[StringWriter] { | ||
override def publishDiagnostic(params: PublishDiagnosticsParams): Unit = | ||
inner.publishDiagnostics(params) | ||
|
||
override def notifyTelemetry(params: TelemetryMessage): Unit = | ||
inner.telemetryEvent(params) | ||
|
||
override def notifySerialization(params: SerializationResult[StringWriter]): Unit = inner.publishSerialization(params) | ||
|
||
override def notifyProjectFiles(params: FilesInProjectParams): Unit = inner.publishProjectFiles(params) | ||
} |
Oops, something went wrong.