diff --git a/app/gui2/shared/languageServer.ts b/app/gui2/shared/languageServer.ts index 54ef618fe20..2daf6f80fb6 100644 --- a/app/gui2/shared/languageServer.ts +++ b/app/gui2/shared/languageServer.ts @@ -85,6 +85,10 @@ export class LanguageServer extends ObservableV2 { return this.acquireCapability('file/receivesTreeUpdates', { path }) } + acquireExecutionContextCanModify(contextId: ContextId): Promise { + return this.acquireCapability('executionContext/canModify', { contextId }) + } + /** [Documentation](https://github.com/enso-org/enso/blob/develop/docs/language-server/protocol-language-server.md#sessioninitprotocolconnection) */ initProtocolConnection(clientId: Uuid): Promise { return this.request('session/initProtocolConnection', { clientId }) diff --git a/app/gui2/src/components/ExecutionModeSelector.vue b/app/gui2/src/components/ExecutionModeSelector.vue index 587c5d12d44..9ded68061ce 100644 --- a/app/gui2/src/components/ExecutionModeSelector.vue +++ b/app/gui2/src/components/ExecutionModeSelector.vue @@ -19,7 +19,7 @@ function onDocumentClick(event: MouseEvent) { } } -useEvent(document, 'click', onDocumentClick) +useEvent(document, 'pointerdown', onDocumentClick)