File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ function UiI18nBridge(props: ParentProps) {
4343
4444declare global {
4545 interface Window {
46- __OPENCODE__ ?: { updaterEnabled ?: boolean ; serverPassword ?: string ; deepLinks ?: string [ ] ; wsl ?: boolean }
46+ __OPENCODE__ ?: { updaterEnabled ?: boolean ; serverPassword ?: string ; deepLinks ?: string [ ] }
4747 }
4848}
4949
Original file line number Diff line number Diff line change @@ -367,34 +367,6 @@ export const SettingsGeneral: Component = () => {
367367 </ div >
368368 </ div >
369369
370- < Show when = { platform . platform === "desktop" && platform . os === "windows" && platform . getWslEnabled } >
371- { ( _ ) => {
372- const [ enabledResource , actions ] = createResource ( ( ) => platform . getWslEnabled ?.( ) )
373- const enabled = ( ) => ( enabledResource . state === "pending" ? undefined : enabledResource . latest )
374-
375- return (
376- < div class = "flex flex-col gap-1" >
377- < h3 class = "text-14-medium text-text-strong pb-2" > { language . t ( "settings.desktop.section.wsl" ) } </ h3 >
378-
379- < div class = "bg-surface-raised-base px-4 rounded-lg" >
380- < SettingsRow
381- title = { language . t ( "settings.desktop.wsl.title" ) }
382- description = { language . t ( "settings.desktop.wsl.description" ) }
383- >
384- < div data-action = "settings-wsl" >
385- < Switch
386- checked = { enabled ( ) ?? false }
387- disabled = { enabledResource . state === "pending" }
388- onChange = { ( checked ) => platform . setWslEnabled ?.( checked ) ?. finally ( ( ) => actions . refetch ( ) ) }
389- />
390- </ div >
391- </ SettingsRow >
392- </ div >
393- </ div >
394- )
395- } }
396- </ Show >
397-
398370 { /* Updates Section */ }
399371 < div class = "flex flex-col gap-1" >
400372 < h3 class = "text-14-medium text-text-strong pb-2" > { language . t ( "settings.general.section.updates" ) } </ h3 >
Original file line number Diff line number Diff line change @@ -57,12 +57,6 @@ export type Platform = {
5757 /** Set the default server URL to use on app startup (platform-specific) */
5858 setDefaultServerUrl ?( url : string | null ) : Promise < void > | void
5959
60- /** Get the configured WSL integration (desktop only) */
61- getWslEnabled ?( ) : Promise < boolean >
62-
63- /** Set the configured WSL integration (desktop only) */
64- setWslEnabled ?( config : boolean ) : Promise < void > | void
65-
6660 /** Get the preferred display backend (desktop only) */
6761 getDisplayBackend ?( ) : Promise < DisplayBackend | null > | DisplayBackend | null
6862
Original file line number Diff line number Diff line change @@ -508,9 +508,6 @@ export const dict = {
508508 "settings.section.server" : "الخادم" ,
509509 "settings.tab.general" : "عام" ,
510510 "settings.tab.shortcuts" : "اختصارات" ,
511- "settings.desktop.section.wsl" : "WSL" ,
512- "settings.desktop.wsl.title" : "WSL integration" ,
513- "settings.desktop.wsl.description" : "Run the OpenCode server inside WSL on Windows." ,
514511
515512 "settings.general.section.appearance" : "المظهر" ,
516513 "settings.general.section.notifications" : "إشعارات النظام" ,
Original file line number Diff line number Diff line change @@ -512,9 +512,6 @@ export const dict = {
512512 "settings.section.server" : "Servidor" ,
513513 "settings.tab.general" : "Geral" ,
514514 "settings.tab.shortcuts" : "Atalhos" ,
515- "settings.desktop.section.wsl" : "WSL" ,
516- "settings.desktop.wsl.title" : "WSL integration" ,
517- "settings.desktop.wsl.description" : "Run the OpenCode server inside WSL on Windows." ,
518515
519516 "settings.general.section.appearance" : "Aparência" ,
520517 "settings.general.section.notifications" : "Notificações do sistema" ,
Original file line number Diff line number Diff line change @@ -539,9 +539,6 @@ export const dict = {
539539 "settings.section.server" : "Server" ,
540540 "settings.tab.general" : "Opšte" ,
541541 "settings.tab.shortcuts" : "Prečice" ,
542- "settings.desktop.section.wsl" : "WSL" ,
543- "settings.desktop.wsl.title" : "WSL integration" ,
544- "settings.desktop.wsl.description" : "Run the OpenCode server inside WSL on Windows." ,
545542
546543 "settings.general.section.appearance" : "Izgled" ,
547544 "settings.general.section.notifications" : "Sistemske obavijesti" ,
Original file line number Diff line number Diff line change @@ -512,9 +512,6 @@ export const dict = {
512512 "settings.section.server" : "Server" ,
513513 "settings.tab.general" : "Generelt" ,
514514 "settings.tab.shortcuts" : "Genveje" ,
515- "settings.desktop.section.wsl" : "WSL" ,
516- "settings.desktop.wsl.title" : "WSL integration" ,
517- "settings.desktop.wsl.description" : "Run the OpenCode server inside WSL on Windows." ,
518515
519516 "settings.general.section.appearance" : "Udseende" ,
520517 "settings.general.section.notifications" : "Systemmeddelelser" ,
Original file line number Diff line number Diff line change @@ -556,9 +556,6 @@ export const dict = {
556556 "settings.section.server" : "Server" ,
557557 "settings.tab.general" : "Allgemein" ,
558558 "settings.tab.shortcuts" : "Tastenkombinationen" ,
559- "settings.desktop.section.wsl" : "WSL" ,
560- "settings.desktop.wsl.title" : "WSL integration" ,
561- "settings.desktop.wsl.description" : "Run the OpenCode server inside WSL on Windows." ,
562559
563560 "settings.general.section.appearance" : "Erscheinungsbild" ,
564561 "settings.general.section.notifications" : "Systembenachrichtigungen" ,
Original file line number Diff line number Diff line change @@ -583,9 +583,6 @@ export const dict = {
583583 "settings.section.server" : "Server" ,
584584 "settings.tab.general" : "General" ,
585585 "settings.tab.shortcuts" : "Shortcuts" ,
586- "settings.desktop.section.wsl" : "WSL" ,
587- "settings.desktop.wsl.title" : "WSL integration" ,
588- "settings.desktop.wsl.description" : "Run the OpenCode server inside WSL on Windows." ,
589586
590587 "settings.general.section.appearance" : "Appearance" ,
591588 "settings.general.section.notifications" : "System notifications" ,
Original file line number Diff line number Diff line change @@ -515,9 +515,6 @@ export const dict = {
515515 "settings.section.server" : "Servidor" ,
516516 "settings.tab.general" : "General" ,
517517 "settings.tab.shortcuts" : "Atajos" ,
518- "settings.desktop.section.wsl" : "WSL" ,
519- "settings.desktop.wsl.title" : "WSL integration" ,
520- "settings.desktop.wsl.description" : "Run the OpenCode server inside WSL on Windows." ,
521518
522519 "settings.general.section.appearance" : "Apariencia" ,
523520 "settings.general.section.notifications" : "Notificaciones del sistema" ,
You can’t perform that action at this time.
0 commit comments