Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/debugpy/common/messaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ def __init__(self, reason, cause=None, silent=False):
"""Creates a new instance of this class, and immediately logs the exception.

Message handling errors are logged immediately unless silent=True, so that the
precise context in which they occured can be determined from the surrounding
precise context in which they occurred can be determined from the surrounding
log entries.
"""

Expand Down
2 changes: 1 addition & 1 deletion tests/pytest_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def script_file():
that it uses locally. When linter complains, use #noqa.

Returns a py.path.local instance that has the additional attribute "lines".
After the source is writen to disk, tests.code.get_marked_line_numbers() is
After the source is written to disk, tests.code.get_marked_line_numbers() is
invoked on the resulting file to compute the value of that attribute.
"""

Expand Down
4 changes: 2 additions & 2 deletions tests/timeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ For responses, it is often desirable to specify success or failure in general, w
Response(request, some.error)
Response(request, ~some.error) # success
```
Note that you don't need to do it if you specify the body of the response explicitly, since a succesful response will always have a dict as a body, and a failed response will have an exception as a body.
Note that you don't need to do it if you specify the body of the response explicitly, since a successful response will always have a dict as a body, and a failed response will have an exception as a body.

Since it is very common to wait for a response to a particular request, there is a shortcut to do it directly via the request occurrence:
```py
Expand All @@ -112,7 +112,7 @@ and a further shortcut to issue a request, wait for response, and retrieve the r
```py
initialize_response_body = debug_session.request('initialize', {'adapterID': 'test'})
```
On success, `request()` returns the body of the sucessful response directly, rather than the `Response` object. On failure, it raises the appropriate exception.
On success, `request()` returns the body of the successful response directly, rather than the `Response` object. On failure, it raises the appropriate exception.

## Expectation algebra

Expand Down