File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
pgls_workspace/src/workspace Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ pub async fn execute_command(
122122 Ok ( None )
123123 }
124124 "pgls.invalidateSchemaCache" => {
125- session. workspace . invalidate_schema_cache ( true ) ?;
125+ session. workspace . invalidate_schema_cache ( false ) ?;
126126
127127 session
128128 . client
Original file line number Diff line number Diff line change @@ -379,19 +379,18 @@ impl Workspace for WorkspaceServer {
379379 } )
380380 . collect ( ) ;
381381
382- // Add reload schema cache action
383- let reload_disabled_reason = if self . get_current_connection ( ) . is_some ( ) {
382+ let invalidate_disabled_reason = if self . get_current_connection ( ) . is_some ( ) {
384383 None
385384 } else {
386385 Some ( "No database connection available." . into ( ) )
387386 } ;
388387
389388 actions. push ( CodeAction {
390- title : "Reload Schema Cache" . into ( ) ,
389+ title : "Invalidate Schema Cache" . into ( ) ,
391390 kind : CodeActionKind :: Command ( CommandAction {
392391 category : CommandActionCategory :: InvalidateSchemaCache ,
393392 } ) ,
394- disabled_reason : reload_disabled_reason ,
393+ disabled_reason : invalidate_disabled_reason ,
395394 } ) ;
396395
397396 Ok ( CodeActionsResult { actions } )
You can’t perform that action at this time.
0 commit comments