Skip to content

Commit 2c8ef9c

Browse files
committed
add notifyMethod: aMethodString arguments: arguments
1 parent a72cf9c commit 2c8ef9c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/PharoLanguageServer/PLSAbstractServer.class.st

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,16 @@ PLSAbstractServer >> messageProcess: anId put: aProcess [
220220
self context messageProcessesAt: anId put: aProcess
221221
]
222222

223+
{ #category : 'plp - base protocol' }
224+
PLSAbstractServer >> notifyMethod: aMethodString arguments: arguments [
225+
226+
self
227+
sendData: (self convertJRPCJsonableObjectToJSON:
228+
((JRPCNotificationObject method: aMethodString) params: arguments)
229+
asJRPCJSON)
230+
toClient: clientOutStream
231+
]
232+
223233
{ #category : 'lsp - initialization' }
224234
PLSAbstractServer >> onInitializeTrace: trace processId: processId locale: locale clientInfo: clientInfo rootPath: rootPath workspaceFolders: workspaceFolders capabilities: capabilities rootUri: rootUri [
225235
<jrpc: #initialize>

0 commit comments

Comments
 (0)