Skip to content

Commit

Permalink
Fix: add language-server-bitbake as a dependence
Browse files Browse the repository at this point in the history
Decouple client and server
  • Loading branch information
Freed-Wu committed Mar 18, 2024
1 parent 81416cd commit e26567a
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 68 deletions.
120 changes: 54 additions & 66 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,8 @@
"package": "npm run vscode:prepublish && vsce package"
},
"dependencies": {
"find": "^0.2.7"
"find": "^0.2.7",
"language-server-bitbake": "^2.2.0"
},
"devDependencies": {
"@types/find": "^0.2.2",
Expand Down
2 changes: 1 addition & 1 deletion client/src/language/languageClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import * as vscode from 'coc.nvim'
// import { middlewareProvideReferences } from './middlewareReferences'

export async function activateLanguageServer (context: ExtensionContext, bitBakeProjectScanner: BitBakeProjectScanner): Promise<LanguageClient> {
const serverModule = context.asAbsolutePath(path.join('server', 'server.js'))
const serverModule = path.join(__dirname, 'server.js')
// The debug options for the server
// Use --inspect-brk instead of --inspect if you want to debug the server startup code
const debugOptions = { execArgv: ['--nolazy', '--inspect=localhost:6010'] }
Expand Down
6 changes: 6 additions & 0 deletions client/src/language/server.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* --------------------------------------------------------------------------------------------
* Copyright (c) 2023 Savoir-faire Linux. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ------------------------------------------------------------------------------------------ */

import 'language-server-bitbake/out/server'

0 comments on commit e26567a

Please sign in to comment.