65201
|
1 |
'use strict';
|
|
2 |
|
|
3 |
import { Position, Range, MarkedString, DecorationOptions, DecorationRenderOptions } from 'vscode'
|
|
4 |
import { NotificationType } from 'vscode-languageclient';
|
|
5 |
|
|
6 |
|
|
7 |
/* decorations */
|
|
8 |
|
|
9 |
export interface DecorationOpts {
|
|
10 |
range: number[],
|
|
11 |
hover_message?: MarkedString | MarkedString[]
|
|
12 |
}
|
|
13 |
|
|
14 |
export interface Decoration
|
|
15 |
{
|
|
16 |
uri: string,
|
|
17 |
"type": string,
|
|
18 |
content: DecorationOpts[]
|
|
19 |
}
|
|
20 |
|
|
21 |
export const decoration_type =
|
|
22 |
new NotificationType<Decoration, void>("PIDE/decoration")
|
|
23 |
|
|
24 |
|
|
25 |
/* caret handling */
|
|
26 |
|
|
27 |
export interface Caret_Update
|
|
28 |
{
|
|
29 |
uri?: string
|
|
30 |
line?: number
|
|
31 |
character?: number
|
|
32 |
}
|
|
33 |
|
|
34 |
export const caret_update_type =
|
|
35 |
new NotificationType<Caret_Update, void>("PIDE/caret_update")
|
|
36 |
|
|
37 |
|
|
38 |
/* dynamic output */
|
|
39 |
|
|
40 |
export interface Dynamic_Output
|
|
41 |
{
|
|
42 |
body: string
|
|
43 |
}
|
|
44 |
|
|
45 |
export const dynamic_output_type =
|
|
46 |
new NotificationType<Dynamic_Output, void>("PIDE/dynamic_output")
|