@@ -105,22 +105,6 @@ async function startServer() {
105105 } ) ;
106106}
107107
108- const serverPaths : { [ key : string ] : { [ key : string ] : string } } = {
109- win32 : {
110- arm64 : 'emmylua_ls-win32-arm64' ,
111- x64 : 'emmylua_ls-win32-x64' ,
112- ia32 : 'emmylua_ls-win32-ia32'
113- } ,
114- linux : {
115- arm64 : 'emmylua_ls-linux-aarch64-glibc.2.17' ,
116- x64 : 'emmylua_ls-linux-x64-glibc.2.17'
117- } ,
118- darwin : {
119- arm64 : 'emmylua_ls-darwin-arm64' ,
120- x64 : 'emmylua_ls-darwin-x64'
121- }
122- } ;
123-
124108async function doStartServer ( ) {
125109 const context = ctx . extensionContext ;
126110 const clientOptions : LanguageClientOptions = {
@@ -148,16 +132,8 @@ async function doStartServer() {
148132 } ;
149133 } else {
150134 let platform = os . platform ( ) ;
151- let arch = os . arch ( ) ;
152135 let executableName = platform === 'win32' ? 'emmylua_ls.exe' : 'emmylua_ls' ;
153-
154- const serverDir = serverPaths [ platform ] ?. [ arch ] ;
155- if ( ! serverDir ) {
156- vscode . window . showErrorMessage ( `Unsupported platform: ${ platform } ${ arch } ` ) ;
157- return ;
158- }
159-
160- const exe = path . join ( context . extensionPath , 'server' , serverDir , executableName ) ;
136+ const exe = path . join ( context . extensionPath , 'server' , executableName ) ;
161137
162138 if ( platform !== 'win32' ) {
163139 fs . chmodSync ( exe , '777' ) ;
0 commit comments