| 386 | |
| 387 | #[cfg(not(feature = "lsp"))] |
| 388 | fn format_lsp_placeholder( |
| 389 | operation: &LspOperation, |
| 390 | file_path: &str, |
| 391 | line: u32, |
| 392 | character: u32, |
| 393 | ) -> String { |
| 394 | match operation { |
| 395 | LspOperation::GoToDefinition => { |
| 396 | format!("LSP goToDefinition at {}:{}:{}\n\nEnable 'lsp' feature and configure LSP servers for real LSP support.", file_path, line + 1, character + 1) |
| 397 | } |
| 398 | LspOperation::FindReferences => { |
| 399 | format!("LSP findReferences at {}:{}:{}\n\nEnable 'lsp' feature and configure LSP servers for real LSP support.", file_path, line + 1, character + 1) |
| 400 | } |
| 401 | LspOperation::Hover => { |
| 402 | format!("LSP hover at {}:{}:{}\n\nEnable 'lsp' feature and configure LSP servers for real LSP support.", file_path, line + 1, character + 1) |
| 403 | } |
| 404 | LspOperation::DocumentSymbol => { |
| 405 | format!("Document symbols for: {}\n\nEnable 'lsp' feature and configure LSP servers for real LSP support.", file_path) |
| 406 | } |
| 407 | LspOperation::WorkspaceSymbol => { |
| 408 | "LSP workspace symbols\n\nEnable 'lsp' feature and configure LSP servers for real LSP support.".to_string() |
| 409 | } |
| 410 | LspOperation::GoToImplementation => { |
| 411 | format!("LSP goToImplementation at {}:{}:{}\n\nEnable 'lsp' feature and configure LSP servers for real LSP support.", file_path, line + 1, character + 1) |
| 412 | } |
| 413 | LspOperation::TypeDefinition => { |
| 414 | format!("LSP typeDefinition at {}:{}:{}\n\nEnable 'lsp' feature and configure LSP servers for real LSP support.", file_path, line + 1, character + 1) |
| 415 | } |
| 416 | LspOperation::Rename => { |
| 417 | format!("LSP rename at {}:{}:{}\n\nEnable 'lsp' feature and configure LSP servers for real LSP support.", file_path, line + 1, character + 1) |
| 418 | } |
| 419 | LspOperation::Diagnostics => { |
| 420 | format!("Diagnostics for: {}\n\nEnable 'lsp' feature and configure LSP servers for real LSP support.", file_path) |
| 421 | } |
| 422 | LspOperation::PrepareCallHierarchy => { |
| 423 | format!("LSP prepareCallHierarchy at {}:{}:{}\n\nEnable 'lsp' feature and configure LSP servers for real LSP support.", file_path, line + 1, character + 1) |
| 424 | } |
| 425 | LspOperation::IncomingCalls => { |
| 426 | format!("LSP incomingCalls at {}:{}:{}\n\nEnable 'lsp' feature and configure LSP servers for real LSP support.", file_path, line + 1, character + 1) |
| 427 | } |
| 428 | LspOperation::OutgoingCalls => { |
| 429 | format!("LSP outgoingCalls at {}:{}:{}\n\nEnable 'lsp' feature and configure LSP servers for real LSP support.", file_path, line + 1, character + 1) |
| 430 | } |
| 431 | } |
| 432 | } |