package.json 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. "name": "carbon-vscode",
  3. "displayName": "Carbon Language",
  4. "version": "0.0.5",
  5. "publisher": "carbon-lang",
  6. "description": "Carbon language support for Visual Studio Code.",
  7. "repository": {
  8. "url": "https://github.com/carbon-language/carbon-lang"
  9. },
  10. "engines": {
  11. "vscode": "^1.90.0"
  12. },
  13. "categories": [
  14. "Programming Languages"
  15. ],
  16. "icon": "images/icon.png",
  17. "activationEvents": [],
  18. "main": "./dist/extension.js",
  19. "contributes": {
  20. "languages": [
  21. {
  22. "id": "carbon",
  23. "aliases": [
  24. "Carbon"
  25. ],
  26. "extensions": [
  27. ".carbon"
  28. ],
  29. "configuration": "./language-configuration.json"
  30. }
  31. ],
  32. "grammars": [
  33. {
  34. "language": "carbon",
  35. "scopeName": "source.carbon",
  36. "path": "./carbon.tmLanguage.json"
  37. }
  38. ],
  39. "configuration": {
  40. "type": "object",
  41. "title": "Carbon Language",
  42. "properties": {
  43. "carbon.carbonPath": {
  44. "type": "string",
  45. "description": "The path to the 'carbon' binary.",
  46. "default": "./bazel-bin/toolchain/carbon"
  47. }
  48. }
  49. },
  50. "commands": [
  51. {
  52. "command": "carbon.lsp.restart",
  53. "title": "carbon: Restart language server"
  54. }
  55. ]
  56. },
  57. "scripts": {
  58. "vscode:prepublish": "npm run package",
  59. "compile": "npm run check-types && npm run lint && node esbuild.js",
  60. "watch": "npm-run-all -p watch:*",
  61. "watch:esbuild": "node esbuild.js --watch",
  62. "watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
  63. "package": "npm run check-types && npm run lint && node esbuild.js --production",
  64. "compile-tests": "tsc -p . --outDir out",
  65. "check-types": "tsc --noEmit",
  66. "lint": "eslint"
  67. },
  68. "devDependencies": {
  69. "@eslint/js": "^9.13.0",
  70. "@stylistic/eslint-plugin": "^2.9.0",
  71. "@types/node": "^20",
  72. "@types/vscode": "^1.73.0",
  73. "@vscode/vsce": "^2.27.0",
  74. "esbuild": "^0.25.0",
  75. "eslint": "^9.13.0",
  76. "typescript": "^5.7.2",
  77. "typescript-eslint": "^8.16.0"
  78. },
  79. "dependencies": {
  80. "vscode-languageclient": "^9.0.1"
  81. }
  82. }