@enjoys/context-engine 1.1.0 → 1.1.1

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 (85) hide show
  1. package/data/codeActions/dart.json +31 -0
  2. package/data/codeActions/docker-compose.json +112 -0
  3. package/data/codeActions/kotlin.json +18 -0
  4. package/data/codeActions/scala.json +26 -0
  5. package/data/codeActions/swift.json +26 -0
  6. package/data/codeLens/dart.json +15 -0
  7. package/data/codeLens/docker-compose.json +4 -0
  8. package/data/codeLens/kotlin.json +10 -0
  9. package/data/codeLens/scala.json +18 -0
  10. package/data/codeLens/swift.json +15 -0
  11. package/data/color/dart.json +37 -0
  12. package/data/color/docker-compose.json +6 -0
  13. package/data/color/kotlin.json +12 -0
  14. package/data/color/scala.json +13 -0
  15. package/data/color/swift.json +37 -0
  16. package/data/commands/kotlin.json +45 -0
  17. package/data/commands/scala.json +171 -0
  18. package/data/commands/swift.json +67 -0
  19. package/data/completion/dart.json +1436 -0
  20. package/data/completion/docker-compose.json +959 -0
  21. package/data/completion/kotlin.json +1580 -0
  22. package/data/completion/scala.json +1076 -0
  23. package/data/completion/swift.json +1742 -0
  24. package/data/declaration/dart.json +25 -0
  25. package/data/declaration/docker-compose.json +42 -0
  26. package/data/declaration/kotlin.json +14 -0
  27. package/data/declaration/scala.json +23 -0
  28. package/data/declaration/swift.json +18 -0
  29. package/data/defination/dart.json +369 -0
  30. package/data/defination/docker-compose.json +347 -0
  31. package/data/defination/kotlin.json +789 -0
  32. package/data/defination/scala.json +285 -0
  33. package/data/defination/swift.json +551 -0
  34. package/data/documentHighlight/dart.json +84 -0
  35. package/data/documentHighlight/docker-compose.json +233 -0
  36. package/data/documentHighlight/kotlin.json +37 -0
  37. package/data/documentHighlight/scala.json +79 -0
  38. package/data/documentHighlight/swift.json +89 -0
  39. package/data/documentSymbol/dart.json +20 -0
  40. package/data/documentSymbol/docker-compose.json +75 -0
  41. package/data/documentSymbol/kotlin.json +15 -0
  42. package/data/documentSymbol/scala.json +21 -0
  43. package/data/documentSymbol/swift.json +17 -0
  44. package/data/formatting/dart.json +16 -0
  45. package/data/formatting/docker-compose.json +24 -0
  46. package/data/formatting/kotlin.json +14 -0
  47. package/data/formatting/scala.json +17 -0
  48. package/data/formatting/swift.json +19 -0
  49. package/data/hover/dart.json +161 -0
  50. package/data/hover/docker-compose.json +404 -0
  51. package/data/hover/kotlin.json +341 -0
  52. package/data/hover/scala.json +209 -0
  53. package/data/hover/swift.json +239 -0
  54. package/data/implementation/dart.json +14 -0
  55. package/data/implementation/docker-compose.json +7 -0
  56. package/data/implementation/kotlin.json +13 -0
  57. package/data/implementation/scala.json +16 -0
  58. package/data/implementation/swift.json +14 -0
  59. package/data/inlayHints/dart.json +29 -0
  60. package/data/inlayHints/docker-compose.json +43 -0
  61. package/data/inlayHints/kotlin.json +23 -0
  62. package/data/inlayHints/scala.json +42 -0
  63. package/data/inlayHints/swift.json +37 -0
  64. package/data/inlineCompletions/dart.json +27 -0
  65. package/data/inlineCompletions/docker-compose.json +89 -0
  66. package/data/inlineCompletions/kotlin.json +19 -0
  67. package/data/inlineCompletions/scala.json +26 -0
  68. package/data/inlineCompletions/swift.json +23 -0
  69. package/data/links/dart.json +16 -0
  70. package/data/links/docker-compose.json +47 -0
  71. package/data/links/kotlin.json +10 -0
  72. package/data/links/scala.json +17 -0
  73. package/data/links/swift.json +13 -0
  74. package/data/manifest.json +38 -0
  75. package/data/references/dart.json +15 -0
  76. package/data/references/docker-compose.json +42 -0
  77. package/data/references/kotlin.json +12 -0
  78. package/data/references/scala.json +15 -0
  79. package/data/references/swift.json +14 -0
  80. package/data/typeDefinition/dart.json +35 -0
  81. package/data/typeDefinition/docker-compose.json +4 -0
  82. package/data/typeDefinition/kotlin.json +33 -0
  83. package/data/typeDefinition/scala.json +52 -0
  84. package/data/typeDefinition/swift.json +56 -0
  85. package/package.json +1 -1
@@ -0,0 +1,31 @@
1
+ {
2
+ "language": "dart",
3
+ "codeActions": [
4
+ {"title": "Convert to StatefulWidget", "kind": "refactor.rewrite", "description": "Convert a StatelessWidget to a StatefulWidget with State class", "pattern": "class\\s+\\w+\\s+extends\\s+StatelessWidget", "isPreferred": false},
5
+ {"title": "Convert to StatelessWidget", "kind": "refactor.rewrite", "description": "Convert a StatefulWidget to a StatelessWidget", "pattern": "class\\s+\\w+\\s+extends\\s+StatefulWidget", "isPreferred": false},
6
+ {"title": "Extract widget", "kind": "refactor.extract", "description": "Extract the selected widget tree into a new widget class", "pattern": "\\w+\\(", "isPreferred": false},
7
+ {"title": "Wrap with widget", "kind": "refactor.rewrite", "description": "Wrap a widget with a parent widget (Container, Padding, Center, etc.)", "pattern": "\\w+\\(", "isPreferred": false},
8
+ {"title": "Wrap with Builder", "kind": "refactor.rewrite", "description": "Wrap widget with a Builder for a new BuildContext", "pattern": "\\w+\\(", "isPreferred": false},
9
+ {"title": "Add const modifier", "kind": "quickfix", "description": "Add const to constructors and literals for compile-time optimization", "pattern": "\\w+\\(", "isPreferred": true},
10
+ {"title": "Remove const modifier", "kind": "quickfix", "description": "Remove unnecessary const modifier", "pattern": "const\\s+\\w+", "isPreferred": false},
11
+ {"title": "Organize imports", "kind": "source.organizeImports", "description": "Sort and remove unused imports", "pattern": "^import\\s+", "isPreferred": true},
12
+ {"title": "Convert to expression body", "kind": "refactor.rewrite", "description": "Convert a block body with single return to => expression", "pattern": "\\{\\s*return\\s+", "isPreferred": false},
13
+ {"title": "Convert to block body", "kind": "refactor.rewrite", "description": "Convert an expression body (=>) to a block body with return", "pattern": "=>\\s+", "isPreferred": false},
14
+ {"title": "Add required keyword", "kind": "quickfix", "description": "Add required keyword to named parameter", "pattern": "\\{[^}]*\\w+\\s+\\w+", "isPreferred": true},
15
+ {"title": "Sort child properties last", "kind": "refactor.rewrite", "description": "Move child/children property to the end of the widget constructor", "pattern": "child:", "isPreferred": false},
16
+ {"title": "Add null check", "kind": "quickfix", "description": "Add null safety check (! or ?? default)", "pattern": "\\w+\\?", "isPreferred": false},
17
+ {"title": "Convert to switch expression", "kind": "refactor.rewrite", "description": "Convert switch statement to switch expression (Dart 3)", "pattern": "switch\\s*\\(", "isPreferred": false},
18
+ {"title": "Create missing override", "kind": "quickfix", "description": "Create missing override methods from superclass or interface", "pattern": "class\\s+\\w+\\s+(?:extends|implements)", "isPreferred": true},
19
+ {"title": "Add type annotation", "kind": "quickfix", "description": "Add explicit type annotation to var/final declaration", "pattern": "(?:var|final)\\s+\\w+\\s*=", "isPreferred": false},
20
+ {"title": "Convert to for-in", "kind": "refactor.rewrite", "description": "Convert indexed for loop to for-in loop", "pattern": "for\\s*\\(\\s*(?:var|int)\\s+\\w+\\s*=\\s*0", "isPreferred": false},
21
+ {"title": "Add trailing comma", "kind": "quickfix", "description": "Add trailing comma for better formatting", "pattern": "\\w+\\([^)]+\\)", "isPreferred": false},
22
+ {"title": "Convert to relative import", "kind": "refactor.rewrite", "description": "Convert package: import to relative import", "pattern": "import\\s+'package:", "isPreferred": false},
23
+ {"title": "Extract method", "kind": "refactor.extract", "description": "Extract selected code into a new method", "pattern": ".*", "isPreferred": false},
24
+ {"title": "Extract local variable", "kind": "refactor.extract", "description": "Extract selected expression into a local variable", "pattern": ".*", "isPreferred": false},
25
+ {"title": "Inline method", "kind": "refactor.inline", "description": "Inline the body of a method at its call sites", "pattern": "\\w+\\s*\\(", "isPreferred": false},
26
+ {"title": "Convert to multiline string", "kind": "refactor.rewrite", "description": "Convert a string to a multiline (triple-quoted) string", "pattern": "'[^']*'|\"[^\"]*\"", "isPreferred": false},
27
+ {"title": "Wrap with Column", "kind": "refactor.rewrite", "description": "Wrap selected widget with a Column", "pattern": "\\w+\\(", "isPreferred": false},
28
+ {"title": "Wrap with Row", "kind": "refactor.rewrite", "description": "Wrap selected widget with a Row", "pattern": "\\w+\\(", "isPreferred": false}
29
+ ],
30
+ "providedCodeActionKinds": ["quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.fixAll", "source.organizeImports", "source.sortMembers"]
31
+ }
@@ -0,0 +1,112 @@
1
+ {
2
+ "language": "docker-compose",
3
+ "codeActions": [
4
+ {
5
+ "title": "Sort services alphabetically",
6
+ "kind": "source.organizeImports",
7
+ "description": "Sort service definitions alphabetically by name",
8
+ "pattern": "\\bservices\\b",
9
+ "isPreferred": true
10
+ },
11
+ {
12
+ "title": "Add healthcheck to service",
13
+ "kind": "quickfix",
14
+ "description": "Add a healthcheck configuration to the selected service",
15
+ "pattern": "\\bimage\\b|\\bbuild\\b",
16
+ "isPreferred": false
17
+ },
18
+ {
19
+ "title": "Add restart policy",
20
+ "kind": "quickfix",
21
+ "description": "Add a restart policy (unless-stopped) to the service",
22
+ "pattern": "\\bimage\\b|\\bbuild\\b",
23
+ "isPreferred": false
24
+ },
25
+ {
26
+ "title": "Convert short volume syntax to long syntax",
27
+ "kind": "refactor.rewrite",
28
+ "description": "Convert short volume mount syntax to long-form syntax",
29
+ "pattern": "\\bvolumes\\b",
30
+ "isPreferred": false
31
+ },
32
+ {
33
+ "title": "Convert short port syntax to long syntax",
34
+ "kind": "refactor.rewrite",
35
+ "description": "Convert short port mapping syntax to long-form syntax",
36
+ "pattern": "\\bports\\b",
37
+ "isPreferred": false
38
+ },
39
+ {
40
+ "title": "Extract service to separate file",
41
+ "kind": "refactor.extract",
42
+ "description": "Extract the selected service definition to a separate Compose file and use include",
43
+ "pattern": "\\bservices\\b",
44
+ "isPreferred": false
45
+ },
46
+ {
47
+ "title": "Extract common config to x- extension",
48
+ "kind": "refactor.extract",
49
+ "description": "Extract common configuration into a YAML extension field (x-) with anchors",
50
+ "pattern": ".*",
51
+ "isPreferred": false
52
+ },
53
+ {
54
+ "title": "Add depends_on with health condition",
55
+ "kind": "quickfix",
56
+ "description": "Add depends_on with service_healthy condition for a dependency",
57
+ "pattern": "\\bimage\\b|\\bbuild\\b",
58
+ "isPreferred": false
59
+ },
60
+ {
61
+ "title": "Add resource limits",
62
+ "kind": "quickfix",
63
+ "description": "Add deploy resource limits (CPU and memory) to the service",
64
+ "pattern": "\\bimage\\b|\\bbuild\\b",
65
+ "isPreferred": false
66
+ },
67
+ {
68
+ "title": "Add logging configuration",
69
+ "kind": "quickfix",
70
+ "description": "Add JSON file logging with rotation settings",
71
+ "pattern": "\\bimage\\b|\\bbuild\\b",
72
+ "isPreferred": false
73
+ },
74
+ {
75
+ "title": "Fix all auto-fixable problems",
76
+ "kind": "source.fixAll",
77
+ "description": "Apply all available quick fixes",
78
+ "pattern": ".*",
79
+ "isPreferred": false
80
+ },
81
+ {
82
+ "title": "Add security hardening",
83
+ "kind": "quickfix",
84
+ "description": "Add security options: read_only, no-new-privileges, cap_drop ALL",
85
+ "pattern": "\\bimage\\b|\\bbuild\\b",
86
+ "isPreferred": false
87
+ },
88
+ {
89
+ "title": "Convert environment list to map",
90
+ "kind": "refactor.rewrite",
91
+ "description": "Convert environment variables from list syntax to map syntax",
92
+ "pattern": "\\benvironment\\b",
93
+ "isPreferred": false
94
+ },
95
+ {
96
+ "title": "Add develop watch configuration",
97
+ "kind": "quickfix",
98
+ "description": "Add docker compose watch configuration for development",
99
+ "pattern": "\\bbuild\\b",
100
+ "isPreferred": false
101
+ }
102
+ ],
103
+ "providedCodeActionKinds": [
104
+ "quickfix",
105
+ "refactor",
106
+ "refactor.extract",
107
+ "refactor.rewrite",
108
+ "source",
109
+ "source.fixAll",
110
+ "source.organizeImports"
111
+ ]
112
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "language": "kotlin",
3
+ "codeActions": [
4
+ {"title": "Convert to expression body", "kind": "refactor.rewrite", "description": "Convert function with single return to expression body", "pattern": "fun\\s+\\w+.*\\{\\s*return\\s+", "isPreferred": false},
5
+ {"title": "Add explicit return type", "kind": "refactor.rewrite", "description": "Add explicit return type to function", "pattern": "fun\\s+\\w+\\(.*\\)\\s*\\{", "isPreferred": false},
6
+ {"title": "Convert to data class", "kind": "refactor.rewrite", "description": "Convert class to data class", "pattern": "class\\s+\\w+", "isPreferred": false},
7
+ {"title": "Extract function", "kind": "refactor.extract", "description": "Extract selected code into a new function", "pattern": ".*", "isPreferred": false},
8
+ {"title": "Convert string to template", "kind": "refactor.rewrite", "description": "Convert string concatenation to template", "pattern": "\".*\"\\s*\\+", "isPreferred": false},
9
+ {"title": "Add null check", "kind": "quickfix", "description": "Add null safety check", "pattern": "\\w+\\.", "isPreferred": true},
10
+ {"title": "Convert to when expression", "kind": "refactor.rewrite", "description": "Convert if-else chain to when", "pattern": "if\\s*\\(.*\\).*else\\s+if", "isPreferred": false},
11
+ {"title": "Convert var to val", "kind": "quickfix", "description": "Convert mutable variable to immutable", "pattern": "var\\s+\\w+", "isPreferred": true},
12
+ {"title": "Organize imports", "kind": "source.organizeImports", "description": "Remove unused and sort imports", "pattern": "^import\\s+", "isPreferred": true},
13
+ {"title": "Add safe call", "kind": "quickfix", "description": "Replace direct call with safe call operator", "pattern": "\\w+\\.\\w+", "isPreferred": false},
14
+ {"title": "Convert to scope function", "kind": "refactor.rewrite", "description": "Convert to let/run/apply/also", "pattern": "\\w+\\.\\w+", "isPreferred": false},
15
+ {"title": "Add missing override", "kind": "quickfix", "description": "Add override modifier to method", "pattern": "fun\\s+\\w+", "isPreferred": true}
16
+ ],
17
+ "providedCodeActionKinds": ["quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.fixAll", "source.organizeImports"]
18
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "language": "scala",
3
+ "codeActions": [
4
+ {"title": "Extract method", "kind": "refactor.extract", "description": "Extract selected code into a new method", "pattern": ".*", "isPreferred": false},
5
+ {"title": "Convert to for-comprehension", "kind": "refactor.rewrite", "description": "Convert chained flatMap/map/filter calls to a for-comprehension", "pattern": "\\.(?:flatMap|map|filter)\\s*[{(]", "isPreferred": false},
6
+ {"title": "Organize imports", "kind": "source.organizeImports", "description": "Sort, group, and remove unused imports", "pattern": "^import\\s+", "isPreferred": true},
7
+ {"title": "Convert to case class", "kind": "refactor.rewrite", "description": "Convert a regular class to a case class with auto-generated methods", "pattern": "^\\s*class\\s+\\w+\\s*\\(", "isPreferred": false},
8
+ {"title": "Add type annotation", "kind": "quickfix", "description": "Add explicit type annotation to val/var/def", "pattern": "(?:val|var|def)\\s+\\w+\\s*=", "isPreferred": false},
9
+ {"title": "Convert to pattern match", "kind": "refactor.rewrite", "description": "Convert if-else chain to pattern match expression", "pattern": "if\\s*\\(.*\\).*else\\s+if", "isPreferred": false},
10
+ {"title": "Inline variable", "kind": "refactor.inline", "description": "Inline a val or var at its usage sites", "pattern": "(?:val|var)\\s+\\w+\\s*=", "isPreferred": false},
11
+ {"title": "Convert to given", "kind": "refactor.rewrite", "description": "Convert implicit val/def to Scala 3 given instance", "pattern": "implicit\\s+(?:val|def)\\s+\\w+", "isPreferred": false},
12
+ {"title": "Extract to trait", "kind": "refactor.extract", "description": "Extract selected methods into a new trait", "pattern": "def\\s+\\w+", "isPreferred": false},
13
+ {"title": "Add override modifier", "kind": "quickfix", "description": "Add override keyword to a method that overrides a parent member", "pattern": "def\\s+\\w+.*(?:extends|with)", "isPreferred": true},
14
+ {"title": "Convert string interpolation", "kind": "refactor.rewrite", "description": "Convert string concatenation to string interpolation or vice versa", "pattern": "\"[^\"]*\"\\s*\\+|s\"[^\"]*\\$", "isPreferred": false},
15
+ {"title": "Add missing import", "kind": "quickfix", "description": "Add import for an unresolved symbol", "pattern": "\\b[A-Z]\\w+", "isPreferred": true},
16
+ {"title": "Convert to extension method", "kind": "refactor.rewrite", "description": "Convert implicit class to Scala 3 extension method", "pattern": "implicit\\s+class\\s+\\w+", "isPreferred": false},
17
+ {"title": "Implement abstract members", "kind": "quickfix", "description": "Generate stub implementations for abstract members from trait/class", "pattern": "class\\s+\\w+\\s*.*(?:extends|with)", "isPreferred": true},
18
+ {"title": "Extract local variable", "kind": "refactor.extract", "description": "Extract an expression into a local val", "pattern": ".*", "isPreferred": false},
19
+ {"title": "Convert to using clause", "kind": "refactor.rewrite", "description": "Convert implicit parameter to Scala 3 using clause", "pattern": "\\(implicit\\s+", "isPreferred": false},
20
+ {"title": "Rename symbol", "kind": "refactor.rename", "description": "Rename a symbol across all usages in the workspace", "pattern": "\\b\\w+\\b", "isPreferred": false},
21
+ {"title": "Convert match to if-else", "kind": "refactor.rewrite", "description": "Convert a simple match expression to an if-else chain", "pattern": "\\s+match\\s*\\{", "isPreferred": false},
22
+ {"title": "Add exhaustive cases", "kind": "quickfix", "description": "Add missing cases for sealed type in match expression", "pattern": "match\\s*\\{", "isPreferred": true},
23
+ {"title": "Convert to enum", "kind": "refactor.rewrite", "description": "Convert sealed trait + case objects to Scala 3 enum", "pattern": "sealed\\s+trait\\s+\\w+", "isPreferred": false}
24
+ ],
25
+ "providedCodeActionKinds": ["quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "refactor.rename", "source", "source.organizeImports"]
26
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "language": "swift",
3
+ "codeActions": [
4
+ {"title": "Extract function", "kind": "refactor.extract", "description": "Extract selected code into a new function", "pattern": ".*", "isPreferred": false},
5
+ {"title": "Extract to computed property", "kind": "refactor.extract", "description": "Extract expression to a computed property", "pattern": "(?:var|let)\\s+\\w+.*=.*", "isPreferred": false},
6
+ {"title": "Convert if-let to guard", "kind": "refactor.rewrite", "description": "Convert if-let optional binding to guard-let early exit", "pattern": "if\\s+let\\s+\\w+\\s*=", "isPreferred": false},
7
+ {"title": "Add missing protocol stubs", "kind": "quickfix", "description": "Add default implementations for required protocol methods", "pattern": ":\\s*\\w+Protocol|:\\s*\\w+able|:\\s*\\w+ing", "isPreferred": true},
8
+ {"title": "Convert to async/await", "kind": "refactor.rewrite", "description": "Convert completion handler pattern to async/await", "pattern": "completion\\s*:\\s*@escaping|completionHandler", "isPreferred": false},
9
+ {"title": "Organize imports", "kind": "source.organizeImports", "description": "Sort and remove unused imports", "pattern": "^import\\s+", "isPreferred": true},
10
+ {"title": "Add access modifier", "kind": "refactor.rewrite", "description": "Add explicit access modifier to declaration", "pattern": "^\\s*(?:func|class|struct|enum|protocol|var|let)\\s+", "isPreferred": false},
11
+ {"title": "Convert closure to trailing", "kind": "refactor.rewrite", "description": "Convert closure argument to trailing closure syntax", "pattern": "\\(.*\\{.*\\}\\s*\\)", "isPreferred": false},
12
+ {"title": "Wrap in do-catch", "kind": "refactor.rewrite", "description": "Wrap throwing expression in do-catch block", "pattern": "try\\s+", "isPreferred": false},
13
+ {"title": "Convert force unwrap to optional binding", "kind": "quickfix", "description": "Replace force unwrap (!) with safe optional binding (if let/guard let)", "pattern": "\\w+!", "isPreferred": true},
14
+ {"title": "Add Codable conformance", "kind": "quickfix", "description": "Add Codable protocol conformance with CodingKeys", "pattern": "struct\\s+\\w+|class\\s+\\w+", "isPreferred": false},
15
+ {"title": "Convert to switch", "kind": "refactor.rewrite", "description": "Convert if-else chain to switch statement", "pattern": "if\\s+.*==.*\\{.*\\}\\s*else\\s+if", "isPreferred": false},
16
+ {"title": "Convert guard to if-let", "kind": "refactor.rewrite", "description": "Convert guard-let early exit to if-let optional binding", "pattern": "guard\\s+let\\s+\\w+\\s*=", "isPreferred": false},
17
+ {"title": "Add default case", "kind": "quickfix", "description": "Add missing default case to non-exhaustive switch", "pattern": "switch\\s+\\w+\\s*\\{", "isPreferred": true},
18
+ {"title": "Convert to string interpolation", "kind": "refactor.rewrite", "description": "Convert string concatenation to string interpolation", "pattern": "\".*\"\\s*\\+\\s*", "isPreferred": false},
19
+ {"title": "Extract to local variable", "kind": "refactor.extract", "description": "Extract expression to a local let constant", "pattern": ".*", "isPreferred": false},
20
+ {"title": "Add @MainActor annotation", "kind": "quickfix", "description": "Add @MainActor annotation for main thread safety", "pattern": "class\\s+\\w+|func\\s+\\w+", "isPreferred": false},
21
+ {"title": "Convert to async sequence", "kind": "refactor.rewrite", "description": "Convert delegate/callback pattern to AsyncSequence", "pattern": "func\\s+\\w+.*delegate|Delegate", "isPreferred": false},
22
+ {"title": "Generate memberwise init", "kind": "quickfix", "description": "Generate a memberwise initializer for the type", "pattern": "struct\\s+\\w+|class\\s+\\w+", "isPreferred": false},
23
+ {"title": "Fix all issues", "kind": "source.fixAll", "description": "Apply all available quick fixes", "pattern": ".*", "isPreferred": true}
24
+ ],
25
+ "providedCodeActionKinds": ["quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.fixAll", "source.organizeImports"]
26
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "language": "dart",
3
+ "codeLensPatterns": [
4
+ {"pattern": "^\\s*(?:(?:abstract|sealed|interface|base|final|mixin)\\s+)*class\\s+(\\w+)", "captureGroup": 1, "commandId": "editor.action.goToImplementation", "title": "Find Implementations", "description": "Show all implementations of this class"},
5
+ {"pattern": "^\\s*(?:(?:static|external)\\s+)*(?:\\w+(?:<[^>]*>)?\\s+)?(\\w+)\\s*(?:<[^>]*>)?\\s*\\([^)]*\\)\\s*(?:async\\*?|sync\\*)?\\s*[{=]", "captureGroup": 1, "commandId": "editor.action.referenceSearch.trigger", "title": "Find References", "description": "Show all references to this function"},
6
+ {"pattern": "^\\s*void\\s+main\\s*\\(", "captureGroup": 0, "commandId": "workbench.action.debug.start", "title": "Run", "description": "Run main function"},
7
+ {"pattern": "^\\s*test\\s*\\(\\s*'([^']+)'", "captureGroup": 1, "commandId": "testing.runAtCursor", "title": "Run Test", "description": "Run this test"},
8
+ {"pattern": "^\\s*group\\s*\\(\\s*'([^']+)'", "captureGroup": 1, "commandId": "testing.runAtCursor", "title": "Run Group", "description": "Run this test group"},
9
+ {"pattern": "^\\s*testWidgets\\s*\\(\\s*'([^']+)'", "captureGroup": 1, "commandId": "testing.runAtCursor", "title": "Run Widget Test", "description": "Run this widget test"},
10
+ {"pattern": "^\\s*(?:(?:abstract|sealed|interface|base|final|mixin)\\s+)*class\\s+(\\w+)\\s+extends\\s+(?:Stateless|Stateful)Widget", "captureGroup": 1, "commandId": "editor.action.referenceSearch.trigger", "title": "Find References", "description": "Show all references to this widget class"},
11
+ {"pattern": "^\\s*enum\\s+(\\w+)", "captureGroup": 1, "commandId": "editor.action.referenceSearch.trigger", "title": "Find References", "description": "Show all references to this enum"},
12
+ {"pattern": "^\\s*mixin\\s+(\\w+)", "captureGroup": 1, "commandId": "editor.action.referenceSearch.trigger", "title": "Find References", "description": "Show all references to this mixin"},
13
+ {"pattern": "^\\s*extension\\s+(\\w+)\\s+on", "captureGroup": 1, "commandId": "editor.action.referenceSearch.trigger", "title": "Find References", "description": "Show all references to this extension"}
14
+ ]
15
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "language": "docker-compose",
3
+ "codeLensPatterns": []
4
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "language": "kotlin",
3
+ "codeLensPatterns": [
4
+ {"pattern": "^\\s*(?:(?:private|protected|internal|public|override|open|abstract|suspend|inline)\\s+)*fun\\s+(\\w+)", "captureGroup": 1, "commandId": "editor.action.referenceSearch.trigger", "title": "Find References", "description": "Show all references to this function"},
5
+ {"pattern": "^\\s*(?:(?:abstract|open|sealed|data|enum|inner|annotation)\\s+)*class\\s+(\\w+)", "captureGroup": 1, "commandId": "editor.action.goToImplementation", "title": "Find Implementations", "description": "Show all implementations"},
6
+ {"pattern": "^\\s*interface\\s+(\\w+)", "captureGroup": 1, "commandId": "editor.action.goToImplementation", "title": "Find Implementations", "description": "Show all implementations of this interface"},
7
+ {"pattern": "^\\s*@Test\\s*\\n\\s*fun\\s+(\\w+)", "captureGroup": 1, "commandId": "testing.runAtCursor", "title": "Run Test", "description": "Run this test"},
8
+ {"pattern": "^\\s*fun\\s+main\\s*\\(", "captureGroup": 0, "commandId": "workbench.action.debug.start", "title": "Run", "description": "Run main function"}
9
+ ]
10
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "language": "scala",
3
+ "codeLensPatterns": [
4
+ {"pattern": "^\\s*(?:(?:override|private|protected|final|abstract|implicit|inline|transparent)\\s+)*def\\s+(\\w+)", "captureGroup": 1, "commandId": "editor.action.referenceSearch.trigger", "title": "Find References", "description": "Show all references to this method"},
5
+ {"pattern": "^\\s*(?:(?:abstract|sealed|final|open|case|implicit)\\s+)*class\\s+(\\w+)", "captureGroup": 1, "commandId": "editor.action.goToImplementation", "title": "Find Implementations", "description": "Show all implementations of this class"},
6
+ {"pattern": "^\\s*(?:sealed\\s+)?trait\\s+(\\w+)", "captureGroup": 1, "commandId": "editor.action.goToImplementation", "title": "Find Implementations", "description": "Show all implementations of this trait"},
7
+ {"pattern": "^\\s*(?:case\\s+)?object\\s+(\\w+)", "captureGroup": 1, "commandId": "editor.action.referenceSearch.trigger", "title": "Find References", "description": "Show all references to this object"},
8
+ {"pattern": "^\\s*(?:(?:override|private|protected|final|lazy|implicit)\\s+)*val\\s+(\\w+)", "captureGroup": 1, "commandId": "editor.action.referenceSearch.trigger", "title": "Find References", "description": "Show all references to this val"},
9
+ {"pattern": "^\\s*def\\s+main\\s*\\(", "captureGroup": 0, "commandId": "workbench.action.debug.start", "title": "Run", "description": "Run main method"},
10
+ {"pattern": "^\\s*@main\\s+def\\s+(\\w+)", "captureGroup": 1, "commandId": "workbench.action.debug.start", "title": "Run", "description": "Run @main method"},
11
+ {"pattern": "^\\s*object\\s+(\\w+)\\s+extends\\s+App", "captureGroup": 1, "commandId": "workbench.action.debug.start", "title": "Run", "description": "Run App object"},
12
+ {"pattern": "^\\s*\"(.*?)\"\\s+in\\s*\\{", "captureGroup": 1, "commandId": "testing.runAtCursor", "title": "Run Test", "description": "Run this test (ScalaTest)"},
13
+ {"pattern": "^\\s*test\\s*\\(\\s*\"([^\"]+)\"", "captureGroup": 1, "commandId": "testing.runAtCursor", "title": "Run Test", "description": "Run this test"},
14
+ {"pattern": "^\\s*it\\s+should\\s+\"([^\"]+)\"", "captureGroup": 1, "commandId": "testing.runAtCursor", "title": "Run Test", "description": "Run this test spec"},
15
+ {"pattern": "^\\s*enum\\s+(\\w+)", "captureGroup": 1, "commandId": "editor.action.referenceSearch.trigger", "title": "Find References", "description": "Show all references to this enum"},
16
+ {"pattern": "^\\s*given\\s+(\\w+)\\s*:", "captureGroup": 1, "commandId": "editor.action.referenceSearch.trigger", "title": "Find References", "description": "Show all references to this given instance"}
17
+ ]
18
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "language": "swift",
3
+ "codeLensPatterns": [
4
+ {"pattern": "^\\s*(?:(?:private|fileprivate|internal|public|open|override|final|static|class|mutating|nonisolated)\\s+)*func\\s+(\\w+)", "captureGroup": 1, "commandId": "editor.action.referenceSearch.trigger", "title": "Find References", "description": "Show all references to this function"},
5
+ {"pattern": "^\\s*(?:(?:private|fileprivate|internal|public|open|final)\\s+)*class\\s+(\\w+)", "captureGroup": 1, "commandId": "editor.action.goToImplementation", "title": "Find Implementations", "description": "Show all subclasses and implementations"},
6
+ {"pattern": "^\\s*(?:(?:private|fileprivate|internal|public)\\s+)*protocol\\s+(\\w+)", "captureGroup": 1, "commandId": "editor.action.goToImplementation", "title": "Find Conformances", "description": "Show all types conforming to this protocol"},
7
+ {"pattern": "^\\s*(?:(?:private|fileprivate|internal|public)\\s+)*struct\\s+(\\w+)", "captureGroup": 1, "commandId": "editor.action.referenceSearch.trigger", "title": "Find References", "description": "Show all references to this struct"},
8
+ {"pattern": "^\\s*(?:(?:private|fileprivate|internal|public)\\s+)*enum\\s+(\\w+)", "captureGroup": 1, "commandId": "editor.action.referenceSearch.trigger", "title": "Find References", "description": "Show all references to this enum"},
9
+ {"pattern": "^\\s*func\\s+test\\w+\\s*\\(", "captureGroup": 0, "commandId": "testing.runAtCursor", "title": "Run Test", "description": "Run this XCTest test method"},
10
+ {"pattern": "^\\s*class\\s+(\\w+)\\s*:\\s*XCTestCase", "captureGroup": 1, "commandId": "testing.runAtCursor", "title": "Run Tests", "description": "Run all tests in this XCTestCase class"},
11
+ {"pattern": "^\\s*@main\\s", "captureGroup": 0, "commandId": "workbench.action.debug.start", "title": "Run", "description": "Run the main entry point"},
12
+ {"pattern": "^\\s*(?:(?:private|fileprivate|internal|public)\\s+)*actor\\s+(\\w+)", "captureGroup": 1, "commandId": "editor.action.referenceSearch.trigger", "title": "Find References", "description": "Show all references to this actor"},
13
+ {"pattern": "^\\s*(?:(?:private|fileprivate|internal|public)\\s+)*extension\\s+(\\w+)", "captureGroup": 1, "commandId": "editor.action.referenceSearch.trigger", "title": "Find References", "description": "Show all references to this extension"}
14
+ ]
15
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "language": "dart",
3
+ "colorPatterns": [
4
+ {"pattern": "Color\\((0x[0-9a-fA-F]{8})\\)", "format": "argb_hex", "description": "Flutter Color with AARRGGBB hex value"},
5
+ {"pattern": "Color\\.fromARGB\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*\\)", "format": "argb", "description": "Color.fromARGB(alpha, red, green, blue)"},
6
+ {"pattern": "Color\\.fromRGBO\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*([\\d.]+)\\s*\\)", "format": "rgbo", "description": "Color.fromRGBO(red, green, blue, opacity)"},
7
+ {"pattern": "Colors\\.(\\w+)", "format": "named", "description": "Material Design named color (Colors.red, Colors.blue, etc.)"},
8
+ {"pattern": "#([0-9a-fA-F]{6})", "format": "hex6", "description": "6-digit hex color in strings"},
9
+ {"pattern": "#([0-9a-fA-F]{8})", "format": "hex8", "description": "8-digit hex color with alpha in strings"},
10
+ {"pattern": "Color\\((0[xX][0-9a-fA-F]+)\\)", "format": "int_hex", "description": "Color from integer hex literal"}
11
+ ],
12
+ "colorPresentations": ["hex", "argb", "rgbo", "named"],
13
+ "namedColors": {
14
+ "Colors.red": "#F44336",
15
+ "Colors.pink": "#E91E63",
16
+ "Colors.purple": "#9C27B0",
17
+ "Colors.deepPurple": "#673AB7",
18
+ "Colors.indigo": "#3F51B5",
19
+ "Colors.blue": "#2196F3",
20
+ "Colors.lightBlue": "#03A9F4",
21
+ "Colors.cyan": "#00BCD4",
22
+ "Colors.teal": "#009688",
23
+ "Colors.green": "#4CAF50",
24
+ "Colors.lightGreen": "#8BC34A",
25
+ "Colors.lime": "#CDDC39",
26
+ "Colors.yellow": "#FFEB3B",
27
+ "Colors.amber": "#FFC107",
28
+ "Colors.orange": "#FF9800",
29
+ "Colors.deepOrange": "#FF5722",
30
+ "Colors.brown": "#795548",
31
+ "Colors.grey": "#9E9E9E",
32
+ "Colors.blueGrey": "#607D8B",
33
+ "Colors.black": "#000000",
34
+ "Colors.white": "#FFFFFF",
35
+ "Colors.transparent": "#00000000"
36
+ }
37
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "language": "docker-compose",
3
+ "colorPatterns": [],
4
+ "colorPresentations": [],
5
+ "namedColors": {}
6
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "language": "kotlin",
3
+ "colorPatterns": [
4
+ {"pattern": "Color\\((0x[0-9a-fA-F]{8})\\)", "format": "argb_hex", "description": "Android Compose Color with ARGB hex"},
5
+ {"pattern": "Color\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*\\)", "format": "rgb", "description": "RGB color constructor"},
6
+ {"pattern": "Color\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*\\)", "format": "rgba", "description": "RGBA color constructor"},
7
+ {"pattern": "#([0-9a-fA-F]{6})", "format": "hex6", "description": "6-digit hex color in strings"},
8
+ {"pattern": "#([0-9a-fA-F]{8})", "format": "hex8", "description": "8-digit hex color with alpha in strings"}
9
+ ],
10
+ "colorPresentations": ["hex", "rgb", "rgba"],
11
+ "namedColors": {}
12
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "language": "scala",
3
+ "colorPatterns": [
4
+ {"pattern": "#([0-9a-fA-F]{6})", "format": "hex6", "description": "6-digit hex color in strings"},
5
+ {"pattern": "#([0-9a-fA-F]{8})", "format": "hex8", "description": "8-digit hex color with alpha in strings"},
6
+ {"pattern": "0x([0-9a-fA-F]{6})", "format": "hex6", "description": "Hex color as integer literal"},
7
+ {"pattern": "0x([0-9a-fA-F]{8})", "format": "hex8", "description": "Hex color with alpha as integer literal"},
8
+ {"pattern": "Color\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*\\)", "format": "rgb", "description": "Color(r, g, b) constructor"},
9
+ {"pattern": "Color\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*\\)", "format": "rgba", "description": "Color(r, g, b, a) constructor"}
10
+ ],
11
+ "colorPresentations": ["hex"],
12
+ "namedColors": {}
13
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "language": "swift",
3
+ "colorPatterns": [
4
+ {"pattern": "UIColor\\(\\s*red:\\s*([\\d.]+)\\s*,\\s*green:\\s*([\\d.]+)\\s*,\\s*blue:\\s*([\\d.]+)\\s*,\\s*alpha:\\s*([\\d.]+)\\s*\\)", "format": "rgba_float", "description": "UIColor with RGBA float components (0.0-1.0)"},
5
+ {"pattern": "NSColor\\(\\s*red:\\s*([\\d.]+)\\s*,\\s*green:\\s*([\\d.]+)\\s*,\\s*blue:\\s*([\\d.]+)\\s*,\\s*alpha:\\s*([\\d.]+)\\s*\\)", "format": "rgba_float", "description": "NSColor with RGBA float components (0.0-1.0)"},
6
+ {"pattern": "UIColor\\(\\s*white:\\s*([\\d.]+)\\s*,\\s*alpha:\\s*([\\d.]+)\\s*\\)", "format": "grayscale_float", "description": "UIColor grayscale with alpha"},
7
+ {"pattern": "Color\\(\\s*red:\\s*([\\d.]+)\\s*,\\s*green:\\s*([\\d.]+)\\s*,\\s*blue:\\s*([\\d.]+)\\s*\\)", "format": "rgb_float", "description": "SwiftUI Color with RGB float components"},
8
+ {"pattern": "Color\\(\\s*red:\\s*([\\d.]+)\\s*,\\s*green:\\s*([\\d.]+)\\s*,\\s*blue:\\s*([\\d.]+)\\s*,\\s*opacity:\\s*([\\d.]+)\\s*\\)", "format": "rgba_float", "description": "SwiftUI Color with RGBA float and opacity"},
9
+ {"pattern": "Color\\(\\.sRGB\\s*,\\s*red:\\s*([\\d.]+)\\s*,\\s*green:\\s*([\\d.]+)\\s*,\\s*blue:\\s*([\\d.]+)\\s*,\\s*opacity:\\s*([\\d.]+)\\s*\\)", "format": "rgba_float", "description": "SwiftUI Color with sRGB color space"},
10
+ {"pattern": "#([0-9a-fA-F]{6})", "format": "hex6", "description": "6-digit hex color in strings"},
11
+ {"pattern": "#([0-9a-fA-F]{8})", "format": "hex8", "description": "8-digit hex color with alpha in strings"},
12
+ {"pattern": "0x([0-9a-fA-F]{6})", "format": "hex6", "description": "Hex color literal"},
13
+ {"pattern": "0x([0-9a-fA-F]{8})", "format": "hex8", "description": "Hex color literal with alpha"}
14
+ ],
15
+ "colorPresentations": ["hex", "rgb", "rgba"],
16
+ "namedColors": {
17
+ ".red": "#FF0000",
18
+ ".green": "#00FF00",
19
+ ".blue": "#0000FF",
20
+ ".white": "#FFFFFF",
21
+ ".black": "#000000",
22
+ ".gray": "#808080",
23
+ ".orange": "#FF8000",
24
+ ".yellow": "#FFFF00",
25
+ ".pink": "#FF2D55",
26
+ ".purple": "#AF52DE",
27
+ ".cyan": "#00FFFF",
28
+ ".mint": "#00C7BE",
29
+ ".teal": "#30B0C7",
30
+ ".indigo": "#5856D6",
31
+ ".brown": "#A2845E",
32
+ ".clear": "#00000000",
33
+ ".primary": "#000000",
34
+ ".secondary": "#8E8E93",
35
+ ".accentColor": "#007AFF"
36
+ }
37
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "kotlin",
3
+ "description": "Kotlin — modern, concise JVM language by JetBrains",
4
+ "category": "language",
5
+ "platforms": ["linux", "macos", "windows"],
6
+ "shells": ["bash", "zsh", "fish", "powershell"],
7
+ "subcommands": [],
8
+ "globalOptions": [
9
+ {"name": "-script", "description": "Run a Kotlin script (.kts)", "type": "string"},
10
+ {"name": "-classpath", "description": "Set classpath", "type": "string"},
11
+ {"name": "-d", "description": "Output directory for compiled classes", "type": "string"},
12
+ {"name": "-include-runtime", "description": "Include Kotlin runtime in jar"},
13
+ {"name": "-jvm-target", "description": "Target JVM version", "type": "string"},
14
+ {"name": "-version", "description": "Show version"},
15
+ {"name": "-help", "description": "Show help"},
16
+ {"name": "-nowarn", "description": "Generate no warnings"},
17
+ {"name": "-Werror", "description": "Report an error if there are any warnings"},
18
+ {"name": "-verbose", "description": "Enable verbose logging output"},
19
+ {"name": "-progressive", "description": "Enable progressive compiler mode"},
20
+ {"name": "-opt-in", "description": "Opt in to an annotation-based API", "type": "string"},
21
+ {"name": "-Xjsr305", "description": "Specify behavior for JSR-305 annotations", "type": "string"},
22
+ {"name": "-api-version", "description": "Allow using declarations from the specified Kotlin version", "type": "string"},
23
+ {"name": "-language-version", "description": "Provide source compatibility with the specified Kotlin version", "type": "string"}
24
+ ],
25
+ "examples": [
26
+ "kotlinc hello.kt -include-runtime -d hello.jar",
27
+ "kotlin hello.jar",
28
+ "kotlinc -script hello.kts",
29
+ "kotlinc -version",
30
+ "gradle build",
31
+ "gradle run",
32
+ "gradle test",
33
+ "./gradlew build",
34
+ "gradle init --type kotlin-application",
35
+ "kotlinc hello.kt -d hello.jar -jvm-target 17",
36
+ "kotlin -classpath hello.jar HelloKt"
37
+ ],
38
+ "relatedCommands": ["java", "gradle", "mvn", "kotlinc"],
39
+ "contextEngine": {
40
+ "detectors": [
41
+ {"name": "version", "description": "Kotlin compiler version", "command": "kotlinc -version 2>&1 | head -1", "parser": "text", "cacheFor": 300, "requiresCmd": "kotlinc"},
42
+ {"name": "gradle_version", "description": "Gradle version", "command": "gradle --version 2>&1 | grep '^Gradle' | head -1", "parser": "text", "cacheFor": 300, "requiresCmd": "gradle"}
43
+ ]
44
+ }
45
+ }