package.json 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {
  2. "name": "carbon-vscode",
  3. "displayName": "Carbon Language",
  4. "version": "0.0.4",
  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/install/run_carbon"
  47. }
  48. }
  49. }
  50. },
  51. "scripts": {
  52. "vscode:prepublish": "npm run package",
  53. "compile": "npm run check-types && npm run lint && node esbuild.js",
  54. "watch": "npm-run-all -p watch:*",
  55. "watch:esbuild": "node esbuild.js --watch",
  56. "watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
  57. "package": "npm run check-types && npm run lint && node esbuild.js --production",
  58. "compile-tests": "tsc -p . --outDir out",
  59. "check-types": "tsc --noEmit",
  60. "lint": "eslint"
  61. },
  62. "devDependencies": {
  63. "@eslint/js": "^9.13.0",
  64. "@stylistic/eslint-plugin": "^2.9.0",
  65. "@types/node": "^20",
  66. "@types/vscode": "^1.73.0",
  67. "@vscode/vsce": "^2.27.0",
  68. "esbuild": "^0.24.0",
  69. "eslint": "^9.13.0",
  70. "typescript": "^5.7.2",
  71. "typescript-eslint": "^8.16.0"
  72. },
  73. "dependencies": {
  74. "vscode-languageclient": "^9.0.1"
  75. }
  76. }