File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ const removeAlias = (file: string): void => {
182182}
183183
184184const checkSocketWrapperAlreadySetup = ( file : string ) : boolean => {
185- const fileContent = fs . readFileSync ( file , 'utf-8 ' )
185+ const fileContent = fs . readFileSync ( file , 'utf8 ' )
186186 const linesWithSocketAlias = fileContent
187187 . split ( '\n' )
188188 . filter (
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ function createNonStandardTTYServer(): TTYSeverResult {
5757 const {
5858 capabilities : { input : hasInput , output : hasOutput } ,
5959 ipc_version : remote_ipc_version
60- } = JSON . parse ( lineBuff . subarray ( 0 , eolIndex ) . toString ( 'utf-8 ' ) )
60+ } = JSON . parse ( lineBuff . subarray ( 0 , eolIndex ) . toString ( 'utf8 ' ) )
6161 lineBuff = null
6262 captured = true
6363 if ( remote_ipc_version !== ipc_version ) {
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ interface Settings {
3232let settings : Settings = { }
3333
3434if ( existsSync ( settingsPath ) ) {
35- const raw = readFileSync ( settingsPath , 'utf-8 ' )
35+ const raw = readFileSync ( settingsPath , 'utf8 ' )
3636 try {
3737 settings = JSON . parse ( Buffer . from ( raw , 'base64' ) . toString ( ) )
3838 } catch {
You can’t perform that action at this time.
0 commit comments