-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '26-generate-code' into 35-add-builtin-methods
- Loading branch information
Showing
22 changed files
with
2,785 additions
and
19 deletions.
There are no files selected for viewing
File renamed without changes.
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,3 @@ | ||
export const COMMAND_PRINT_VALUE = 'ttsl.printValue'; | ||
export const COMMAND_RUN_PIPELINE = 'ttsl.runPipeline'; | ||
export const COMMAND_SHOW_IMAGE = 'ttsl.showImage'; |
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,59 @@ | ||
import { MessageDirection, NotificationType0, RequestType0 } from 'vscode-languageserver'; | ||
import { NotificationType } from 'vscode-languageserver-protocol'; | ||
|
||
export namespace InstallRunnerNotification { | ||
export const method = 'runner/install' as const; | ||
export const messageDirection = MessageDirection.serverToClient; | ||
export const type = new NotificationType0(method); | ||
} | ||
|
||
export namespace StartRunnerNotification { | ||
export const method = 'runner/start' as const; | ||
export const messageDirection = MessageDirection.clientToServer; | ||
export const type = new NotificationType0(method); | ||
} | ||
|
||
export namespace RunnerStartedNotification { | ||
export const method = 'runner/started' as const; | ||
export const messageDirection = MessageDirection.serverToClient; | ||
export const type = new NotificationType<RunnerStartedParams>(method); | ||
} | ||
|
||
export interface RunnerStartedParams { | ||
/** | ||
* The port the runner is listening on. | ||
*/ | ||
port: number; | ||
} | ||
|
||
export namespace UpdateRunnerNotification { | ||
export const method = 'runner/update' as const; | ||
export const messageDirection = MessageDirection.serverToClient; | ||
export const type = new NotificationType0(method); | ||
} | ||
|
||
export namespace ShowImageNotification { | ||
export const method = 'runner/showImage' as const; | ||
export const messageDirection = MessageDirection.serverToClient; | ||
export const type = new NotificationType<ShowImageParams>(method); | ||
} | ||
|
||
export interface ShowImageParams { | ||
image: { | ||
/** | ||
* The format of the image. | ||
*/ | ||
format: 'png'; | ||
|
||
/** | ||
* The Base64-encoded image. | ||
*/ | ||
bytes: string; | ||
}; | ||
} | ||
|
||
export namespace IsRunnerReadyRequest { | ||
export const method = 'runner/isReady' as const; | ||
export const messageDirection = MessageDirection.clientToServer; | ||
export const type = new RequestType0(method); | ||
} |
Oops, something went wrong.