package.json 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. {
  2. "name": "carbon-vscode",
  3. "displayName": "Carbon Language",
  4. "version": "0.0.7",
  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. "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. "carbon.carbonServerCommandArgs": {
  49. "type": "string",
  50. "description": "Extra flags to pass to `carbon` before the `language-server` subcommand, such as `-v` for debugging.",
  51. "default": ""
  52. },
  53. "carbon.carbonServerSubcommandArgs": {
  54. "type": "string",
  55. "description": "Extra flags to pass to the `language-server` subcommand.",
  56. "default": ""
  57. }
  58. }
  59. },
  60. "commands": [
  61. {
  62. "command": "carbon.lsp.restart",
  63. "title": "carbon: Restart language server"
  64. }
  65. ]
  66. },
  67. "scripts": {
  68. "vscode:prepublish": "npm run package",
  69. "compile": "npm run check-types && npm run lint && node esbuild.js",
  70. "watch": "npm-run-all -p watch:*",
  71. "watch:esbuild": "node esbuild.js --watch",
  72. "watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
  73. "package": "npm run check-types && npm run lint && node esbuild.js --production",
  74. "compile-tests": "tsc -p . --outDir out",
  75. "check-types": "tsc --noEmit",
  76. "lint": "eslint"
  77. },
  78. "devDependencies": {
  79. "@eslint/js": "^9.13.0",
  80. "@stylistic/eslint-plugin": "^2.9.0",
  81. "@types/node": "^20",
  82. "@types/vscode": "^1.73.0",
  83. "@vscode/vsce": "^2.27.0",
  84. "esbuild": "^0.25.0",
  85. "eslint": "^9.13.0",
  86. "typescript": "^5.7.2",
  87. "typescript-eslint": "^8.16.0"
  88. },
  89. "dependencies": {
  90. "vscode-languageclient": "^9.0.1"
  91. }
  92. }