|
|
@@ -5,6 +5,7 @@ import { RouteProvider, useRoute } from "@tui/context/route"
|
|
|
import { Switch, Match, createEffect, untrack, ErrorBoundary, createSignal, onMount, batch, Show, on } from "solid-js"
|
|
|
import { Installation } from "@/installation"
|
|
|
import { Global } from "@/global"
|
|
|
+import { Flag } from "@/flag/flag"
|
|
|
import { DialogProvider, useDialog } from "@tui/ui/dialog"
|
|
|
import { DialogProvider as DialogProviderList } from "@tui/component/dialog-provider"
|
|
|
import { SDKProvider, useSDK } from "@tui/context/sdk"
|
|
|
@@ -460,6 +461,10 @@ function App() {
|
|
|
height={dimensions().height}
|
|
|
backgroundColor={theme.background}
|
|
|
onMouseUp={async () => {
|
|
|
+ if (Flag.OPENCODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT) {
|
|
|
+ renderer.clearSelection()
|
|
|
+ return
|
|
|
+ }
|
|
|
const text = renderer.getSelection()?.getSelectedText()
|
|
|
if (text && text.length > 0) {
|
|
|
const base64 = Buffer.from(text).toString("base64")
|