Skip to content

Commit 409bc23

Browse files
authored
Merge branch 'main' into phase4/trivial-normalizations
2 parents e6f1f0b + 2a742f1 commit 409bc23

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bundled/tool/lsp_utils.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import sys
1818
import sysconfig
1919
import threading
20-
from typing import Any, Callable, List, Sequence, Tuple, Union
20+
from typing import Any, Callable, List, Optional, Sequence, Tuple, Union
2121

2222
# Save the working directory used when loading this module
2323
SERVER_CWD = os.getcwd()
@@ -153,9 +153,12 @@ def is_match(patterns: List[str], file_path: str, workspace_root: str = None) ->
153153
class RunResult:
154154
"""Object to hold result from running tool."""
155155

156-
def __init__(self, stdout: str, stderr: str):
156+
def __init__(
157+
self, stdout: str, stderr: str, exit_code: Optional[Union[int, str]] = None
158+
):
157159
self.stdout: str = stdout
158160
self.stderr: str = stderr
161+
self.exit_code: Optional[Union[int, str]] = exit_code
159162

160163

161164
class CustomIO(io.TextIOWrapper):

0 commit comments

Comments
 (0)