-
Hi there, When developing a Theia-based app, I often get a
I am using Thank you for the great work ❤️ |
Beta Was this translation helpful? Give feedback.
Answered by
kittaakos
Nov 16, 2022
Replies: 1 comment
-
I customized the diff --git a/.vscode/launch.json b/.vscode/launch.json
index 06f959e8..045609c0 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -21,7 +21,8 @@
"--plugins=local-dir:../plugins",
"--hosted-plugin-inspect=9339",
"--content-trace",
- "--open-devtools"
+ "--open-devtools",
+ "--no-timeout",
],
"env": {
"NODE_ENV": "development"
@@ -56,7 +57,8 @@
"--remote-debugging-port=9222",
"--no-app-auto-install",
"--plugins=local-dir:../plugins",
- "--hosted-plugin-inspect=9339"
+ "--hosted-plugin-inspect=9339",
+ "--no-timeout",
],
"env": {
"NODE_ENV": "development"
diff --git a/arduino-ide-extension/src/node/arduino-ide-backend-module.ts b/arduino-ide-extension/src/node/arduino-ide-backend-module.ts
index 9d3ad355..09294f96 100644
--- a/arduino-ide-extension/src/node/arduino-ide-backend-module.ts
+++ b/arduino-ide-extension/src/node/arduino-ide-backend-module.ts
@@ -109,6 +109,8 @@ import {
} from '../common/protocol/survey-service';
import { IsTempSketch } from './is-temp-sketch';
import { rebindNsfwFileSystemWatcher } from './theia/filesystem/nsfw-watcher/nsfw-bindings';
+import { MessagingContribution } from './theia/core/messaging-contribution';
+import { MessagingService } from '@theia/core/lib/node/messaging/messaging-service';
export default new ContainerModule((bind, unbind, isBound, rebind) => {
bind(BackendApplication).toSelf().inSingletonScope();
@@ -379,6 +381,9 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
.inSingletonScope();
bind(IsTempSketch).toSelf().inSingletonScope();
+ rebind(MessagingService.Identifier)
+ .to(MessagingContribution)
+ .inSingletonScope();
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kittaakos
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I customized the
MessagingContribution
downstream and used a much bigger ping timeout when running in dev mode.