Skip to content

Commit ba3defd

Browse files
committed
progress
1 parent 2133bda commit ba3defd

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

crates/pgls_lsp/src/handlers/code_actions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

crates/pgls_workspace/src/workspace/server.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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 })

0 commit comments

Comments
 (0)