File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ const removeAlias = (file: string): void => {
182
182
}
183
183
184
184
const checkSocketWrapperAlreadySetup = ( file : string ) : boolean => {
185
- const fileContent = fs . readFileSync ( file , 'utf-8 ' )
185
+ const fileContent = fs . readFileSync ( file , 'utf8 ' )
186
186
const linesWithSocketAlias = fileContent
187
187
. split ( '\n' )
188
188
. filter (
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ function createNonStandardTTYServer(): TTYSeverResult {
57
57
const {
58
58
capabilities : { input : hasInput , output : hasOutput } ,
59
59
ipc_version : remote_ipc_version
60
- } = JSON . parse ( lineBuff . subarray ( 0 , eolIndex ) . toString ( 'utf-8 ' ) )
60
+ } = JSON . parse ( lineBuff . subarray ( 0 , eolIndex ) . toString ( 'utf8 ' ) )
61
61
lineBuff = null
62
62
captured = true
63
63
if ( remote_ipc_version !== ipc_version ) {
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ interface Settings {
32
32
let settings : Settings = { }
33
33
34
34
if ( existsSync ( settingsPath ) ) {
35
- const raw = readFileSync ( settingsPath , 'utf-8 ' )
35
+ const raw = readFileSync ( settingsPath , 'utf8 ' )
36
36
try {
37
37
settings = JSON . parse ( Buffer . from ( raw , 'base64' ) . toString ( ) )
38
38
} catch {
You can’t perform that action at this time.
0 commit comments