@tui-sandbox/library 11.9.0 → 11.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/src/server/applications/neovim/NeovimJavascriptApiClient.js +10 -1
- package/dist/src/server/applications/neovim/NeovimJavascriptApiClient.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/server/applications/neovim/NeovimJavascriptApiClient.ts +16 -1
package/package.json
CHANGED
|
@@ -17,9 +17,24 @@ export function connectNeovimApi(socketPath: string): Lazy<Promise<NeovimJavascr
|
|
|
17
17
|
// https://github.com/neovim/node-client/blob/e0568e32e0fc8837ad900146bfd5ca27b9416235/README.md#logging
|
|
18
18
|
const logger = createLogger({
|
|
19
19
|
level: "warn",
|
|
20
|
+
|
|
20
21
|
transports: [
|
|
21
22
|
new transports.Console({
|
|
22
|
-
format: format.combine(
|
|
23
|
+
format: format.combine(
|
|
24
|
+
format(info => {
|
|
25
|
+
if ((info.message as string).startsWith("failed request to")) {
|
|
26
|
+
// This is logged when neovim is started with --embed, which we don't use.
|
|
27
|
+
// It's not a problem, so hide it.
|
|
28
|
+
//
|
|
29
|
+
// Returning false removes this log entry
|
|
30
|
+
return false
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return info
|
|
34
|
+
})(),
|
|
35
|
+
format.colorize(),
|
|
36
|
+
format.simple()
|
|
37
|
+
),
|
|
23
38
|
}),
|
|
24
39
|
],
|
|
25
40
|
})
|