fix: don't claim to support inlayHint and codeLens refresh in lsp init
This avoids noise when running rust-analyser.
This commit is contained in:
		
							parent
							
								
									dc25a0ea14
								
							
						
					
					
						commit
						2c3e8179dc
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -936,7 +936,7 @@ fn send_lsp_init_request(self: *Self, lsp: LSP, project_path: []const u8, projec
 | 
			
		|||
                    .tagSupport = .{ .valueSet = .{1} },
 | 
			
		||||
                    .resolveSupport = .{ .properties = .{"location.range"} },
 | 
			
		||||
                },
 | 
			
		||||
                .codeLens = .{ .refreshSupport = true },
 | 
			
		||||
                .codeLens = .{ .refreshSupport = false },
 | 
			
		||||
                .executeCommand = .{ .dynamicRegistration = true },
 | 
			
		||||
                // .didChangeConfiguration = .{ .dynamicRegistration = true },
 | 
			
		||||
                .workspaceFolders = true,
 | 
			
		||||
| 
						 | 
				
			
			@ -950,8 +950,8 @@ fn send_lsp_init_request(self: *Self, lsp: LSP, project_path: []const u8, projec
 | 
			
		|||
                    .willRename = true,
 | 
			
		||||
                    .willDelete = true,
 | 
			
		||||
                },
 | 
			
		||||
                .inlineValue = .{ .refreshSupport = true },
 | 
			
		||||
                .inlayHint = .{ .refreshSupport = true },
 | 
			
		||||
                .inlineValue = .{ .refreshSupport = false },
 | 
			
		||||
                .inlayHint = .{ .refreshSupport = false },
 | 
			
		||||
                .diagnostics = .{ .refreshSupport = true },
 | 
			
		||||
            },
 | 
			
		||||
            .textDocument = .{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue