@likec4/language-server 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/ast.d.ts +72 -0
  2. package/dist/ast.js +131 -0
  3. package/dist/elementRef.d.ts +6 -0
  4. package/dist/elementRef.js +39 -0
  5. package/dist/generated/ast.d.ts +346 -0
  6. package/dist/generated/ast.js +353 -0
  7. package/dist/generated/grammar.d.ts +6 -0
  8. package/dist/generated/grammar.js +2259 -0
  9. package/dist/generated/module.d.ts +9 -0
  10. package/dist/generated/module.js +26 -0
  11. package/dist/index.d.ts +3 -0
  12. package/dist/index.js +16 -0
  13. package/dist/logger.d.ts +8 -0
  14. package/dist/logger.js +20 -0
  15. package/dist/lsp/CodeLensProvider.d.ts +8 -0
  16. package/dist/lsp/CodeLensProvider.js +35 -0
  17. package/dist/lsp/DocumentSymbolProvider.d.ts +21 -0
  18. package/dist/lsp/DocumentSymbolProvider.js +138 -0
  19. package/dist/lsp/HoverProvider.d.ts +8 -0
  20. package/dist/lsp/HoverProvider.js +57 -0
  21. package/dist/lsp/SemanticTokenProvider.d.ts +6 -0
  22. package/dist/lsp/SemanticTokenProvider.js +245 -0
  23. package/dist/lsp/index.d.ts +4 -0
  24. package/dist/lsp/index.js +4 -0
  25. package/dist/model/fqn-index.d.ts +17 -0
  26. package/dist/model/fqn-index.js +136 -0
  27. package/dist/model/index.d.ts +3 -0
  28. package/dist/model/index.js +3 -0
  29. package/dist/model/model-builder.d.ts +26 -0
  30. package/dist/model/model-builder.js +325 -0
  31. package/dist/model/model-locator.d.ts +16 -0
  32. package/dist/model/model-locator.js +108 -0
  33. package/dist/module.d.ts +18 -0
  34. package/dist/module.js +57 -0
  35. package/dist/protocol.d.ts +35 -0
  36. package/dist/protocol.js +19 -0
  37. package/dist/references/index.d.ts +2 -0
  38. package/dist/references/index.js +2 -0
  39. package/dist/references/scope-computation.d.ts +10 -0
  40. package/dist/references/scope-computation.js +76 -0
  41. package/dist/references/scope-provider.d.ts +15 -0
  42. package/dist/references/scope-provider.js +110 -0
  43. package/dist/registerProtocolHandlers.d.ts +2 -0
  44. package/dist/registerProtocolHandlers.js +49 -0
  45. package/dist/test/index.d.ts +1 -0
  46. package/dist/test/index.js +1 -0
  47. package/dist/test/testServices.d.ts +15 -0
  48. package/dist/test/testServices.js +53 -0
  49. package/dist/utils.d.ts +2 -0
  50. package/dist/utils.js +7 -0
  51. package/dist/validation/element.d.ts +5 -0
  52. package/dist/validation/element.js +20 -0
  53. package/dist/validation/index.d.ts +2 -0
  54. package/dist/validation/index.js +20 -0
  55. package/dist/validation/specification.d.ts +5 -0
  56. package/dist/validation/specification.js +31 -0
  57. package/dist/validation/view.d.ts +4 -0
  58. package/dist/validation/view.js +19 -0
  59. package/package.json +84 -0
package/package.json ADDED
@@ -0,0 +1,84 @@
1
+ {
2
+ "name": "@likec4/language-server",
3
+ "version": "0.2.0",
4
+ "type": "module",
5
+ "bugs": "https://github.com/likec4/likec4/issues",
6
+ "homepage": "https://like-c4.dev",
7
+ "author": "Denis Davydkov <denis@davydkov.com>",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/likec4/likec4.git"
14
+ },
15
+ "main": "./dist/index.js",
16
+ "types": "./dist/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.js",
21
+ "require": "./dist/index.cjs"
22
+ },
23
+ "./protocol": {
24
+ "types": "./dist/protocol.d.ts",
25
+ "import": "./dist/protocol.js",
26
+ "require": "./dist/protocol.cjs"
27
+ }
28
+ },
29
+ "publishConfig": {
30
+ "registry": "https://registry.npmjs.org",
31
+ "access": "public",
32
+ "main": "./dist/index.js",
33
+ "types": "./dist/index.d.ts",
34
+ "exports": {
35
+ ".": {
36
+ "types": "./dist/index.d.ts",
37
+ "import": "./dist/index.js",
38
+ "require": "./dist/index.cjs"
39
+ },
40
+ "./protocol": {
41
+ "types": "./dist/protocol.d.ts",
42
+ "import": "./dist/protocol.js",
43
+ "require": "./dist/protocol.cjs"
44
+ }
45
+ }
46
+ },
47
+ "scripts": {
48
+ "compile": "",
49
+ "release:build": "run generate && tsc -p tsconfig.esm.json",
50
+ "build:langium": "langium generate",
51
+ "build:ts": "tsc",
52
+ "watch:langium": "langium generate --watch",
53
+ "watch:ts": "tsc --watch",
54
+ "generate": "langium generate",
55
+ "build": "run-s 'build:langium' 'build:ts'",
56
+ "dev": "run-p 'watch:*'",
57
+ "lint": "run -T eslint src/ --fix",
58
+ "clean": "rimraf dist",
59
+ "test": "vitest run",
60
+ "test:watch": "vitest"
61
+ },
62
+ "dependencies": {
63
+ "@likec4/core": "0.2.1",
64
+ "@mobily/ts-belt": "^3.13.1",
65
+ "langium": "^1.1.0",
66
+ "nanoid": "^4.0.2",
67
+ "object-hash": "^3.0.0",
68
+ "rambdax": "^9.1.0",
69
+ "strip-indent": "^4.0.0",
70
+ "tiny-invariant": "^1.3.1",
71
+ "type-fest": "^3.7.2",
72
+ "vscode-languageserver-protocol": "3.17.2",
73
+ "vscode-uri": "3.0.7"
74
+ },
75
+ "devDependencies": {
76
+ "@types/node": "^18.15.6",
77
+ "@types/object-hash": "^3.0.2",
78
+ "langium-cli": "^1.1.0",
79
+ "npm-run-all": "^4.1.5",
80
+ "typescript": "^5.0.3",
81
+ "vite": "^4.2.1",
82
+ "vitest": "^0.29.8"
83
+ }
84
+ }