| author | wenzelm |
| Sun, 26 Oct 2025 19:14:08 +0100 | |
| changeset 83401 | 1d9b1ca7977e |
| parent 83388 | 8d90bd0e4f39 |
| child 83405 | 6ac2c6c2e549 |
| permissions | -rw-r--r-- |
|
75201
8f6b8a46f54c
clarified modules: more uniform .scala vs. ts (amending 4519eeefe3b5);
wenzelm
parents:
75134
diff
changeset
|
1 |
/* Author: Makarius |
| 83375 | 2 |
Author: Thomas Lindae, TU Muenchen |
3 |
Author: Diana Korchmar, LMU Muenchen |
|
|
75201
8f6b8a46f54c
clarified modules: more uniform .scala vs. ts (amending 4519eeefe3b5);
wenzelm
parents:
75134
diff
changeset
|
4 |
|
|
8f6b8a46f54c
clarified modules: more uniform .scala vs. ts (amending 4519eeefe3b5);
wenzelm
parents:
75134
diff
changeset
|
5 |
Message formats for Language Server Protocol, with adhoc PIDE extensions |
|
8f6b8a46f54c
clarified modules: more uniform .scala vs. ts (amending 4519eeefe3b5);
wenzelm
parents:
75134
diff
changeset
|
6 |
(see Tools/VSCode/src/lsp.scala). |
|
8f6b8a46f54c
clarified modules: more uniform .scala vs. ts (amending 4519eeefe3b5);
wenzelm
parents:
75134
diff
changeset
|
7 |
*/ |
|
8f6b8a46f54c
clarified modules: more uniform .scala vs. ts (amending 4519eeefe3b5);
wenzelm
parents:
75134
diff
changeset
|
8 |
|
| 65201 | 9 |
'use strict'; |
10 |
||
|
75126
da1108a6d249
various improvements to Isabelle/VSCode (by Denis Paluca and Fabian Huch);
wenzelm
parents:
66216
diff
changeset
|
11 |
import { MarkdownString } from 'vscode'
|
|
81035
56594fac1dab
vscode: added dynamic and state output set margin messages to vscode extension;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
75263
diff
changeset
|
12 |
import { NotificationType, RequestType0 } from 'vscode-languageclient'
|
| 65201 | 13 |
|
|
75201
8f6b8a46f54c
clarified modules: more uniform .scala vs. ts (amending 4519eeefe3b5);
wenzelm
parents:
75134
diff
changeset
|
14 |
|
| 65201 | 15 |
/* decorations */ |
16 |
||
|
75126
da1108a6d249
various improvements to Isabelle/VSCode (by Denis Paluca and Fabian Huch);
wenzelm
parents:
66216
diff
changeset
|
17 |
export interface Decoration_Options {
|
| 65201 | 18 |
range: number[], |
|
75126
da1108a6d249
various improvements to Isabelle/VSCode (by Denis Paluca and Fabian Huch);
wenzelm
parents:
66216
diff
changeset
|
19 |
hover_message?: MarkdownString | MarkdownString[] |
| 65201 | 20 |
} |
21 |
||
22 |
export interface Decoration |
|
23 |
{
|
|
|
75126
da1108a6d249
various improvements to Isabelle/VSCode (by Denis Paluca and Fabian Huch);
wenzelm
parents:
66216
diff
changeset
|
24 |
"type": string |
|
da1108a6d249
various improvements to Isabelle/VSCode (by Denis Paluca and Fabian Huch);
wenzelm
parents:
66216
diff
changeset
|
25 |
content: Decoration_Options[] |
|
da1108a6d249
various improvements to Isabelle/VSCode (by Denis Paluca and Fabian Huch);
wenzelm
parents:
66216
diff
changeset
|
26 |
} |
|
da1108a6d249
various improvements to Isabelle/VSCode (by Denis Paluca and Fabian Huch);
wenzelm
parents:
66216
diff
changeset
|
27 |
|
|
da1108a6d249
various improvements to Isabelle/VSCode (by Denis Paluca and Fabian Huch);
wenzelm
parents:
66216
diff
changeset
|
28 |
export interface Document_Decorations {
|
|
da1108a6d249
various improvements to Isabelle/VSCode (by Denis Paluca and Fabian Huch);
wenzelm
parents:
66216
diff
changeset
|
29 |
uri: string |
|
da1108a6d249
various improvements to Isabelle/VSCode (by Denis Paluca and Fabian Huch);
wenzelm
parents:
66216
diff
changeset
|
30 |
entries: Decoration[] |
| 65201 | 31 |
} |
32 |
||
33 |
export const decoration_type = |
|
|
75134
c04ccea8bdd2
update VSCode plugin dependencies;
Fabian Huch <huch@in.tum.de>
parents:
75126
diff
changeset
|
34 |
new NotificationType<Document_Decorations>("PIDE/decoration")
|
| 65201 | 35 |
|
36 |
||
|
81044
6206f3b2625a
vscode: added decoration request on file switch;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
81035
diff
changeset
|
37 |
export interface Decoration_Request |
|
6206f3b2625a
vscode: added decoration request on file switch;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
81035
diff
changeset
|
38 |
{
|
|
6206f3b2625a
vscode: added decoration request on file switch;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
81035
diff
changeset
|
39 |
uri: string |
|
6206f3b2625a
vscode: added decoration request on file switch;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
81035
diff
changeset
|
40 |
} |
|
6206f3b2625a
vscode: added decoration request on file switch;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
81035
diff
changeset
|
41 |
|
|
6206f3b2625a
vscode: added decoration request on file switch;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
81035
diff
changeset
|
42 |
export const decoration_request_type = |
|
6206f3b2625a
vscode: added decoration request on file switch;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
81035
diff
changeset
|
43 |
new NotificationType<Decoration_Request>("PIDE/decoration_request")
|
|
6206f3b2625a
vscode: added decoration request on file switch;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
81035
diff
changeset
|
44 |
|
|
6206f3b2625a
vscode: added decoration request on file switch;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
81035
diff
changeset
|
45 |
|
| 65201 | 46 |
/* caret handling */ |
47 |
||
48 |
export interface Caret_Update |
|
49 |
{
|
|
50 |
uri?: string |
|
51 |
line?: number |
|
52 |
character?: number |
|
| 66216 | 53 |
focus?: boolean |
| 65201 | 54 |
} |
55 |
||
56 |
export const caret_update_type = |
|
|
75134
c04ccea8bdd2
update VSCode plugin dependencies;
Fabian Huch <huch@in.tum.de>
parents:
75126
diff
changeset
|
57 |
new NotificationType<Caret_Update>("PIDE/caret_update")
|
| 65201 | 58 |
|
59 |
||
60 |
/* dynamic output */ |
|
61 |
||
62 |
export interface Dynamic_Output |
|
63 |
{
|
|
| 65979 | 64 |
content: string |
| 65201 | 65 |
} |
66 |
||
67 |
export const dynamic_output_type = |
|
|
75134
c04ccea8bdd2
update VSCode plugin dependencies;
Fabian Huch <huch@in.tum.de>
parents:
75126
diff
changeset
|
68 |
new NotificationType<Dynamic_Output>("PIDE/dynamic_output")
|
|
65977
c51b74be23b6
provide preview content on Scala side (similar to output);
wenzelm
parents:
65201
diff
changeset
|
69 |
|
|
81035
56594fac1dab
vscode: added dynamic and state output set margin messages to vscode extension;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
75263
diff
changeset
|
70 |
export interface Output_Set_Margin |
|
56594fac1dab
vscode: added dynamic and state output set margin messages to vscode extension;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
75263
diff
changeset
|
71 |
{
|
|
56594fac1dab
vscode: added dynamic and state output set margin messages to vscode extension;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
75263
diff
changeset
|
72 |
margin: number |
|
56594fac1dab
vscode: added dynamic and state output set margin messages to vscode extension;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
75263
diff
changeset
|
73 |
} |
|
56594fac1dab
vscode: added dynamic and state output set margin messages to vscode extension;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
75263
diff
changeset
|
74 |
|
|
56594fac1dab
vscode: added dynamic and state output set margin messages to vscode extension;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
75263
diff
changeset
|
75 |
export const output_set_margin_type = |
|
56594fac1dab
vscode: added dynamic and state output set margin messages to vscode extension;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
75263
diff
changeset
|
76 |
new NotificationType<Output_Set_Margin>("PIDE/output_set_margin")
|
|
65977
c51b74be23b6
provide preview content on Scala side (similar to output);
wenzelm
parents:
65201
diff
changeset
|
77 |
|
| 83375 | 78 |
|
| 66096 | 79 |
/* state */ |
80 |
||
81 |
export interface State_Output |
|
82 |
{
|
|
83 |
id: number |
|
84 |
content: string |
|
|
75126
da1108a6d249
various improvements to Isabelle/VSCode (by Denis Paluca and Fabian Huch);
wenzelm
parents:
66216
diff
changeset
|
85 |
auto_update: boolean |
| 66096 | 86 |
} |
87 |
||
88 |
export const state_output_type = |
|
|
75134
c04ccea8bdd2
update VSCode plugin dependencies;
Fabian Huch <huch@in.tum.de>
parents:
75126
diff
changeset
|
89 |
new NotificationType<State_Output>("PIDE/state_output")
|
| 66096 | 90 |
|
|
81035
56594fac1dab
vscode: added dynamic and state output set margin messages to vscode extension;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
75263
diff
changeset
|
91 |
export interface State_Set_Margin |
|
56594fac1dab
vscode: added dynamic and state output set margin messages to vscode extension;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
75263
diff
changeset
|
92 |
{
|
|
56594fac1dab
vscode: added dynamic and state output set margin messages to vscode extension;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
75263
diff
changeset
|
93 |
id: number |
|
56594fac1dab
vscode: added dynamic and state output set margin messages to vscode extension;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
75263
diff
changeset
|
94 |
margin: number |
|
56594fac1dab
vscode: added dynamic and state output set margin messages to vscode extension;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
75263
diff
changeset
|
95 |
} |
|
56594fac1dab
vscode: added dynamic and state output set margin messages to vscode extension;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
75263
diff
changeset
|
96 |
|
|
56594fac1dab
vscode: added dynamic and state output set margin messages to vscode extension;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
75263
diff
changeset
|
97 |
export const state_set_margin_type = |
|
56594fac1dab
vscode: added dynamic and state output set margin messages to vscode extension;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
75263
diff
changeset
|
98 |
new NotificationType<State_Set_Margin>("PIDE/state_set_margin")
|
|
56594fac1dab
vscode: added dynamic and state output set margin messages to vscode extension;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
75263
diff
changeset
|
99 |
|
| 66096 | 100 |
export interface State_Id |
101 |
{
|
|
102 |
id: number |
|
103 |
} |
|
104 |
||
| 66211 | 105 |
export interface Auto_Update |
106 |
{
|
|
107 |
id: number |
|
108 |
enabled: boolean |
|
109 |
} |
|
110 |
||
|
81035
56594fac1dab
vscode: added dynamic and state output set margin messages to vscode extension;
Thomas Lindae <thomas.lindae@in.tum.de>
parents:
75263
diff
changeset
|
111 |
export const state_init_type = new RequestType0("PIDE/state_init")
|
|
75134
c04ccea8bdd2
update VSCode plugin dependencies;
Fabian Huch <huch@in.tum.de>
parents:
75126
diff
changeset
|
112 |
export const state_exit_type = new NotificationType<State_Id>("PIDE/state_exit")
|
|
c04ccea8bdd2
update VSCode plugin dependencies;
Fabian Huch <huch@in.tum.de>
parents:
75126
diff
changeset
|
113 |
export const state_locate_type = new NotificationType<State_Id>("PIDE/state_locate")
|
|
c04ccea8bdd2
update VSCode plugin dependencies;
Fabian Huch <huch@in.tum.de>
parents:
75126
diff
changeset
|
114 |
export const state_update_type = new NotificationType<State_Id>("PIDE/state_update")
|
| 83375 | 115 |
export const state_auto_update_type = new NotificationType<Auto_Update>("PIDE/state_auto_update")
|
| 66096 | 116 |
|
117 |
||
| 65983 | 118 |
/* preview */ |
|
65977
c51b74be23b6
provide preview content on Scala side (similar to output);
wenzelm
parents:
65201
diff
changeset
|
119 |
|
| 65983 | 120 |
export interface Preview_Request |
|
65977
c51b74be23b6
provide preview content on Scala side (similar to output);
wenzelm
parents:
65201
diff
changeset
|
121 |
{
|
| 65983 | 122 |
uri: string |
123 |
column: number |
|
124 |
} |
|
125 |
||
126 |
export interface Preview_Response |
|
127 |
{
|
|
128 |
uri: string |
|
129 |
column: number |
|
130 |
label: string |
|
|
65977
c51b74be23b6
provide preview content on Scala side (similar to output);
wenzelm
parents:
65201
diff
changeset
|
131 |
content: string |
|
c51b74be23b6
provide preview content on Scala side (similar to output);
wenzelm
parents:
65201
diff
changeset
|
132 |
} |
|
c51b74be23b6
provide preview content on Scala side (similar to output);
wenzelm
parents:
65201
diff
changeset
|
133 |
|
| 83375 | 134 |
export const preview_request_type = |
135 |
new NotificationType<Preview_Request>("PIDE/preview_request")
|
|
136 |
||
137 |
export const preview_response_type = |
|
138 |
new NotificationType<Preview_Response>("PIDE/preview_response")
|
|
139 |
||
140 |
||
141 |
/* symbols */ |
|
142 |
||
|
83363
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
143 |
export interface Symbol_Entry {
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
144 |
name: string; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
145 |
abbrevs: string[]; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
146 |
groups: string[]; |
| 83370 | 147 |
code?: number; |
148 |
font?: string; |
|
|
83363
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
149 |
symbol: string; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
150 |
argument: string; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
151 |
decoded: string; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
152 |
} |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
153 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
154 |
export interface Symbols_Response {
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
155 |
symbols: Symbol_Entry []; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
156 |
abbrevs_from_Thy: [string, string][]; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
157 |
} |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
158 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
159 |
export const symbols_response_type = |
|
83376
d9c64b2af247
tuned quotes: follow Isabelle majority style, instead of JS/TS;
wenzelm
parents:
83375
diff
changeset
|
160 |
new NotificationType<Symbols_Response>("PIDE/symbols_response");
|
|
83363
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
161 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
162 |
export interface InitRequest {
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
163 |
init: boolean; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
164 |
} |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
165 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
166 |
export const symbols_request_type = |
| 83375 | 167 |
new NotificationType<InitRequest>("PIDE/symbols_panel_request")
|
|
83363
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
168 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
169 |
|
| 83375 | 170 |
/* documentation */ |
171 |
||
|
83363
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
172 |
export const documentation_request_type = |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
173 |
new NotificationType<InitRequest>("PIDE/documentation_request")
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
174 |
|
| 83378 | 175 |
export interface Doc_Entry {
|
|
83388
8d90bd0e4f39
more accurate Doc_Entry: print_html like Isabelle/jEdit, proper platform_path;
wenzelm
parents:
83378
diff
changeset
|
176 |
print_html: string; |
|
8d90bd0e4f39
more accurate Doc_Entry: print_html like Isabelle/jEdit, proper platform_path;
wenzelm
parents:
83378
diff
changeset
|
177 |
platform_path: string; |
| 83378 | 178 |
} |
179 |
||
180 |
export interface Doc_Section {
|
|
181 |
title: string; |
|
182 |
important: boolean; |
|
183 |
entries: Array<Doc_Entry>; |
|
184 |
} |
|
185 |
||
|
83363
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
186 |
export interface Documentation_Response {
|
| 83378 | 187 |
sections: Array<Doc_Section>; |
|
83363
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
188 |
} |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
189 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
190 |
export const documentation_response_type = |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
191 |
new NotificationType<Documentation_Response>("PIDE/documentation_response");
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
192 |
|
| 83375 | 193 |
|
194 |
/* Sledgehammer */ |
|
195 |
||
|
83363
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
196 |
export interface SledgehammerApplyRequest {
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
197 |
provers: string; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
198 |
isar: boolean; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
199 |
try0: boolean; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
200 |
purpose: number; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
201 |
} |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
202 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
203 |
export interface SledgehammerStatus {
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
204 |
message: string; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
205 |
} |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
206 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
207 |
export interface SledgehammerApplyResult {
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
208 |
content: string; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
209 |
position: {
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
210 |
uri: string; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
211 |
line: number; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
212 |
character: number; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
213 |
}; |
| 83373 | 214 |
sendback_id: number; |
|
83363
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
215 |
state_location: {
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
216 |
uri: string; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
217 |
line: number; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
218 |
character: number; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
219 |
}; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
220 |
} |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
221 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
222 |
export interface SledgehammerLocate {
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
223 |
position: {
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
224 |
uri: string; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
225 |
line: number; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
226 |
character: number; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
227 |
}; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
228 |
} |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
229 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
230 |
export interface SledgehammerInsertPosition {
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
231 |
position: {
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
232 |
uri: string; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
233 |
line: number; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
234 |
character: number; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
235 |
}; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
236 |
} |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
237 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
238 |
export interface Sledgehammer_Provers {
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
239 |
provers: string; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
240 |
} |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
241 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
242 |
export interface SledgehammerNoSuchProver {
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
243 |
provers: string[]; |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
244 |
} |
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
245 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
246 |
export const sledgehammer_request_type = |
|
83376
d9c64b2af247
tuned quotes: follow Isabelle majority style, instead of JS/TS;
wenzelm
parents:
83375
diff
changeset
|
247 |
new NotificationType<SledgehammerApplyRequest>("PIDE/sledgehammer_request");
|
|
83363
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
248 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
249 |
export const sledgehammer_cancel_type = |
|
83376
d9c64b2af247
tuned quotes: follow Isabelle majority style, instead of JS/TS;
wenzelm
parents:
83375
diff
changeset
|
250 |
new NotificationType<void>("PIDE/sledgehammer_cancel_request");
|
|
83363
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
251 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
252 |
export const sledgehammer_provers = |
|
83401
1d9b1ca7977e
dismantle redundant sledgehammer history in Isabelle/Scala, which does not quite work --- and is already done via vscode.setState / vscode.getState;
wenzelm
parents:
83388
diff
changeset
|
253 |
new NotificationType<void>("PIDE/sledgehammer_provers_request");
|
| 83370 | 254 |
|
|
83363
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
255 |
export const sledgehammer_provers_response = |
|
83376
d9c64b2af247
tuned quotes: follow Isabelle majority style, instead of JS/TS;
wenzelm
parents:
83375
diff
changeset
|
256 |
new NotificationType<Sledgehammer_Provers>("PIDE/sledgehammer_provers_response");
|
|
83363
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
257 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
258 |
export const sledgehammer_no_such_prover_type = |
|
83376
d9c64b2af247
tuned quotes: follow Isabelle majority style, instead of JS/TS;
wenzelm
parents:
83375
diff
changeset
|
259 |
new NotificationType<SledgehammerNoSuchProver>("PIDE/sledgehammer_noProver_response");
|
|
83363
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
260 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
261 |
export const sledgehammer_status_type = |
|
83376
d9c64b2af247
tuned quotes: follow Isabelle majority style, instead of JS/TS;
wenzelm
parents:
83375
diff
changeset
|
262 |
new NotificationType<SledgehammerStatus>("PIDE/sledgehammer_status_response");
|
|
83363
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
263 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
264 |
export const sledgehammer_apply_response_type = |
|
83376
d9c64b2af247
tuned quotes: follow Isabelle majority style, instead of JS/TS;
wenzelm
parents:
83375
diff
changeset
|
265 |
new NotificationType<SledgehammerApplyResult>("PIDE/sledgehammer_apply_response");
|
|
83363
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
266 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
267 |
export const sledgehammer_locate_response_type = |
|
83376
d9c64b2af247
tuned quotes: follow Isabelle majority style, instead of JS/TS;
wenzelm
parents:
83375
diff
changeset
|
268 |
new NotificationType<SledgehammerLocate>("PIDE/sledgehammer_locate_response");
|
|
83363
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
269 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
270 |
export const sledgehammer_insert_position_response_type = |
|
83376
d9c64b2af247
tuned quotes: follow Isabelle majority style, instead of JS/TS;
wenzelm
parents:
83375
diff
changeset
|
271 |
new NotificationType<SledgehammerInsertPosition>("PIDE/sledgehammer_insert_position_response");
|
|
83363
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
272 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
273 |
export const sledgehammer_no_proof_context_type = |
|
83376
d9c64b2af247
tuned quotes: follow Isabelle majority style, instead of JS/TS;
wenzelm
parents:
83375
diff
changeset
|
274 |
new NotificationType<void>("PIDE/sledgehammer_no_proof_context");
|
|
83363
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
275 |
|
|
486e094b676c
various improvements of Isabelle/VSCode: original changeset by Diana Korchmar, LMU München;
wenzelm
parents:
81044
diff
changeset
|
276 |
|
| 66138 | 277 |
/* spell checker */ |
278 |
||
279 |
export const include_word_type = |
|
|
75134
c04ccea8bdd2
update VSCode plugin dependencies;
Fabian Huch <huch@in.tum.de>
parents:
75126
diff
changeset
|
280 |
new NotificationType<void>("PIDE/include_word")
|
| 66138 | 281 |
|
282 |
export const include_word_permanently_type = |
|
|
75134
c04ccea8bdd2
update VSCode plugin dependencies;
Fabian Huch <huch@in.tum.de>
parents:
75126
diff
changeset
|
283 |
new NotificationType<void>("PIDE/include_word_permanently")
|
| 66138 | 284 |
|
285 |
export const exclude_word_type = |
|
|
75134
c04ccea8bdd2
update VSCode plugin dependencies;
Fabian Huch <huch@in.tum.de>
parents:
75126
diff
changeset
|
286 |
new NotificationType<void>("PIDE/exclude_word")
|
| 66138 | 287 |
|
288 |
export const exclude_word_permanently_type = |
|
|
75134
c04ccea8bdd2
update VSCode plugin dependencies;
Fabian Huch <huch@in.tum.de>
parents:
75126
diff
changeset
|
289 |
new NotificationType<void>("PIDE/exclude_word_permanently")
|
| 66138 | 290 |
|
291 |
export const reset_words_type = |
|
|
75134
c04ccea8bdd2
update VSCode plugin dependencies;
Fabian Huch <huch@in.tum.de>
parents:
75126
diff
changeset
|
292 |
new NotificationType<void>("PIDE/reset_words")
|