File tree Expand file tree Collapse file tree
packages/vscode/src/commands/apply-chat-response-command Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { handle_intelligent_update } from './handlers/intelligent-update-handler
1010import { create_safe_path } from '@/utils/path-sanitizer'
1111import { check_for_truncated_fragments } from '@/utils/check-for-truncated-fragments'
1212import { ApiProvidersManager } from '@/services/api-providers-manager'
13+ import { format_document } from './utils/format-document'
1314import { apply_git_patch } from './utils/patch-handler'
1415import { PROVIDERS } from '@shared/constants/providers'
1516import { LAST_SELECTED_INTELLIGENT_UPDATE_CONFIG_INDEX_STATE_KEY } from '../../constants/state-keys'
@@ -346,6 +347,8 @@ async function handle_code_completion(completion: {
346347 await editor . edit ( ( editBuilder ) => {
347348 editBuilder . insert ( position , completion . content )
348349 } )
350+ await format_document ( document )
351+ await document . save ( )
349352 } catch ( error : any ) {
350353 vscode . window . showErrorMessage ( error . message )
351354 }
You can’t perform that action at this time.
0 commit comments