Skip to content

Commit

Permalink
🚚 Port project
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Apr 8, 2024
1 parent 3b81a69 commit e07211b
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 11 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# BitBake recipe language support plugin for Visual Studio Code

Ported from [vscode-bitbake](https://github.com/yoctoproject/vscode-bitbake).

Because some APIs of [vscode](github.com/microsoft/vscode) are missing in
[coc.nvim](https://github.com/neoclide/coc.nvim), disable some features
temporarily:

- all commands about terminal: miss `vscode.terminal`

## Install

- [coc-marketplace](https://github.com/fannheyward/coc-marketplace)
- [npm](https://www.npmjs.com/package/coc-bitbake)
- vim:

```vim
" command line
CocInstall coc-bitbake
" or add the following code to your vimrc
let g:coc_global_extensions = ['coc-bitbake', 'other coc-plugins']
```

---

[![vscode-bitbake CI/CD](https://github.com/yoctoproject/vscode-bitbake/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/yoctoproject/vscode-bitbake/actions/workflows/main.yml?query=branch%3Amain)

**For a description of the extension itself, please see [the client's README](./client/README.md)**.
Expand Down
5 changes: 4 additions & 1 deletion client/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
yarn.lock
*.tgz

server/
out/

# Test
# Grammar scope snaps
test/**/*.snap
test/**/*.snap
5 changes: 5 additions & 0 deletions client/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/*
!/README.md
!/package.json
!/out/
*.map
4 changes: 2 additions & 2 deletions client/package-lock.json

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

20 changes: 13 additions & 7 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "yocto-bitbake",
"name": "coc-bitbake",
"displayName": "Yocto Project BitBake",
"description": "Extended Yocto Project and BitBake language support",
"author": {
Expand All @@ -15,24 +15,28 @@
"publisher": "yocto-project",
"icon": "images/icon.png",
"bugs": {
"url": "https://github.com/yoctoproject/vscode-bitbake/issues"
"url": "https://github.com/Freed-Wu/coc-bitbake/issues"
},
"homepage": "https://github.com/yoctoproject/vscode-bitbake/",
"homepage": "https://github.com/Freed-Wu/coc-bitbake/",
"repository": {
"type": "git",
"url": "https://github.com/yoctoproject/vscode-bitbake.git"
"url": "https://github.com/Freed-Wu/coc-bitbake.git"
},
"keywords": [
"coc.nvim"
],
"engines": {
"vscode": "^1.75.0"
"coc": "^0.0.82"
},
"categories": [
"Programming Languages"
],
"activationEvents": [
"onLanguage:bitbake",
"workspaceContains:**/bblayers.conf",
"workspaceContains:**/*.bb"
],
"main": "./out/extension",
"main": "./out/extension.js",
"browser": "./out/extension-web",
"contributes": {
"languages": [
Expand Down Expand Up @@ -834,6 +838,7 @@
}
},
"scripts": {
"prepack": "tsc",
"test": "npm run test:grammar",
"test:grammar": "vscode-tmgrammar-test ./test/grammars/test-cases/*.bb",
"snap-grammar": "vscode-tmgrammar-snap ./test/grammars/snaps/*.bb -u",
Expand All @@ -849,7 +854,8 @@
"devDependencies": {
"@types/find": "^0.2.2",
"@types/node": "^20.6.2",
"@types/vscode": "^1.75.1"
"coc.nvim": "^0.0.83-next.18",
"typescript": "^5.3.3"
},
"workspaces": [
"src/lib"
Expand Down
3 changes: 2 additions & 1 deletion client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"noImplicitAny": false,
"composite": true
},
"include": ["src", ".eslintrc.js"],
"exclude": ["node_modules", ".vscode-test"]
"exclude": ["node_modules", ".vscode-test", "src/__tests__", "src/lib/src/__tests__"]
}

0 comments on commit e07211b

Please sign in to comment.