This repository was archived by the owner on Mar 21, 2024. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ import flatMap = require("lodash.flatmap");
22import  *  as  path  from  "path" ; 
33import  *  as  vscode  from  "vscode" ; 
44import  *  as  client  from  "vscode-languageclient" ; 
5+ import  {  getEsyConfig ,  isBucklescriptProject  }  from  "../utils" ; 
56import  *  as  command  from  "./command" ; 
67import  *  as  request  from  "./request" ; 
7- import  {  getEsyConfig ,  isBucklescriptProject  }  from  "../utils" ; 
88
99const  isWin  =  process . platform  ===  "win32" ; 
1010
@@ -31,7 +31,7 @@ class ErrorHandler {
3131  } 
3232} 
3333
34- async   function  isEsyConfiguredProperly ( esyConfig : any )  { 
34+ function  isEsyConfiguredProperly ( esyConfig : any )  { 
3535  const  requiredDependencies  =  [ "ocaml" ,  "@opam/merlin-lsp" ] ; 
3636
3737  if  ( ! esyConfig )  { 
@@ -49,9 +49,9 @@ async function isEsyConfiguredProperly(esyConfig: any) {
4949  } ) ; 
5050} 
5151
52- async   function  isConfuguredProperly ( esyConfig : any )  { 
52+ function  isConfuguredProperly ( esyConfig : any )  { 
5353  if  ( esyConfig )  { 
54-     return  await   isEsyConfiguredProperly ( esyConfig ) ; 
54+     return  isEsyConfiguredProperly ( esyConfig ) ; 
5555  } 
5656
5757  if  ( isBucklescriptProject ( ) )  return  true ; 
Original file line number Diff line number Diff line change 11import  {  execSync  }  from  "child_process" ; 
2+ import  *  as  fs  from  "fs" ; 
23import  *  as  path  from  "path" ; 
3- import  *  as  vscode  from  "vscode" ; 
44import  {  promisify  }  from  "util" ; 
5- import  *  as  fs  from  "fs " ; 
5+ import  *  as  vscode  from  "vscode " ; 
66
77const  exists  =  promisify ( fs . exists ) ; 
88const  readFile  =  promisify ( fs . readFile ) ; 
@@ -31,7 +31,7 @@ export async function getEsyConfig() {
3131  } 
3232
3333  let  configFile  =  path . join ( root ,  "esy.json" ) ; 
34-   let  isConfigFileExists  =  await  exists ( configFile ) ; 
34+   const  isConfigFileExists  =  await  exists ( configFile ) ; 
3535  if  ( ! isConfigFileExists )  { 
3636    configFile  =  path . join ( root ,  "package.json" ) ; 
3737  } 
@@ -68,7 +68,7 @@ function getExecutablePath(executable: string) {
6868export  async  function  getFormatter ( configuration : vscode . WorkspaceConfiguration ,  formatterName : string )  { 
6969  const  rootPath  =  vscode . workspace . rootPath  ||  "" ; 
7070  const  formatterPath  =  configuration . get < string  |  undefined > ( `path.${ formatterName }  )  ||  formatterName ; 
71-   let  esyConfig  =  await  getEsyConfig ( ) ; 
71+   const  esyConfig  =  await  getEsyConfig ( ) ; 
7272
7373  if  ( esyConfig )  { 
7474    if  ( ! esyConfig . devDependencies [ `@opam/${ formatterName }  ] )  { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments