From e792351d7c5d321afd3a230e921eba720e63e764 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Wed, 1 Nov 2023 16:53:15 -0700 Subject: [PATCH] add todo comment --- packages/pyright-yapf/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/pyright-yapf/index.ts b/packages/pyright-yapf/index.ts index 23c4376b4..19a953f7c 100644 --- a/packages/pyright-yapf/index.ts +++ b/packages/pyright-yapf/index.ts @@ -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 { const args = ['--style', `{based_on_style: pep8, indent_width: ${indentWidth}}`, '--no-local-style']; return spawnSync(`yapf`, args, {