mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-11-03 13:13:18 +00:00 
			
		
		
		
	minor: format editor/code
This commit is contained in:
		
							parent
							
								
									bba8d2dc02
								
							
						
					
					
						commit
						2983ce8b9e
					
				@ -348,9 +348,9 @@ class ExperimentalFeatures implements lc.StaticFeature {
 | 
				
			|||||||
    initialize(
 | 
					    initialize(
 | 
				
			||||||
        _capabilities: lc.ServerCapabilities,
 | 
					        _capabilities: lc.ServerCapabilities,
 | 
				
			||||||
        _documentSelector: lc.DocumentSelector | undefined,
 | 
					        _documentSelector: lc.DocumentSelector | undefined,
 | 
				
			||||||
    ): void { }
 | 
					    ): void {}
 | 
				
			||||||
    dispose(): void { }
 | 
					    dispose(): void {}
 | 
				
			||||||
    clear(): void { }
 | 
					    clear(): void {}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class OverrideFeatures implements lc.StaticFeature {
 | 
					class OverrideFeatures implements lc.StaticFeature {
 | 
				
			||||||
@ -368,9 +368,9 @@ class OverrideFeatures implements lc.StaticFeature {
 | 
				
			|||||||
    initialize(
 | 
					    initialize(
 | 
				
			||||||
        _capabilities: lc.ServerCapabilities,
 | 
					        _capabilities: lc.ServerCapabilities,
 | 
				
			||||||
        _documentSelector: lc.DocumentSelector | undefined,
 | 
					        _documentSelector: lc.DocumentSelector | undefined,
 | 
				
			||||||
    ): void { }
 | 
					    ): void {}
 | 
				
			||||||
    dispose(): void { }
 | 
					    dispose(): void {}
 | 
				
			||||||
    clear(): void { }
 | 
					    clear(): void {}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function isCodeActionWithoutEditsAndCommands(value: any): boolean {
 | 
					function isCodeActionWithoutEditsAndCommands(value: any): boolean {
 | 
				
			||||||
@ -398,7 +398,8 @@ export let HOVER_REFERENCE_COMMAND: ra.CommandLink[] = [];
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
function renderCommand(cmd: ra.CommandLink): string {
 | 
					function renderCommand(cmd: ra.CommandLink): string {
 | 
				
			||||||
    HOVER_REFERENCE_COMMAND.push(cmd);
 | 
					    HOVER_REFERENCE_COMMAND.push(cmd);
 | 
				
			||||||
    return `[${cmd.title}](command:rust-analyzer.hoverRefCommandProxy?${HOVER_REFERENCE_COMMAND.length - 1
 | 
					    return `[${cmd.title}](command:rust-analyzer.hoverRefCommandProxy?${
 | 
				
			||||||
 | 
					        HOVER_REFERENCE_COMMAND.length - 1
 | 
				
			||||||
    } '${cmd.tooltip}')`;
 | 
					    } '${cmd.tooltip}')`;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1145,7 +1145,7 @@ function isUpdatingTest(runnable: ra.Runnable): boolean {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const env = runnable.args.environment;
 | 
					    const env = runnable.args.environment;
 | 
				
			||||||
    return env ? ['UPDATE_EXPECT', 'INSTA_UPDATE', 'SNAPSHOTS'].some(key => key in env) : false;
 | 
					    return env ? ["UPDATE_EXPECT", "INSTA_UPDATE", "SNAPSHOTS"].some((key) => key in env) : false;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function runSingle(ctx: CtxInit): Cmd {
 | 
					export function runSingle(ctx: CtxInit): Cmd {
 | 
				
			||||||
 | 
				
			|||||||
@ -148,7 +148,7 @@ function createCommands(): Record<string, CommandFactory> {
 | 
				
			|||||||
                    health: "stopped",
 | 
					                    health: "stopped",
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            disabled: (_) => async () => { },
 | 
					            disabled: (_) => async () => {},
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        analyzerStatus: { enabled: commands.analyzerStatus },
 | 
					        analyzerStatus: { enabled: commands.analyzerStatus },
 | 
				
			||||||
@ -211,6 +211,6 @@ function checkConflictingExtensions() {
 | 
				
			|||||||
                    "both plugins to not work correctly. You should disable one of them.",
 | 
					                    "both plugins to not work correctly. You should disable one of them.",
 | 
				
			||||||
                "Got it",
 | 
					                "Got it",
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
            .then(() => { }, console.error);
 | 
					            .then(() => {}, console.error);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user