Skip to content

Commit 84921b7

Browse files
committed
fix next for stdio stream next: default to string
config debug message
1 parent 0655c77 commit 84921b7

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/PharoLanguageProtocol/StdioStream.extension.st

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ Extension { #name : 'StdioStream' }
22

33
{ #category : '*PharoLanguageProtocol' }
44
StdioStream >> plpNext: numberOfData [
5-
self waitForData.
6-
^ self next: numberOfData
5+
6+
^ (self next: numberOfData) asString
77
]

src/PharoLanguageServer/PLSAbstractServer.class.st

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,14 @@ PLSAbstractServer >> codeLensTextDocument: textDocument [
8181
^ (self context textItem: (textDocument at: #uri)) codeLens
8282
]
8383

84-
{ #category : 'pls - config' }
84+
{ #category : 'plp - debug' }
8585
PLSAbstractServer >> configDebugMode: debugMode [
8686

8787
<jrpc: #'pls:updateDebugMode'>
8888
self debugMode: debugMode.
8989
self answerLoopPriority: Processor lowestPriority.
90-
process priority: self answerLoopPriority.
90+
process ifNotNil: [ :aProcess |
91+
aProcess priority: self answerLoopPriority ].
9192
^ debugMode
9293
]
9394

0 commit comments

Comments
 (0)