mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-10-30 11:37:31 +00:00 
			
		
		
		
	fix: await setting config to not ask before UpdateTest and format
				
					
				
			This commit is contained in:
		
							parent
							
								
									22280b65ff
								
							
						
					
					
						commit
						c30e9c0618
					
				
					 1 changed files with 7 additions and 7 deletions
				
			
		|  | @ -1155,18 +1155,18 @@ export function runSingle(ctx: CtxInit): Cmd { | ||||||
| 
 | 
 | ||||||
|         if (isUpdatingTest(runnable) && ctx.config.askBeforeUpdateTest) { |         if (isUpdatingTest(runnable) && ctx.config.askBeforeUpdateTest) { | ||||||
|             const selection = await vscode.window.showInformationMessage( |             const selection = await vscode.window.showInformationMessage( | ||||||
|                 'rust-analyzer', |                 "rust-analyzer", | ||||||
|                 { detail: 'Do you want to update tests?', modal: true }, |                 { detail: "Do you want to update tests?", modal: true }, | ||||||
|                 'Update Now', |                 "Update Now", | ||||||
|                 'Update (and Don\'t ask again)', |                 "Update (and Don't ask again)", | ||||||
|             ); |             ); | ||||||
| 
 | 
 | ||||||
|             if (selection !== 'Update Now' && selection !== 'Update (and Don\'t ask again)') { |             if (selection !== "Update Now" && selection !== "Update (and Don't ask again)") { | ||||||
|                 return; |                 return; | ||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|             if (selection === 'Update (and Don\'t ask again)') { |             if (selection === "Update (and Don't ask again)") { | ||||||
|                 ctx.config.setAskBeforeUpdateTest(false); |                 await ctx.config.setAskBeforeUpdateTest(false); | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 roife
						roife