perl_lsp_feature_ids/
lib.rs1pub const LSP_COMPLETION: &str = "lsp.completion";
9pub const LSP_HOVER: &str = "lsp.hover";
11pub const LSP_SIGNATURE_HELP: &str = "lsp.signature_help";
13pub const LSP_DEFINITION: &str = "lsp.definition";
15pub const LSP_DECLARATION: &str = "lsp.declaration";
17pub const LSP_EXECUTE_COMMAND: &str = "lsp.execute_command";
19pub const LSP_TYPE_DEFINITION: &str = "lsp.type_definition";
21pub const LSP_IMPLEMENTATION: &str = "lsp.implementation";
23pub const LSP_REFERENCES: &str = "lsp.references";
25pub const LSP_DOCUMENT_SYMBOL: &str = "lsp.document_symbol";
27pub const LSP_WORKSPACE_SYMBOL: &str = "lsp.workspace_symbol";
29pub const LSP_CODE_ACTION: &str = "lsp.code_action";
31pub const LSP_CODE_LENS: &str = "lsp.code_lens";
33pub const LSP_FORMATTING: &str = "lsp.formatting";
35pub const LSP_RANGE_FORMATTING: &str = "lsp.range_formatting";
37pub const LSP_RANGES_FORMATTING: &str = "lsp.ranges_formatting";
39pub const LSP_ON_TYPE_FORMATTING: &str = "lsp.on_type_formatting";
41pub const LSP_RENAME: &str = "lsp.rename";
43pub const LSP_DOCUMENT_LINK: &str = "lsp.document_link";
45pub const LSP_FOLDING_RANGE: &str = "lsp.folding_range";
47pub const LSP_SELECTION_RANGE: &str = "lsp.selection_range";
49pub const LSP_INLAY_HINT: &str = "lsp.inlay_hint";
51pub const LSP_SEMANTIC_TOKENS: &str = "lsp.semantic_tokens";
53pub const LSP_TYPE_HIERARCHY: &str = "lsp.type_hierarchy";
55pub const LSP_CALL_HIERARCHY: &str = "lsp.call_hierarchy";
57pub const LSP_PULL_DIAGNOSTICS: &str = "lsp.pull_diagnostics";
59pub const LSP_INLINE_COMPLETION: &str = "lsp.inline_completion";
61pub const LSP_INLINE_VALUE: &str = "lsp.inline_value";
63pub const LSP_DOCUMENT_COLOR: &str = "lsp.document_color";
65pub const LSP_COLOR: &str = "lsp.color";
67pub const LSP_LINKED_EDITING_RANGE: &str = "lsp.linked_editing_range";
69pub const LSP_MONIKER: &str = "lsp.moniker";
71pub const LSP_INLINE_VALUES: &str = "lsp.inline_values";
73pub const LSP_NOTEBOOK_DOCUMENT_SYNC: &str = "lsp.notebook_document_sync";
75pub const LSP_NOTEBOOK_CELL_EXECUTION: &str = "lsp.notebook_cell_execution";
77pub const LSP_PROGRESS: &str = "lsp.progress";
79pub const LSP_SHOW_MESSAGE: &str = "lsp.show_message";
81pub const LSP_LOG_MESSAGE: &str = "lsp.log_message";
83pub const LSP_WORK_DONE_PROGRESS: &str = "lsp.work_done_progress";
85pub const LSP_TEXT_DOCUMENT_SYNC: &str = "lsp.text_document_sync";
87pub const LSP_DID_SAVE: &str = "lsp.did_save";
89pub const LSP_WILL_SAVE: &str = "lsp.will_save";
91pub const LSP_WILL_SAVE_WAIT_UNTIL: &str = "lsp.will_save_wait_until";
93pub const LSP_DOCUMENT_HIGHLIGHT: &str = "lsp.document_highlight";
95pub const LSP_PREPARE_RENAME: &str = "lsp.prepare_rename";
97pub const LSP_COLOR_PRESENTATION: &str = "lsp.color_presentation";
99pub const LSP_COMPLETION_ITEM_RESOLVE: &str = "lsp.completion_item_resolve";
101pub const LSP_CODE_ACTION_RESOLVE: &str = "lsp.code_action_resolve";
103pub const LSP_CODE_LENS_RESOLVE: &str = "lsp.code_lens_resolve";
105pub const LSP_DOCUMENT_LINK_RESOLVE: &str = "lsp.document_link_resolve";
107pub const LSP_INLAY_HINT_RESOLVE: &str = "lsp.inlay_hint_resolve";
109pub const LSP_WORKSPACE_SYMBOL_RESOLVE: &str = "lsp.workspace_symbol_resolve";
111pub const LSP_CODE_LENS_REFRESH: &str = "lsp.code_lens_refresh";
113pub const LSP_SEMANTIC_TOKENS_REFRESH: &str = "lsp.semantic_tokens_refresh";
115pub const LSP_INLAY_HINT_REFRESH: &str = "lsp.inlay_hint_refresh";
117pub const LSP_INLINE_VALUE_REFRESH: &str = "lsp.inline_value_refresh";
119pub const LSP_DIAGNOSTIC_REFRESH: &str = "lsp.diagnostic_refresh";
121pub const LSP_FOLDING_RANGE_REFRESH: &str = "lsp.folding_range_refresh";
123
124pub const DAP_CORE: &str = "dap.core";
126pub const DAP_INLINE_VALUES: &str = "dap.inline_values";
128pub const DAP_BREAKPOINTS_BASIC: &str = "dap.breakpoints.basic";
130
131#[cfg(test)]
132mod tests {
133 use super::*;
134
135 #[test]
136 fn canonical_document_color_is_authoritative_id() {
137 assert_ne!(LSP_DOCUMENT_COLOR, LSP_COLOR);
138 assert_eq!(LSP_DOCUMENT_COLOR, "lsp.document_color");
139 assert_eq!(LSP_COLOR, "lsp.color");
140 assert_eq!(LSP_EXECUTE_COMMAND, "lsp.execute_command");
141 }
142
143 #[test]
144 fn feature_id_smoke_list_is_stable() {
145 assert_eq!(LSP_COMPLETION, "lsp.completion");
146 assert_eq!(LSP_FORMATTING, "lsp.formatting");
147 assert_eq!(LSP_INLINE_COMPLETION, "lsp.inline_completion");
148 assert_eq!(DAP_CORE, "dap.core");
149 }
150}