File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,16 +71,11 @@ const createPlatform = (): Platform => {
7171 } ) ( )
7272
7373 const wslHome = async ( ) => {
74- if ( os !== "windows" || ! window . __OPENCODE__ ?. wsl ) return undefined
75- return commands . wslPath ( "~" , "windows" ) . catch ( ( ) => undefined )
74+ return undefined
7675 }
7776
7877 const handleWslPicker = async < T extends string | string [ ] > ( result : T | null ) : Promise < T | null > => {
79- if ( ! result || ! window . __OPENCODE__ ?. wsl ) return result
80- if ( Array . isArray ( result ) ) {
81- return Promise . all ( result . map ( ( path ) => commands . wslPath ( path , "linux" ) . catch ( ( ) => path ) ) ) as any
82- }
83- return commands . wslPath ( result , "linux" ) . catch ( ( ) => result ) as any
78+ return result
8479 }
8580
8681 return {
@@ -349,16 +344,6 @@ const createPlatform = (): Platform => {
349344 }
350345 } ,
351346
352- getWslEnabled : async ( ) => {
353- const next = await commands . getWslConfig ( ) . catch ( ( ) => null )
354- if ( next ) return next . enabled
355- return window . __OPENCODE__ ! . wsl ?? false
356- } ,
357-
358- setWslEnabled : async ( enabled ) => {
359- await commands . setWslConfig ( { enabled } )
360- } ,
361-
362347 getDefaultServer : async ( ) => {
363348 const url = await commands . getDefaultServerUrl ( ) . catch ( ( ) => null )
364349 if ( ! url ) return null
You can’t perform that action at this time.
0 commit comments