We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a14ead5 commit 36faf41Copy full SHA for 36faf41
CHANGELOG.md
@@ -1,6 +1,7 @@
1
# 1.6.3
2
3
- fix: join paths correctly on windows #21
4
+- fix: ignore some pipe errors we cannot do anything about
5
6
# 1.6.2
7
src/UserInteraction.ts
@@ -18,7 +18,9 @@ export async function handleFormatError(
18
function matches(...codeOrStatus: Array<number | string>) {
19
return codeOrStatus.some(c => c === error.code || c === error.status);
20
}
21
- if (matches("ENOENT", 127)) {
+ if (matches("ENOBUFS", "EPIPE")) {
22
+ return;
23
+ } else if (matches("ENOENT", "EACCES", 127)) {
24
const selection = await Current.editor.showErrorMessage(
25
`Could not find SwiftFormat: ${Current.config
26
.swiftFormatPath(document)
0 commit comments