You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Special-case FileHandle(forWritingAtPath: "CONOUT$") on Windows. (#654)
This PR special-cases calls to `FileHandle.init(forWritingAtPath:)` when
passed `"CONOUT$"` (the reserved "console output" file) on Windows such
that it does not open a new file but just returns a copy of `.stdout`
instead.
This change is necessary because, on Windows, opening and locking
`"CONOUT$"` does not lock `stdout` (they're considered entirely
different files) and output written to `"CONOUT$"` is wrapped at the
console's column limit even though it's being written as binary data.
The VSCode Swift plugin authors would like to be able to specify writing
the JSON event stream to `"CONOUT$"`, but the observed behaviour is
stopping them from doing so.
### Checklist:
- [x] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should
be updated.
0 commit comments