quantalang 1.0.0

The QuantaLang compiler — an effects-oriented systems language with multi-backend codegen (C, HLSL, GLSL, SPIR-V, LLVM IR, WebAssembly, x86-64, ARM64)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
// ===============================================================================
// QUANTALANG LSP MESSAGE TYPES
// ===============================================================================
// Copyright (c) 2022-2026 Zain Dana Harper. MIT License.
// ===============================================================================

//! JSON-RPC message types for LSP communication.

use super::types::*;
use std::collections::HashMap;

// =============================================================================
// JSON-RPC BASE TYPES
// =============================================================================

/// JSON-RPC version.
pub const JSONRPC_VERSION: &str = "2.0";

/// A JSON-RPC message.
#[derive(Debug, Clone)]
pub enum Message {
    /// A request message.
    Request(RequestMessage),
    /// A response message.
    Response(ResponseMessage),
    /// A notification message.
    Notification(NotificationMessage),
}

/// A request message.
#[derive(Debug, Clone)]
pub struct RequestMessage {
    /// JSON-RPC version.
    pub jsonrpc: String,
    /// The request ID.
    pub id: RequestId,
    /// The method to be invoked.
    pub method: String,
    /// The method's params.
    pub params: Option<Params>,
}

impl RequestMessage {
    pub fn new(id: impl Into<RequestId>, method: impl Into<String>) -> Self {
        Self {
            jsonrpc: JSONRPC_VERSION.to_string(),
            id: id.into(),
            method: method.into(),
            params: None,
        }
    }

    pub fn with_params(mut self, params: Params) -> Self {
        self.params = Some(params);
        self
    }
}

/// A response message.
#[derive(Debug, Clone)]
pub struct ResponseMessage {
    /// JSON-RPC version.
    pub jsonrpc: String,
    /// The request ID.
    pub id: RequestId,
    /// The result (success).
    pub result: Option<ResponseResult>,
    /// The error (failure).
    pub error: Option<ResponseError>,
}

impl ResponseMessage {
    pub fn success(id: RequestId, result: ResponseResult) -> Self {
        Self {
            jsonrpc: JSONRPC_VERSION.to_string(),
            id,
            result: Some(result),
            error: None,
        }
    }

    pub fn error(id: RequestId, error: ResponseError) -> Self {
        Self {
            jsonrpc: JSONRPC_VERSION.to_string(),
            id,
            result: None,
            error: Some(error),
        }
    }
}

/// A notification message.
#[derive(Debug, Clone)]
pub struct NotificationMessage {
    /// JSON-RPC version.
    pub jsonrpc: String,
    /// The method to be invoked.
    pub method: String,
    /// The method's params.
    pub params: Option<Params>,
}

impl NotificationMessage {
    pub fn new(method: impl Into<String>) -> Self {
        Self {
            jsonrpc: JSONRPC_VERSION.to_string(),
            method: method.into(),
            params: None,
        }
    }

    pub fn with_params(mut self, params: Params) -> Self {
        self.params = Some(params);
        self
    }
}

// =============================================================================
// PARAMS AND RESULTS
// =============================================================================

/// Generic params value.
#[derive(Debug, Clone)]
pub enum Params {
    /// Null params.
    None,
    /// Boolean.
    Bool(bool),
    /// Number (integer).
    Integer(i64),
    /// Number (float).
    Float(f64),
    /// String.
    String(String),
    /// Array of params.
    Array(Vec<Params>),
    /// Object with named params.
    Object(HashMap<String, Params>),
}

impl Params {
    pub fn as_bool(&self) -> Option<bool> {
        match self {
            Params::Bool(b) => Some(*b),
            _ => None,
        }
    }

    pub fn as_i64(&self) -> Option<i64> {
        match self {
            Params::Integer(n) => Some(*n),
            _ => None,
        }
    }

    pub fn as_str(&self) -> Option<&str> {
        match self {
            Params::String(s) => Some(s),
            _ => None,
        }
    }

    pub fn as_array(&self) -> Option<&[Params]> {
        match self {
            Params::Array(arr) => Some(arr),
            _ => None,
        }
    }

    pub fn as_object(&self) -> Option<&HashMap<String, Params>> {
        match self {
            Params::Object(obj) => Some(obj),
            _ => None,
        }
    }

    pub fn get(&self, key: &str) -> Option<&Params> {
        self.as_object().and_then(|obj| obj.get(key))
    }
}

impl Default for Params {
    fn default() -> Self {
        Params::None
    }
}

/// Generic response result.
#[derive(Debug, Clone)]
pub enum ResponseResult {
    /// Null result.
    Null,
    /// Boolean result.
    Bool(bool),
    /// Number result.
    Number(f64),
    /// String result.
    String(String),
    /// Array result.
    Array(Vec<ResponseResult>),
    /// Object result.
    Object(HashMap<String, ResponseResult>),
    /// Initialize result.
    Initialize(InitializeResult),
    /// Completion result.
    Completion(CompletionList),
    /// Hover result.
    Hover(Option<Hover>),
    /// Definition result.
    Definition(Vec<Location>),
    /// References result.
    References(Vec<Location>),
    /// Document symbols result.
    DocumentSymbols(Vec<DocumentSymbol>),
    /// Code actions result.
    CodeActions(Vec<CodeAction>),
    /// Text edits result.
    TextEdits(Vec<TextEdit>),
    /// Workspace edit result.
    WorkspaceEdit(WorkspaceEdit),
    /// Signature help result.
    SignatureHelp(Option<SignatureHelp>),
    /// Folding ranges result.
    FoldingRanges(Vec<FoldingRange>),
}

/// Response error.
#[derive(Debug, Clone)]
pub struct ResponseError {
    /// Error code.
    pub code: ErrorCode,
    /// Error message.
    pub message: String,
    /// Additional data.
    pub data: Option<String>,
}

impl ResponseError {
    pub fn new(code: ErrorCode, message: impl Into<String>) -> Self {
        Self {
            code,
            message: message.into(),
            data: None,
        }
    }

    pub fn parse_error(message: impl Into<String>) -> Self {
        Self::new(ErrorCode::ParseError, message)
    }

    pub fn invalid_request(message: impl Into<String>) -> Self {
        Self::new(ErrorCode::InvalidRequest, message)
    }

    pub fn method_not_found(message: impl Into<String>) -> Self {
        Self::new(ErrorCode::MethodNotFound, message)
    }

    pub fn invalid_params(message: impl Into<String>) -> Self {
        Self::new(ErrorCode::InvalidParams, message)
    }

    pub fn internal_error(message: impl Into<String>) -> Self {
        Self::new(ErrorCode::InternalError, message)
    }
}

/// Error codes.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum ErrorCode {
    /// Parse error.
    ParseError = -32700,
    /// Invalid request.
    InvalidRequest = -32600,
    /// Method not found.
    MethodNotFound = -32601,
    /// Invalid params.
    InvalidParams = -32602,
    /// Internal error.
    InternalError = -32603,

    // LSP specific errors
    /// Server not initialized.
    ServerNotInitialized = -32002,
    /// Unknown error code.
    UnknownErrorCode = -32001,

    /// Request cancelled.
    RequestCancelled = -32800,
    /// Content modified.
    ContentModified = -32801,
    /// Server cancelled.
    ServerCancelled = -32802,
    /// Request failed.
    RequestFailed = -32803,
}

// =============================================================================
// LIFECYCLE MESSAGES
// =============================================================================

/// Initialize request params.
#[derive(Debug, Clone)]
pub struct InitializeParams {
    /// Process ID of the parent process.
    pub process_id: Option<i32>,
    /// Root path (deprecated).
    pub root_path: Option<String>,
    /// Root URI.
    pub root_uri: Option<DocumentUri>,
    /// Client capabilities.
    pub capabilities: ClientCapabilities,
    /// Initialization options.
    pub initialization_options: Option<Params>,
    /// Trace setting.
    pub trace: Option<TraceValue>,
    /// Workspace folders.
    pub workspace_folders: Option<Vec<WorkspaceFolder>>,
}

/// Initialize result.
#[derive(Debug, Clone)]
pub struct InitializeResult {
    /// Server capabilities.
    pub capabilities: ServerCapabilities,
    /// Server info.
    pub server_info: Option<ServerInfo>,
}

/// Server info.
#[derive(Debug, Clone)]
pub struct ServerInfo {
    /// Server name.
    pub name: String,
    /// Server version.
    pub version: Option<String>,
}

/// Client capabilities.
#[derive(Debug, Clone, Default)]
pub struct ClientCapabilities {
    /// Text document capabilities.
    pub text_document: Option<TextDocumentClientCapabilities>,
    /// Workspace capabilities.
    pub workspace: Option<WorkspaceClientCapabilities>,
    /// Window capabilities.
    pub window: Option<WindowClientCapabilities>,
    /// General capabilities.
    pub general: Option<GeneralClientCapabilities>,
}

/// Text document client capabilities.
#[derive(Debug, Clone, Default)]
pub struct TextDocumentClientCapabilities {
    /// Synchronization capabilities.
    pub synchronization: Option<SynchronizationCapabilities>,
    /// Completion capabilities.
    pub completion: Option<CompletionClientCapabilities>,
    /// Hover capabilities.
    pub hover: Option<HoverClientCapabilities>,
}

/// Synchronization capabilities.
#[derive(Debug, Clone, Default)]
pub struct SynchronizationCapabilities {
    /// Dynamic registration.
    pub dynamic_registration: bool,
    /// Will save support.
    pub will_save: bool,
    /// Will save wait until support.
    pub will_save_wait_until: bool,
    /// Did save support.
    pub did_save: bool,
}

/// Completion client capabilities.
#[derive(Debug, Clone, Default)]
pub struct CompletionClientCapabilities {
    /// Dynamic registration.
    pub dynamic_registration: bool,
    /// Snippet support.
    pub snippet_support: bool,
    /// Commit characters support.
    pub commit_characters_support: bool,
    /// Documentation format.
    pub documentation_format: Vec<MarkupKind>,
    /// Preselect support.
    pub preselect_support: bool,
}

/// Hover client capabilities.
#[derive(Debug, Clone, Default)]
pub struct HoverClientCapabilities {
    /// Dynamic registration.
    pub dynamic_registration: bool,
    /// Content format.
    pub content_format: Vec<MarkupKind>,
}

/// Workspace client capabilities.
#[derive(Debug, Clone, Default)]
pub struct WorkspaceClientCapabilities {
    /// Apply edit support.
    pub apply_edit: bool,
    /// Workspace edit capabilities.
    pub workspace_edit: Option<WorkspaceEditClientCapabilities>,
    /// Did change configuration support.
    pub did_change_configuration: Option<DidChangeConfigurationCapabilities>,
}

/// Workspace edit capabilities.
#[derive(Debug, Clone, Default)]
pub struct WorkspaceEditClientCapabilities {
    /// Document changes support.
    pub document_changes: bool,
}

/// Did change configuration capabilities.
#[derive(Debug, Clone, Default)]
pub struct DidChangeConfigurationCapabilities {
    /// Dynamic registration.
    pub dynamic_registration: bool,
}

/// Window client capabilities.
#[derive(Debug, Clone, Default)]
pub struct WindowClientCapabilities {
    /// Work done progress support.
    pub work_done_progress: bool,
    /// Show message support.
    pub show_message: Option<ShowMessageRequestCapabilities>,
}

/// Show message request capabilities.
#[derive(Debug, Clone, Default)]
pub struct ShowMessageRequestCapabilities {
    /// Message action item support.
    pub message_action_item: Option<MessageActionItemCapabilities>,
}

/// Message action item capabilities.
#[derive(Debug, Clone, Default)]
pub struct MessageActionItemCapabilities {
    /// Additional properties support.
    pub additional_properties_support: bool,
}

/// General client capabilities.
#[derive(Debug, Clone, Default)]
pub struct GeneralClientCapabilities {
    /// Stale request support.
    pub stale_request_support: Option<StaleRequestSupportCapabilities>,
    /// Regular expressions.
    pub regular_expressions: Option<RegularExpressionsCapabilities>,
    /// Markdown support.
    pub markdown: Option<MarkdownClientCapabilities>,
}

/// Stale request support capabilities.
#[derive(Debug, Clone, Default)]
pub struct StaleRequestSupportCapabilities {
    /// Cancel.
    pub cancel: bool,
    /// Retry on content modified.
    pub retry_on_content_modified: Vec<String>,
}

/// Regular expressions capabilities.
#[derive(Debug, Clone, Default)]
pub struct RegularExpressionsCapabilities {
    /// Engine.
    pub engine: String,
    /// Version.
    pub version: Option<String>,
}

/// Markdown capabilities.
#[derive(Debug, Clone, Default)]
pub struct MarkdownClientCapabilities {
    /// Parser.
    pub parser: String,
    /// Version.
    pub version: Option<String>,
}

/// Trace value.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum TraceValue {
    /// Off.
    Off,
    /// Messages only.
    Messages,
    /// Verbose.
    Verbose,
}

/// Workspace folder.
#[derive(Debug, Clone)]
pub struct WorkspaceFolder {
    /// The URI.
    pub uri: DocumentUri,
    /// The name.
    pub name: String,
}

// =============================================================================
// TEXT DOCUMENT MESSAGES
// =============================================================================

/// Did open text document params.
#[derive(Debug, Clone)]
pub struct DidOpenTextDocumentParams {
    /// The document that was opened.
    pub text_document: TextDocumentItem,
}

/// Did change text document params.
#[derive(Debug, Clone)]
pub struct DidChangeTextDocumentParams {
    /// The document that did change.
    pub text_document: VersionedTextDocumentIdentifier,
    /// The content changes.
    pub content_changes: Vec<TextDocumentContentChangeEvent>,
}

/// Did save text document params.
#[derive(Debug, Clone)]
pub struct DidSaveTextDocumentParams {
    /// The document that was saved.
    pub text_document: TextDocumentIdentifier,
    /// The content (if includeText was set).
    pub text: Option<String>,
}

/// Did close text document params.
#[derive(Debug, Clone)]
pub struct DidCloseTextDocumentParams {
    /// The document that was closed.
    pub text_document: TextDocumentIdentifier,
}

/// Publish diagnostics params.
#[derive(Debug, Clone)]
pub struct PublishDiagnosticsParams {
    /// The URI.
    pub uri: DocumentUri,
    /// The version number (optional).
    pub version: Option<i32>,
    /// The diagnostics.
    pub diagnostics: Vec<Diagnostic>,
}

impl PublishDiagnosticsParams {
    pub fn new(uri: DocumentUri, diagnostics: Vec<Diagnostic>) -> Self {
        Self {
            uri,
            version: None,
            diagnostics,
        }
    }
}

// =============================================================================
// COMPLETION MESSAGES
// =============================================================================

/// Completion params.
#[derive(Debug, Clone)]
pub struct CompletionParams {
    /// Text document position.
    pub text_document_position: TextDocumentPositionParams,
    /// Completion context.
    pub context: Option<CompletionContext>,
}

/// Completion context.
#[derive(Debug, Clone)]
pub struct CompletionContext {
    /// How completion was triggered.
    pub trigger_kind: CompletionTriggerKind,
    /// The trigger character.
    pub trigger_character: Option<String>,
}

/// Completion trigger kind.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(u8)]
pub enum CompletionTriggerKind {
    /// Invoked by user.
    Invoked = 1,
    /// Triggered by trigger character.
    TriggerCharacter = 2,
    /// Re-triggered for incomplete completions.
    TriggerForIncompleteCompletions = 3,
}

// =============================================================================
// CODE ACTION MESSAGES
// =============================================================================

/// Code action params.
#[derive(Debug, Clone)]
pub struct CodeActionParams {
    /// The document.
    pub text_document: TextDocumentIdentifier,
    /// The range to get actions for.
    pub range: Range,
    /// Context carrying additional information.
    pub context: CodeActionContext,
}

/// Code action context.
#[derive(Debug, Clone)]
pub struct CodeActionContext {
    /// Diagnostics.
    pub diagnostics: Vec<Diagnostic>,
    /// Requested code action kinds.
    pub only: Option<Vec<String>>,
    /// The reason why code actions were requested.
    pub trigger_kind: Option<CodeActionTriggerKind>,
}

/// Code action trigger kind.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(u8)]
pub enum CodeActionTriggerKind {
    /// Invoked by user.
    Invoked = 1,
    /// Automatic.
    Automatic = 2,
}

// =============================================================================
// FORMATTING MESSAGES
// =============================================================================

/// Document formatting params.
#[derive(Debug, Clone)]
pub struct DocumentFormattingParams {
    /// The document.
    pub text_document: TextDocumentIdentifier,
    /// Formatting options.
    pub options: FormattingOptions,
}

/// Document range formatting params.
#[derive(Debug, Clone)]
pub struct DocumentRangeFormattingParams {
    /// The document.
    pub text_document: TextDocumentIdentifier,
    /// The range to format.
    pub range: Range,
    /// Formatting options.
    pub options: FormattingOptions,
}

/// Formatting options.
#[derive(Debug, Clone)]
pub struct FormattingOptions {
    /// Tab size.
    pub tab_size: u32,
    /// Insert spaces instead of tabs.
    pub insert_spaces: bool,
    /// Trim trailing whitespace.
    pub trim_trailing_whitespace: bool,
    /// Insert final newline.
    pub insert_final_newline: bool,
    /// Trim final newlines.
    pub trim_final_newlines: bool,
}

impl Default for FormattingOptions {
    fn default() -> Self {
        Self {
            tab_size: 4,
            insert_spaces: true,
            trim_trailing_whitespace: true,
            insert_final_newline: true,
            trim_final_newlines: true,
        }
    }
}

// =============================================================================
// RENAME MESSAGES
// =============================================================================

/// Rename params.
#[derive(Debug, Clone)]
pub struct RenameParams {
    /// Text document position.
    pub text_document_position: TextDocumentPositionParams,
    /// The new name.
    pub new_name: String,
}

/// Prepare rename params.
#[derive(Debug, Clone)]
pub struct PrepareRenameParams {
    /// The text document.
    pub text_document: TextDocumentIdentifier,
    /// The position.
    pub position: Position,
}

/// Prepare rename result.
#[derive(Debug, Clone)]
pub struct PrepareRenameResult {
    /// The range to rename.
    pub range: Range,
    /// Placeholder text.
    pub placeholder: String,
}

// =============================================================================
// LSP METHOD NAMES
// =============================================================================

/// LSP method names.
pub mod methods {
    // Lifecycle
    pub const INITIALIZE: &str = "initialize";
    pub const INITIALIZED: &str = "initialized";
    pub const SHUTDOWN: &str = "shutdown";
    pub const EXIT: &str = "exit";

    // Text Document
    pub const DID_OPEN: &str = "textDocument/didOpen";
    pub const DID_CHANGE: &str = "textDocument/didChange";
    pub const DID_SAVE: &str = "textDocument/didSave";
    pub const DID_CLOSE: &str = "textDocument/didClose";

    // Language Features
    pub const COMPLETION: &str = "textDocument/completion";
    pub const COMPLETION_RESOLVE: &str = "completionItem/resolve";
    pub const HOVER: &str = "textDocument/hover";
    pub const SIGNATURE_HELP: &str = "textDocument/signatureHelp";
    pub const DEFINITION: &str = "textDocument/definition";
    pub const TYPE_DEFINITION: &str = "textDocument/typeDefinition";
    pub const IMPLEMENTATION: &str = "textDocument/implementation";
    pub const REFERENCES: &str = "textDocument/references";
    pub const DOCUMENT_HIGHLIGHT: &str = "textDocument/documentHighlight";
    pub const DOCUMENT_SYMBOL: &str = "textDocument/documentSymbol";
    pub const CODE_ACTION: &str = "textDocument/codeAction";
    pub const CODE_LENS: &str = "textDocument/codeLens";
    pub const CODE_LENS_RESOLVE: &str = "codeLens/resolve";
    pub const FORMATTING: &str = "textDocument/formatting";
    pub const RANGE_FORMATTING: &str = "textDocument/rangeFormatting";
    pub const RENAME: &str = "textDocument/rename";
    pub const PREPARE_RENAME: &str = "textDocument/prepareRename";
    pub const FOLDING_RANGE: &str = "textDocument/foldingRange";
    pub const SEMANTIC_TOKENS_FULL: &str = "textDocument/semanticTokens/full";

    // Workspace
    pub const WORKSPACE_SYMBOL: &str = "workspace/symbol";
    pub const EXECUTE_COMMAND: &str = "workspace/executeCommand";
    pub const APPLY_EDIT: &str = "workspace/applyEdit";

    // Notifications (server -> client)
    pub const PUBLISH_DIAGNOSTICS: &str = "textDocument/publishDiagnostics";
    pub const SHOW_MESSAGE: &str = "window/showMessage";
    pub const LOG_MESSAGE: &str = "window/logMessage";

    // Progress
    pub const WORK_DONE_PROGRESS_CREATE: &str = "window/workDoneProgress/create";
    pub const PROGRESS: &str = "$/progress";

    // Cancellation
    pub const CANCEL_REQUEST: &str = "$/cancelRequest";
}