Changes for page Running KEITH
Last modified by Richard Kreissig on 2023/09/14 08:48
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -276,12 +276,26 @@ 276 276 const snapshotsDescriptions: CodeContainer = await lclient.sendRequest("keith/kicool/compile", [uri, KeithDiagramManager.DIAGRAM_TYPE + '_sprotty', command, 277 277 this.compilerWidget.compileInplace]) as CodeContainer 278 278 // or via a thenable 279 +client.languageClient.then(lClient => { 280 +lClient.sendRequest("keith/kicool/compile").then((languages: LanguageDescription[]) => { 281 + // very important stuff 282 +} 283 +// await is preferred, since it is shorter. 284 +{{/code}} 279 279 286 +In this example client is an instance of a language client. It is usally injected like this: 280 280 288 +{{code}} 289 +constructor( 290 + @inject(KeithLanguageClientContribution) public readonly client: KeithLanguageClientContribution 291 + // other injected classes 292 + ) { 293 + // constructor stuff 294 +} 281 281 {{/code}} 282 282 283 283 \\ 284 284 285 -== How to sendmessages==299 +== How to make a new == 286 286 287 287 == How to write a widget ==
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 -568525 271 +56852530 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/568525 27/Running KEITH1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/56852530/Running KEITH