Skip to content

Commit

Permalink
add todo comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 committed Nov 1, 2023
1 parent 9520fac commit e792351
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/pyright-yapf/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { spawnSync, SpawnSyncReturns } from 'node:child_process';
import { TextEdit, uinteger } from 'vscode-languageserver';

// TODO: there's probably a way to make this async so format requests dont block other requests
function _runYapf(buf: string, indentWidth: number): SpawnSyncReturns<Buffer> {
const args = ['--style', `{based_on_style: pep8, indent_width: ${indentWidth}}`, '--no-local-style'];
return spawnSync(`yapf`, args, {
Expand Down

0 comments on commit e792351

Please sign in to comment.