package.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {
  2. "name": "carbon-vscode",
  3. "displayName": "Carbon Language",
  4. "version": "0.0.8",
  5. "publisher": "carbon-lang",
  6. "description": "Carbon language support for the 'Code - OSS' family of editors.",
  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. "id": "semir",
  33. "aliases": [
  34. "SemIR"
  35. ],
  36. "extensions": [
  37. ".semir"
  38. ]
  39. }
  40. ],
  41. "grammars": [
  42. {
  43. "language": "carbon",
  44. "scopeName": "source.carbon",
  45. "path": "./carbon.tmLanguage.json"
  46. },
  47. {
  48. "language": "semir",
  49. "scopeName": "source.carbon-semir",
  50. "path": "./semir.tmLanguage.json"
  51. },
  52. {
  53. "scopeName": "source.carbon-check-test",
  54. "path": "./carbon-check-test.tmLanguage.json",
  55. "injectTo": [
  56. "source.carbon"
  57. ]
  58. }
  59. ],
  60. "configuration": {
  61. "type": "object",
  62. "title": "Carbon Language",
  63. "properties": {
  64. "carbon.carbonPath": {
  65. "type": "string",
  66. "description": "The path to the `carbon` binary.",
  67. "default": "./bazel-bin/toolchain/carbon"
  68. },
  69. "carbon.carbonServerCommandArgs": {
  70. "type": "string",
  71. "description": "Extra flags to pass to `carbon` before the `language-server` subcommand, such as `-v` for debugging.",
  72. "default": ""
  73. },
  74. "carbon.carbonServerSubcommandArgs": {
  75. "type": "string",
  76. "description": "Extra flags to pass to the `language-server` subcommand.",
  77. "default": ""
  78. }
  79. }
  80. },
  81. "commands": [
  82. {
  83. "command": "carbon.lsp.restart",
  84. "title": "carbon: Restart language server"
  85. }
  86. ]
  87. },
  88. "scripts": {
  89. "vscode:prepublish": "npm run package",
  90. "compile": "npm run check-types && npm run lint && node esbuild.js",
  91. "watch": "npm-run-all -p watch:*",
  92. "watch:esbuild": "node esbuild.js --watch",
  93. "watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
  94. "package": "npm run check-types && npm run lint && node esbuild.js --production",
  95. "compile-tests": "tsc -p . --outDir out",
  96. "check-types": "tsc --noEmit",
  97. "lint": "eslint"
  98. },
  99. "devDependencies": {
  100. "@eslint/js": "^9.13.0",
  101. "@stylistic/eslint-plugin": "^2.9.0",
  102. "@types/node": "^20",
  103. "@types/vscode": "^1.73.0",
  104. "@vscode/vsce": "^2.27.0",
  105. "esbuild": "^0.25.0",
  106. "eslint": "^9.13.0",
  107. "typescript": "^5.7.2",
  108. "typescript-eslint": "^8.16.0"
  109. },
  110. "dependencies": {
  111. "vscode-languageclient": "^9.0.1"
  112. }
  113. }