Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel- committed Jan 17, 2025
1 parent 91742b9 commit 884f555
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/lsp/src/handlers_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ async fn update_global_config(
// Convert and set the global LSP settings
lsp_state.settings = settings.into();

// If the client just enabled file setttings synchronisation, sync them
// If the client just enabled file settings synchronisation, sync them
if !old_sync_file_settings_with_client && lsp_state.settings.sync_file_settings_with_client {
lsp_state.sync_file_settings(state.workspace_uris()).await
}
Expand Down
6 changes: 3 additions & 3 deletions editors/code/src/notification/sync-file-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ export class FileSettingsState {
this.settings.set(path, fileSettings.format);
}

// Apply right away the active text editors. We also have a handler
// for the case where visible editors change. We could apply to all
// visible text editors but that would not be useful AFAICT.
// Apply right away to the active text editor. We also have a handler
// for the case where the active editor changes so it always has
// up-to-date settings.
if (vscode.window.activeTextEditor) {
this.apply(vscode.window.activeTextEditor);
}
Expand Down

0 comments on commit 884f555

Please sign in to comment.