@@ -12,11 +12,11 @@ import { registerInlineCompletion } from '../inline/completion'
1212import { AmazonQLspAuth , notificationTypes , writeEncryptionInit } from './auth'
1313import { AuthUtil } from 'aws-core-vscode/codewhisperer'
1414import { ConnectionMetadata } from '@aws/language-server-runtimes/protocol'
15- import { ExecutablePaths } from 'aws-core-vscode/shared'
15+ import { ResourcePaths } from 'aws-core-vscode/shared'
1616
1717const localize = nls . loadMessageBundle ( )
1818
19- export function startLanguageServer ( extensionContext : vscode . ExtensionContext , executablePaths : ExecutablePaths ) {
19+ export function startLanguageServer ( extensionContext : vscode . ExtensionContext , resourcePaths : ResourcePaths ) {
2020 const toDispose = extensionContext . subscriptions
2121
2222 // The debug options for the server
@@ -31,7 +31,7 @@ export function startLanguageServer(extensionContext: vscode.ExtensionContext, e
3131 ] ,
3232 }
3333
34- const serverPath = executablePaths . lsp
34+ const serverPath = resourcePaths . lsp
3535
3636 // If the extension is launch in debug mode the debug server options are use
3737 // Otherwise the run options are used
@@ -40,7 +40,7 @@ export function startLanguageServer(extensionContext: vscode.ExtensionContext, e
4040 debug : { module : serverPath , transport : TransportKind . ipc , options : debugOptions } ,
4141 }
4242
43- const child = cp . spawn ( executablePaths . node , [ serverPath , ...debugOptions . execArgv ] )
43+ const child = cp . spawn ( resourcePaths . node , [ serverPath , ...debugOptions . execArgv ] )
4444 writeEncryptionInit ( child . stdin )
4545
4646 serverOptions = ( ) => Promise . resolve ( child )
0 commit comments