@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.
- package/data/codeActions/dart.json +31 -0
- package/data/codeActions/docker-compose.json +112 -0
- package/data/codeActions/kotlin.json +18 -0
- package/data/codeActions/scala.json +26 -0
- package/data/codeActions/swift.json +26 -0
- package/data/codeLens/dart.json +15 -0
- package/data/codeLens/docker-compose.json +4 -0
- package/data/codeLens/kotlin.json +10 -0
- package/data/codeLens/scala.json +18 -0
- package/data/codeLens/swift.json +15 -0
- package/data/color/dart.json +37 -0
- package/data/color/docker-compose.json +6 -0
- package/data/color/kotlin.json +12 -0
- package/data/color/scala.json +13 -0
- package/data/color/swift.json +37 -0
- package/data/commands/kotlin.json +45 -0
- package/data/commands/scala.json +171 -0
- package/data/commands/swift.json +67 -0
- package/data/completion/dart.json +1436 -0
- package/data/completion/docker-compose.json +959 -0
- package/data/completion/kotlin.json +1580 -0
- package/data/completion/scala.json +1076 -0
- package/data/completion/swift.json +1742 -0
- package/data/declaration/dart.json +25 -0
- package/data/declaration/docker-compose.json +42 -0
- package/data/declaration/kotlin.json +14 -0
- package/data/declaration/scala.json +23 -0
- package/data/declaration/swift.json +18 -0
- package/data/defination/dart.json +369 -0
- package/data/defination/docker-compose.json +347 -0
- package/data/defination/kotlin.json +789 -0
- package/data/defination/scala.json +285 -0
- package/data/defination/swift.json +551 -0
- package/data/documentHighlight/dart.json +84 -0
- package/data/documentHighlight/docker-compose.json +233 -0
- package/data/documentHighlight/kotlin.json +37 -0
- package/data/documentHighlight/scala.json +79 -0
- package/data/documentHighlight/swift.json +89 -0
- package/data/documentSymbol/dart.json +20 -0
- package/data/documentSymbol/docker-compose.json +75 -0
- package/data/documentSymbol/kotlin.json +15 -0
- package/data/documentSymbol/scala.json +21 -0
- package/data/documentSymbol/swift.json +17 -0
- package/data/formatting/dart.json +16 -0
- package/data/formatting/docker-compose.json +24 -0
- package/data/formatting/kotlin.json +14 -0
- package/data/formatting/scala.json +17 -0
- package/data/formatting/swift.json +19 -0
- package/data/hover/dart.json +161 -0
- package/data/hover/docker-compose.json +404 -0
- package/data/hover/kotlin.json +341 -0
- package/data/hover/scala.json +209 -0
- package/data/hover/swift.json +239 -0
- package/data/implementation/dart.json +14 -0
- package/data/implementation/docker-compose.json +7 -0
- package/data/implementation/kotlin.json +13 -0
- package/data/implementation/scala.json +16 -0
- package/data/implementation/swift.json +14 -0
- package/data/inlayHints/dart.json +29 -0
- package/data/inlayHints/docker-compose.json +43 -0
- package/data/inlayHints/kotlin.json +23 -0
- package/data/inlayHints/scala.json +42 -0
- package/data/inlayHints/swift.json +37 -0
- package/data/inlineCompletions/dart.json +27 -0
- package/data/inlineCompletions/docker-compose.json +89 -0
- package/data/inlineCompletions/kotlin.json +19 -0
- package/data/inlineCompletions/scala.json +26 -0
- package/data/inlineCompletions/swift.json +23 -0
- package/data/links/dart.json +16 -0
- package/data/links/docker-compose.json +47 -0
- package/data/links/kotlin.json +10 -0
- package/data/links/scala.json +17 -0
- package/data/links/swift.json +13 -0
- package/data/manifest.json +38 -0
- package/data/references/dart.json +15 -0
- package/data/references/docker-compose.json +42 -0
- package/data/references/kotlin.json +12 -0
- package/data/references/scala.json +15 -0
- package/data/references/swift.json +14 -0
- package/data/typeDefinition/dart.json +35 -0
- package/data/typeDefinition/docker-compose.json +4 -0
- package/data/typeDefinition/kotlin.json +33 -0
- package/data/typeDefinition/scala.json +52 -0
- package/data/typeDefinition/swift.json +56 -0
- package/package.json +1 -1
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "docker-compose",
|
|
3
|
+
"inlineCompletions": [
|
|
4
|
+
{
|
|
5
|
+
"triggerPattern": "^services:\\s*$",
|
|
6
|
+
"insertText": "services:\n ${1:app}:\n image: ${2:nginx:alpine}\n ports:\n - \"${3:80}:${4:80}\"\n restart: unless-stopped\n",
|
|
7
|
+
"description": "New service definition",
|
|
8
|
+
"completeBracketPairs": true
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"triggerPattern": "^\\s*image:\\s*$",
|
|
12
|
+
"insertText": "image: ${1:nginx}:${2:alpine}",
|
|
13
|
+
"description": "Image with tag",
|
|
14
|
+
"completeBracketPairs": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"triggerPattern": "^\\s*build:\\s*$",
|
|
18
|
+
"insertText": "build:\n context: ${1:.}\n dockerfile: ${2:Dockerfile}",
|
|
19
|
+
"description": "Build configuration",
|
|
20
|
+
"completeBracketPairs": true
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"triggerPattern": "^\\s*ports:\\s*$",
|
|
24
|
+
"insertText": "ports:\n - \"${1:8080}:${2:80}\"",
|
|
25
|
+
"description": "Port mapping",
|
|
26
|
+
"completeBracketPairs": true
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"triggerPattern": "^\\s*environment:\\s*$",
|
|
30
|
+
"insertText": "environment:\n ${1:KEY}: ${2:value}",
|
|
31
|
+
"description": "Environment variables",
|
|
32
|
+
"completeBracketPairs": true
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"triggerPattern": "^\\s*volumes:\\s*$",
|
|
36
|
+
"insertText": "volumes:\n - ${1:./data}:${2:/app/data}",
|
|
37
|
+
"description": "Volume mount",
|
|
38
|
+
"completeBracketPairs": true
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"triggerPattern": "^\\s*depends_on:\\s*$",
|
|
42
|
+
"insertText": "depends_on:\n ${1:db}:\n condition: ${2:service_healthy}",
|
|
43
|
+
"description": "Dependency with condition",
|
|
44
|
+
"completeBracketPairs": true
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"triggerPattern": "^\\s*healthcheck:\\s*$",
|
|
48
|
+
"insertText": "healthcheck:\n test: [\"CMD\", \"${1:curl}\", \"${2:-f}\", \"${3:http://localhost}\"]\n interval: ${4:30s}\n timeout: ${5:10s}\n retries: ${6:3}\n start_period: ${7:10s}",
|
|
49
|
+
"description": "Health check configuration",
|
|
50
|
+
"completeBracketPairs": true
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"triggerPattern": "^\\s*deploy:\\s*$",
|
|
54
|
+
"insertText": "deploy:\n replicas: ${1:1}\n resources:\n limits:\n cpus: '${2:0.5}'\n memory: ${3:512M}",
|
|
55
|
+
"description": "Deployment with resource limits",
|
|
56
|
+
"completeBracketPairs": true
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"triggerPattern": "^\\s*logging:\\s*$",
|
|
60
|
+
"insertText": "logging:\n driver: ${1:json-file}\n options:\n max-size: \"${2:10m}\"\n max-file: \"${3:3}\"",
|
|
61
|
+
"description": "Logging configuration",
|
|
62
|
+
"completeBracketPairs": true
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"triggerPattern": "^\\s*develop:\\s*$",
|
|
66
|
+
"insertText": "develop:\n watch:\n - action: ${1:sync}\n path: ${2:./src}\n target: ${3:/app/src}",
|
|
67
|
+
"description": "Watch configuration",
|
|
68
|
+
"completeBracketPairs": true
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"triggerPattern": "^networks:\\s*$",
|
|
72
|
+
"insertText": "networks:\n ${1:frontend}:\n driver: ${2:bridge}",
|
|
73
|
+
"description": "Network definition",
|
|
74
|
+
"completeBracketPairs": true
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"triggerPattern": "^volumes:\\s*$",
|
|
78
|
+
"insertText": "volumes:\n ${1:data}:\n driver: ${2:local}",
|
|
79
|
+
"description": "Volume definition",
|
|
80
|
+
"completeBracketPairs": true
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"triggerPattern": "^secrets:\\s*$",
|
|
84
|
+
"insertText": "secrets:\n ${1:secret_name}:\n file: ${2:./secret.txt}",
|
|
85
|
+
"description": "Secret definition",
|
|
86
|
+
"completeBracketPairs": true
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "kotlin",
|
|
3
|
+
"inlineCompletions": [
|
|
4
|
+
{"triggerPattern": "^\\s*fun\\s+main\\s*$", "insertText": "fun main(args: Array<String>) {\n\t${1:println(\"Hello, World!\")}\n}", "description": "Main function", "completeBracketPairs": true},
|
|
5
|
+
{"triggerPattern": "^\\s*fun\\s+\\w+\\($", "insertText": "${1:param}: ${2:Type}): ${3:Unit} {\n\t$0\n}", "description": "Complete function signature", "completeBracketPairs": true},
|
|
6
|
+
{"triggerPattern": "^\\s*for\\s*$", "insertText": "for (${1:item} in ${2:collection}) {\n\t$0\n}", "description": "For loop", "completeBracketPairs": true},
|
|
7
|
+
{"triggerPattern": "^\\s*when\\s*$", "insertText": "when (${1:value}) {\n\t${2:condition} -> ${3:result}\n\telse -> ${4:default}\n}", "description": "When expression", "completeBracketPairs": true},
|
|
8
|
+
{"triggerPattern": "^\\s*data\\s+class\\s*$", "insertText": "data class ${1:Name}(\n\tval ${2:property}: ${3:Type}\n)", "description": "Data class", "completeBracketPairs": true},
|
|
9
|
+
{"triggerPattern": "^\\s*sealed\\s+class\\s*$", "insertText": "sealed class ${1:Name} {\n\tdata class ${2:Variant}(val ${3:value}: ${4:Type}) : ${1:Name}()\n\tobject ${5:Empty} : ${1:Name}()\n}", "description": "Sealed class", "completeBracketPairs": true},
|
|
10
|
+
{"triggerPattern": "^\\s*try\\s*$", "insertText": "try {\n\t${1:// code}\n} catch (e: ${2:Exception}) {\n\t${3:e.printStackTrace()}\n}", "description": "Try-catch block", "completeBracketPairs": true},
|
|
11
|
+
{"triggerPattern": "^\\s*suspend\\s+fun\\s*$", "insertText": "suspend fun ${1:name}(${2:params}): ${3:Unit} {\n\t$0\n}", "description": "Suspend function", "completeBracketPairs": true},
|
|
12
|
+
{"triggerPattern": "^\\s*class\\s+\\w+\\s*$", "insertText": "class ${1:Name}(\n\tprivate val ${2:property}: ${3:Type}\n) {\n\t$0\n}", "description": "Class with primary constructor", "completeBracketPairs": true},
|
|
13
|
+
{"triggerPattern": "^\\s*enum\\s+class\\s*$", "insertText": "enum class ${1:Name} {\n\t${2:VALUE1},\n\t${3:VALUE2}\n}", "description": "Enum class", "completeBracketPairs": true},
|
|
14
|
+
{"triggerPattern": "^\\s*interface\\s+\\w+\\s*$", "insertText": "interface ${1:Name} {\n\tfun ${2:method}(${3:params}): ${4:Unit}\n}", "description": "Interface declaration", "completeBracketPairs": true},
|
|
15
|
+
{"triggerPattern": "\\.let\\s*$", "insertText": ".let { ${1:it} ->\n\t$0\n}", "description": "Scope function let", "completeBracketPairs": true},
|
|
16
|
+
{"triggerPattern": "\\.apply\\s*$", "insertText": ".apply {\n\t$0\n}", "description": "Scope function apply", "completeBracketPairs": true},
|
|
17
|
+
{"triggerPattern": "^\\s*launch\\s*$", "insertText": "launch {\n\t$0\n}", "description": "Coroutine launch", "completeBracketPairs": true}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "scala",
|
|
3
|
+
"inlineCompletions": [
|
|
4
|
+
{"triggerPattern": "^\\s*def\\s+\\w+\\s*$", "insertText": "def ${1:name}(${2:params}): ${3:Unit} = {\n $0\n}", "description": "Method definition", "completeBracketPairs": true},
|
|
5
|
+
{"triggerPattern": "^\\s*class\\s+\\w+\\s*$", "insertText": "class ${1:Name}(val ${2:field}: ${3:Type}) {\n $0\n}", "description": "Class with constructor", "completeBracketPairs": true},
|
|
6
|
+
{"triggerPattern": "^\\s*for\\s*$", "insertText": "for {\n ${1:x} <- ${2:xs}\n} yield ${3:x}", "description": "For-comprehension with yield", "completeBracketPairs": true},
|
|
7
|
+
{"triggerPattern": "^\\s*match\\s*$", "insertText": "match {\n case ${1:pattern} => ${2:result}\n case _ => ${3:default}\n}", "description": "Pattern match expression", "completeBracketPairs": true},
|
|
8
|
+
{"triggerPattern": "^\\s*case\\s+class\\s+\\w+\\s*$", "insertText": "case class ${1:Name}(${2:field}: ${3:Type})", "description": "Case class definition", "completeBracketPairs": true},
|
|
9
|
+
{"triggerPattern": "^\\s*object\\s+\\w+\\s*$", "insertText": "object ${1:Name} {\n $0\n}", "description": "Singleton object", "completeBracketPairs": true},
|
|
10
|
+
{"triggerPattern": "^\\s*trait\\s+\\w+\\s*$", "insertText": "trait ${1:Name} {\n def ${2:method}: ${3:Unit}\n}", "description": "Trait declaration", "completeBracketPairs": true},
|
|
11
|
+
{"triggerPattern": "^\\s*given\\s+\\w+\\s*$", "insertText": "given ${1:name}: ${2:TypeClass}[${3:Type}] with\n def ${4:method}(${5:params}): ${6:ReturnType} = $0", "description": "Given instance (Scala 3)", "completeBracketPairs": true},
|
|
12
|
+
{"triggerPattern": "^\\s*extension\\s*$", "insertText": "extension (${1:x}: ${2:Type})\n def ${3:method}: ${4:ReturnType} = $0", "description": "Extension method (Scala 3)", "completeBracketPairs": true},
|
|
13
|
+
{"triggerPattern": "^\\s*enum\\s+\\w+\\s*$", "insertText": "enum ${1:Name} {\n case ${2:Value1}, ${3:Value2}\n}", "description": "Enum declaration (Scala 3)", "completeBracketPairs": true},
|
|
14
|
+
{"triggerPattern": "^\\s*try\\s*$", "insertText": "try {\n ${1:// code}\n} catch {\n case e: ${2:Exception} => ${3:handle(e)}\n} finally {\n ${4:// cleanup}\n}", "description": "Try-catch-finally", "completeBracketPairs": true},
|
|
15
|
+
{"triggerPattern": "^\\s*sealed\\s+trait\\s+\\w+\\s*$", "insertText": "sealed trait ${1:Name}\ncase class ${2:Variant1}(${3:field}: ${4:Type}) extends ${1:Name}\ncase class ${5:Variant2}(${6:field}: ${7:Type}) extends ${1:Name}", "description": "Sealed trait ADT", "completeBracketPairs": true},
|
|
16
|
+
{"triggerPattern": "^\\s*@main\\s*$", "insertText": "@main def ${1:run}(): Unit =\n ${2:println(\"Hello, World!\")}", "description": "Scala 3 main method", "completeBracketPairs": true},
|
|
17
|
+
{"triggerPattern": "^\\s*if\\s*$", "insertText": "if ${1:condition} then\n ${2:expr1}\nelse\n ${3:expr2}", "description": "If-then-else (Scala 3)", "completeBracketPairs": true},
|
|
18
|
+
{"triggerPattern": "^\\s*while\\s*$", "insertText": "while ${1:condition} do\n $0", "description": "While-do loop (Scala 3)", "completeBracketPairs": true},
|
|
19
|
+
{"triggerPattern": "\\.map\\s*$", "insertText": ".map(${1:x} => ${2:x})", "description": "Map over collection", "completeBracketPairs": true},
|
|
20
|
+
{"triggerPattern": "\\.flatMap\\s*$", "insertText": ".flatMap(${1:x} => ${2:f(x)})", "description": "FlatMap over collection", "completeBracketPairs": true},
|
|
21
|
+
{"triggerPattern": "\\.filter\\s*$", "insertText": ".filter(${1:x} => ${2:condition})", "description": "Filter collection", "completeBracketPairs": true},
|
|
22
|
+
{"triggerPattern": "\\.fold\\s*$", "insertText": ".fold(${1:zero})(${2:(acc, x) => acc})", "description": "Fold collection", "completeBracketPairs": true},
|
|
23
|
+
{"triggerPattern": "^\\s*implicit\\s+class\\s+\\w+\\s*$", "insertText": "implicit class ${1:Rich}${2:Type}(val ${3:x}: ${2:Type}) extends AnyVal {\n def ${4:method}: ${5:ReturnType} = $0\n}", "description": "Implicit class (Scala 2 extension)", "completeBracketPairs": true},
|
|
24
|
+
{"triggerPattern": "^\\s*opaque\\s+type\\s*$", "insertText": "opaque type ${1:Name} = ${2:Underlying}\nobject ${1:Name}:\n def apply(v: ${2:Underlying}): ${1:Name} = v\n extension (x: ${1:Name})\n def value: ${2:Underlying} = x", "description": "Opaque type with companion (Scala 3)", "completeBracketPairs": true}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "swift",
|
|
3
|
+
"inlineCompletions": [
|
|
4
|
+
{"triggerPattern": "^\\s*func\\s+main\\s*$", "insertText": "func main() {\n\t${1:print(\"Hello, World!\")}\n}", "description": "Main function", "completeBracketPairs": true},
|
|
5
|
+
{"triggerPattern": "^\\s*func\\s+\\w+\\($", "insertText": "${1:param}: ${2:Type}) -> ${3:Void} {\n\t$0\n}", "description": "Complete function signature", "completeBracketPairs": true},
|
|
6
|
+
{"triggerPattern": "^\\s*struct\\s+\\w+\\s*$", "insertText": "struct ${1:Name} {\n\tlet ${2:property}: ${3:Type}\n}", "description": "Struct declaration", "completeBracketPairs": true},
|
|
7
|
+
{"triggerPattern": "^\\s*class\\s+\\w+\\s*$", "insertText": "class ${1:Name} {\n\tinit(${2:params}) {\n\t\t$0\n\t}\n}", "description": "Class with initializer", "completeBracketPairs": true},
|
|
8
|
+
{"triggerPattern": "^\\s*enum\\s+\\w+\\s*$", "insertText": "enum ${1:Name} {\n\tcase ${2:value1}\n\tcase ${3:value2}\n}", "description": "Enum declaration", "completeBracketPairs": true},
|
|
9
|
+
{"triggerPattern": "^\\s*guard\\s+let\\s*$", "insertText": "guard let ${1:value} = ${2:optional} else {\n\t${3:return}\n}", "description": "Guard let statement", "completeBracketPairs": true},
|
|
10
|
+
{"triggerPattern": "^\\s*if\\s+let\\s*$", "insertText": "if let ${1:value} = ${2:optional} {\n\t$0\n}", "description": "If let optional binding", "completeBracketPairs": true},
|
|
11
|
+
{"triggerPattern": "^\\s*switch\\s*$", "insertText": "switch ${1:value} {\ncase ${2:.option1}:\n\t${3:break}\ncase ${4:.option2}:\n\t${5:break}\ndefault:\n\t${6:break}\n}", "description": "Switch statement", "completeBracketPairs": true},
|
|
12
|
+
{"triggerPattern": "^\\s*for\\s*$", "insertText": "for ${1:item} in ${2:collection} {\n\t$0\n}", "description": "For-in loop", "completeBracketPairs": true},
|
|
13
|
+
{"triggerPattern": "^\\s*do\\s*$", "insertText": "do {\n\ttry ${1:expression}\n} catch {\n\t${2:print(error)}\n}", "description": "Do-catch block", "completeBracketPairs": true},
|
|
14
|
+
{"triggerPattern": "^\\s*async\\s+func\\s*$", "insertText": "async func ${1:name}(${2:params}) throws -> ${3:Void} {\n\t$0\n}", "description": "Async function", "completeBracketPairs": true},
|
|
15
|
+
{"triggerPattern": "^\\s*protocol\\s+\\w+\\s*$", "insertText": "protocol ${1:Name} {\n\tfunc ${2:method}(${3:params}) -> ${4:Void}\n}", "description": "Protocol declaration", "completeBracketPairs": true},
|
|
16
|
+
{"triggerPattern": "^\\s*extension\\s+\\w+\\s*$", "insertText": "extension ${1:Type} {\n\t$0\n}", "description": "Extension declaration", "completeBracketPairs": true},
|
|
17
|
+
{"triggerPattern": "^\\s*init\\s*$", "insertText": "init(${1:params}) {\n\t$0\n}", "description": "Initializer", "completeBracketPairs": true},
|
|
18
|
+
{"triggerPattern": "\\{\\s*$", "insertText": "{ (${1:params}) -> ${2:Void} in\n\t$0\n}", "description": "Closure expression", "completeBracketPairs": true},
|
|
19
|
+
{"triggerPattern": "^\\s*@Published\\s+var\\s*$", "insertText": "@Published var ${1:name}: ${2:Type} = ${3:value}", "description": "@Published property", "completeBracketPairs": true},
|
|
20
|
+
{"triggerPattern": "^\\s*Task\\s*$", "insertText": "Task {\n\t$0\n}", "description": "Task block", "completeBracketPairs": true},
|
|
21
|
+
{"triggerPattern": "^\\s*actor\\s+\\w+\\s*$", "insertText": "actor ${1:Name} {\n\tvar ${2:state}: ${3:Type}\n\n\tfunc ${4:method}() {\n\t\t$0\n\t}\n}", "description": "Actor declaration", "completeBracketPairs": true}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "dart",
|
|
3
|
+
"linkPatterns": [
|
|
4
|
+
{"pattern": "import\\s+'dart:(\\w+)'", "captureGroup": 1, "tooltip": "Open dart:core library docs", "urlTemplate": "https://api.dart.dev/stable/dart-{capture}/dart-{capture}-library.html"},
|
|
5
|
+
{"pattern": "import\\s+'package:([^/]+)/", "captureGroup": 1, "tooltip": "Open package on pub.dev", "urlTemplate": "https://pub.dev/packages/{capture}"},
|
|
6
|
+
{"pattern": "import\\s+'([^']+)'", "captureGroup": 1, "tooltip": "Open imported file"},
|
|
7
|
+
{"pattern": "export\\s+'([^']+)'", "captureGroup": 1, "tooltip": "Open exported file"},
|
|
8
|
+
{"pattern": "part\\s+'([^']+)'", "captureGroup": 1, "tooltip": "Open part file"},
|
|
9
|
+
{"pattern": "part\\s+of\\s+'([^']+)'", "captureGroup": 1, "tooltip": "Open parent library file"},
|
|
10
|
+
{"pattern": "\"(https?://[^\"]+)\"", "captureGroup": 1, "tooltip": "Open URL"},
|
|
11
|
+
{"pattern": "'(https?://[^']+)'", "captureGroup": 1, "tooltip": "Open URL"},
|
|
12
|
+
{"pattern": "//\\s*TODO.*?(https?://\\S+)", "captureGroup": 1, "tooltip": "Open linked URL"},
|
|
13
|
+
{"pattern": "///\\s*See\\s+(https?://\\S+)", "captureGroup": 1, "tooltip": "Open documentation link"},
|
|
14
|
+
{"pattern": "^\\s+(\\w+):\\s+\\^?([\\d.]+)", "captureGroup": 1, "tooltip": "Open dependency on pub.dev", "urlTemplate": "https://pub.dev/packages/{capture}"}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "docker-compose",
|
|
3
|
+
"linkPatterns": [
|
|
4
|
+
{
|
|
5
|
+
"pattern": "image:\\s+([\\w.\\-/]+:[\\w.\\-]+)",
|
|
6
|
+
"captureGroup": 1,
|
|
7
|
+
"tooltip": "Open Docker Hub image",
|
|
8
|
+
"urlTemplate": "https://hub.docker.com/_/{capture}"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"pattern": "image:\\s+([\\w.\\-]+/[\\w.\\-]+:[\\w.\\-]+)",
|
|
12
|
+
"captureGroup": 1,
|
|
13
|
+
"tooltip": "Open Docker Hub image",
|
|
14
|
+
"urlTemplate": "https://hub.docker.com/r/{capture}"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"pattern": "env_file:\\s*-?\\s*['\"]?([\\w.\\-/]+\\.env[\\w.]*)['\"]?",
|
|
18
|
+
"captureGroup": 1,
|
|
19
|
+
"tooltip": "Open environment file"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"pattern": "file:\\s*['\"]?([\\w.\\-/]+)['\"]?",
|
|
23
|
+
"captureGroup": 1,
|
|
24
|
+
"tooltip": "Open referenced file"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"pattern": "context:\\s*['\"]?(\\.?[\\w.\\-/]+)['\"]?",
|
|
28
|
+
"captureGroup": 1,
|
|
29
|
+
"tooltip": "Open build context directory"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"pattern": "dockerfile:\\s*['\"]?([\\w.\\-/]+)['\"]?",
|
|
33
|
+
"captureGroup": 1,
|
|
34
|
+
"tooltip": "Open Dockerfile"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"pattern": "path:\\s*['\"]?(\\.?[\\w.\\-/]+)['\"]?",
|
|
38
|
+
"captureGroup": 1,
|
|
39
|
+
"tooltip": "Open referenced path"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"pattern": "https?://[^\\s'\"`,;)\\]>]+",
|
|
43
|
+
"captureGroup": 0,
|
|
44
|
+
"tooltip": "Open URL"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "kotlin",
|
|
3
|
+
"linkPatterns": [
|
|
4
|
+
{"pattern": "import\\s+([\\w.]+)", "captureGroup": 1, "tooltip": "Open Kotlin reference", "urlTemplate": "https://kotlinlang.org/api/latest/jvm/stdlib/{capture}.html"},
|
|
5
|
+
{"pattern": "\"(https?://[^\"]+)\"", "captureGroup": 1, "tooltip": "Open URL"},
|
|
6
|
+
{"pattern": "implementation\\s*\\(?['\"]([^'\"]+)['\"]\\)?", "captureGroup": 1, "tooltip": "Open dependency on Maven Central", "urlTemplate": "https://search.maven.org/search?q={capture}"},
|
|
7
|
+
{"pattern": "@file:JvmName\\(\"([^\"]+)\"\\)", "captureGroup": 1, "tooltip": "JVM class name"},
|
|
8
|
+
{"pattern": "//\\s*TODO.*?(https?://\\S+)", "captureGroup": 1, "tooltip": "Open linked URL"}
|
|
9
|
+
]
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "scala",
|
|
3
|
+
"linkPatterns": [
|
|
4
|
+
{"pattern": "import\\s+([\\w.]+)\\.\\{", "captureGroup": 1, "tooltip": "Open Scala package documentation"},
|
|
5
|
+
{"pattern": "import\\s+([\\w.]+)", "captureGroup": 1, "tooltip": "Open imported package/class"},
|
|
6
|
+
{"pattern": "import\\s+([\\w.]+)\\.\\*", "captureGroup": 1, "tooltip": "Open wildcard import package"},
|
|
7
|
+
{"pattern": "\"(https?://[^\"]+)\"", "captureGroup": 1, "tooltip": "Open URL"},
|
|
8
|
+
{"pattern": "s\"[^\"]*\\$(\\{[^}]+\\}|\\w+)", "captureGroup": 0, "tooltip": "String interpolation expression"},
|
|
9
|
+
{"pattern": "//\\s*TODO.*?(https?://\\S+)", "captureGroup": 1, "tooltip": "Open linked URL"},
|
|
10
|
+
{"pattern": "//\\s*see\\s+(https?://\\S+)", "captureGroup": 1, "tooltip": "Open documentation link"},
|
|
11
|
+
{"pattern": "\"([\\w.-]+)\"\\s*%%?\\s*\"([\\w.-]+)\"\\s*%\\s*\"([\\w.-]+)\"", "captureGroup": 2, "tooltip": "Open sbt dependency on Maven Central", "urlTemplate": "https://mvnrepository.com/artifact/{capture}"},
|
|
12
|
+
{"pattern": "libraryDependencies\\s*\\+=\\s*\"([^\"]+)\"", "captureGroup": 1, "tooltip": "Open library on Maven Central", "urlTemplate": "https://mvnrepository.com/artifact/{capture}"},
|
|
13
|
+
{"pattern": "ivy\"([^\"]+)\"", "captureGroup": 1, "tooltip": "Open Mill dependency"},
|
|
14
|
+
{"pattern": "//> using dep\\s+(\\S+)", "captureGroup": 1, "tooltip": "Open scala-cli dependency"},
|
|
15
|
+
{"pattern": "@\\w+\\s*\\(\\s*\"(https?://\\S+)\"", "captureGroup": 1, "tooltip": "Open annotation URL"}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "swift",
|
|
3
|
+
"linkPatterns": [
|
|
4
|
+
{"pattern": "import\\s+(\\w+)", "captureGroup": 1, "tooltip": "Open Apple documentation", "urlTemplate": "https://developer.apple.com/documentation/{capture}"},
|
|
5
|
+
{"pattern": "\"(https?://[^\"]+)\"", "captureGroup": 1, "tooltip": "Open URL"},
|
|
6
|
+
{"pattern": "\\.package\\s*\\(\\s*url:\\s*\"([^\"]+)\"", "captureGroup": 1, "tooltip": "Open package repository URL"},
|
|
7
|
+
{"pattern": "\\.package\\s*\\(\\s*name:\\s*\"([^\"]+)\"", "captureGroup": 1, "tooltip": "Search package on Swift Package Index", "urlTemplate": "https://swiftpackageindex.com/search?query={capture}"},
|
|
8
|
+
{"pattern": "///\\s*.*?(https?://\\S+)", "captureGroup": 1, "tooltip": "Open linked URL in doc comment"},
|
|
9
|
+
{"pattern": "//\\s*TODO.*?(https?://\\S+)", "captureGroup": 1, "tooltip": "Open linked URL"},
|
|
10
|
+
{"pattern": "//\\s*FIXME.*?(https?://\\S+)", "captureGroup": 1, "tooltip": "Open linked URL"},
|
|
11
|
+
{"pattern": "@available\\(.*?(https?://\\S+)", "captureGroup": 1, "tooltip": "Open availability URL"}
|
|
12
|
+
]
|
|
13
|
+
}
|
package/data/manifest.json
CHANGED
|
@@ -157,6 +157,28 @@
|
|
|
157
157
|
"inlayHints": "inlayHints/csharp.json"
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
|
+
{
|
|
161
|
+
"id": "docker-compose",
|
|
162
|
+
"name": "Docker Compose",
|
|
163
|
+
"files": {
|
|
164
|
+
"completion": "completion/docker-compose.json",
|
|
165
|
+
"defination": "defination/docker-compose.json",
|
|
166
|
+
"hover": "hover/docker-compose.json",
|
|
167
|
+
"codeActions": "codeActions/docker-compose.json",
|
|
168
|
+
"documentHighlight": "documentHighlight/docker-compose.json",
|
|
169
|
+
"documentSymbol": "documentSymbol/docker-compose.json",
|
|
170
|
+
"links": "links/docker-compose.json",
|
|
171
|
+
"typeDefinition": "typeDefinition/docker-compose.json",
|
|
172
|
+
"references": "references/docker-compose.json",
|
|
173
|
+
"implementation": "implementation/docker-compose.json",
|
|
174
|
+
"inlineCompletions": "inlineCompletions/docker-compose.json",
|
|
175
|
+
"formatting": "formatting/docker-compose.json",
|
|
176
|
+
"codeLens": "codeLens/docker-compose.json",
|
|
177
|
+
"color": "color/docker-compose.json",
|
|
178
|
+
"declaration": "declaration/docker-compose.json",
|
|
179
|
+
"inlayHints": "inlayHints/docker-compose.json"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
160
182
|
{
|
|
161
183
|
"id": "dockerfile",
|
|
162
184
|
"name": "Dockerfile",
|
|
@@ -829,6 +851,7 @@
|
|
|
829
851
|
"cpp.json",
|
|
830
852
|
"crontab.json",
|
|
831
853
|
"csharp.json",
|
|
854
|
+
"docker-compose.json",
|
|
832
855
|
"dockerfile.json",
|
|
833
856
|
"dotenv.json",
|
|
834
857
|
"go.json",
|
|
@@ -871,6 +894,7 @@
|
|
|
871
894
|
"cpp.json",
|
|
872
895
|
"crontab.json",
|
|
873
896
|
"csharp.json",
|
|
897
|
+
"docker-compose.json",
|
|
874
898
|
"dockerfile.json",
|
|
875
899
|
"dotenv.json",
|
|
876
900
|
"go.json",
|
|
@@ -913,6 +937,7 @@
|
|
|
913
937
|
"cpp.json",
|
|
914
938
|
"crontab.json",
|
|
915
939
|
"csharp.json",
|
|
940
|
+
"docker-compose.json",
|
|
916
941
|
"dockerfile.json",
|
|
917
942
|
"dotenv.json",
|
|
918
943
|
"go.json",
|
|
@@ -955,6 +980,7 @@
|
|
|
955
980
|
"cpp.json",
|
|
956
981
|
"crontab.json",
|
|
957
982
|
"csharp.json",
|
|
983
|
+
"docker-compose.json",
|
|
958
984
|
"dockerfile.json",
|
|
959
985
|
"dotenv.json",
|
|
960
986
|
"go.json",
|
|
@@ -997,6 +1023,7 @@
|
|
|
997
1023
|
"cpp.json",
|
|
998
1024
|
"crontab.json",
|
|
999
1025
|
"csharp.json",
|
|
1026
|
+
"docker-compose.json",
|
|
1000
1027
|
"dockerfile.json",
|
|
1001
1028
|
"dotenv.json",
|
|
1002
1029
|
"go.json",
|
|
@@ -1039,6 +1066,7 @@
|
|
|
1039
1066
|
"cpp.json",
|
|
1040
1067
|
"crontab.json",
|
|
1041
1068
|
"csharp.json",
|
|
1069
|
+
"docker-compose.json",
|
|
1042
1070
|
"dockerfile.json",
|
|
1043
1071
|
"dotenv.json",
|
|
1044
1072
|
"go.json",
|
|
@@ -1081,6 +1109,7 @@
|
|
|
1081
1109
|
"cpp.json",
|
|
1082
1110
|
"crontab.json",
|
|
1083
1111
|
"csharp.json",
|
|
1112
|
+
"docker-compose.json",
|
|
1084
1113
|
"dockerfile.json",
|
|
1085
1114
|
"dotenv.json",
|
|
1086
1115
|
"go.json",
|
|
@@ -1123,6 +1152,7 @@
|
|
|
1123
1152
|
"cpp.json",
|
|
1124
1153
|
"crontab.json",
|
|
1125
1154
|
"csharp.json",
|
|
1155
|
+
"docker-compose.json",
|
|
1126
1156
|
"dockerfile.json",
|
|
1127
1157
|
"dotenv.json",
|
|
1128
1158
|
"go.json",
|
|
@@ -1165,6 +1195,7 @@
|
|
|
1165
1195
|
"cpp.json",
|
|
1166
1196
|
"crontab.json",
|
|
1167
1197
|
"csharp.json",
|
|
1198
|
+
"docker-compose.json",
|
|
1168
1199
|
"dockerfile.json",
|
|
1169
1200
|
"dotenv.json",
|
|
1170
1201
|
"go.json",
|
|
@@ -1207,6 +1238,7 @@
|
|
|
1207
1238
|
"cpp.json",
|
|
1208
1239
|
"crontab.json",
|
|
1209
1240
|
"csharp.json",
|
|
1241
|
+
"docker-compose.json",
|
|
1210
1242
|
"dockerfile.json",
|
|
1211
1243
|
"dotenv.json",
|
|
1212
1244
|
"go.json",
|
|
@@ -1249,6 +1281,7 @@
|
|
|
1249
1281
|
"cpp.json",
|
|
1250
1282
|
"crontab.json",
|
|
1251
1283
|
"csharp.json",
|
|
1284
|
+
"docker-compose.json",
|
|
1252
1285
|
"dockerfile.json",
|
|
1253
1286
|
"dotenv.json",
|
|
1254
1287
|
"go.json",
|
|
@@ -1291,6 +1324,7 @@
|
|
|
1291
1324
|
"cpp.json",
|
|
1292
1325
|
"crontab.json",
|
|
1293
1326
|
"csharp.json",
|
|
1327
|
+
"docker-compose.json",
|
|
1294
1328
|
"dockerfile.json",
|
|
1295
1329
|
"dotenv.json",
|
|
1296
1330
|
"go.json",
|
|
@@ -1333,6 +1367,7 @@
|
|
|
1333
1367
|
"cpp.json",
|
|
1334
1368
|
"crontab.json",
|
|
1335
1369
|
"csharp.json",
|
|
1370
|
+
"docker-compose.json",
|
|
1336
1371
|
"dockerfile.json",
|
|
1337
1372
|
"dotenv.json",
|
|
1338
1373
|
"go.json",
|
|
@@ -1375,6 +1410,7 @@
|
|
|
1375
1410
|
"cpp.json",
|
|
1376
1411
|
"crontab.json",
|
|
1377
1412
|
"csharp.json",
|
|
1413
|
+
"docker-compose.json",
|
|
1378
1414
|
"dockerfile.json",
|
|
1379
1415
|
"dotenv.json",
|
|
1380
1416
|
"go.json",
|
|
@@ -1417,6 +1453,7 @@
|
|
|
1417
1453
|
"cpp.json",
|
|
1418
1454
|
"crontab.json",
|
|
1419
1455
|
"csharp.json",
|
|
1456
|
+
"docker-compose.json",
|
|
1420
1457
|
"dockerfile.json",
|
|
1421
1458
|
"dotenv.json",
|
|
1422
1459
|
"go.json",
|
|
@@ -1459,6 +1496,7 @@
|
|
|
1459
1496
|
"cpp.json",
|
|
1460
1497
|
"crontab.json",
|
|
1461
1498
|
"csharp.json",
|
|
1499
|
+
"docker-compose.json",
|
|
1462
1500
|
"dockerfile.json",
|
|
1463
1501
|
"dotenv.json",
|
|
1464
1502
|
"go.json",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "dart",
|
|
3
|
+
"referencePatterns": [
|
|
4
|
+
{"symbol": "function_call", "patterns": ["\\b\\w+\\s*\\(", "\\b\\w+\\s*<[^>]*>\\s*\\("], "includeDeclaration": true, "description": "Function and method calls"},
|
|
5
|
+
{"symbol": "type_reference", "patterns": [":\\s*\\w+", "\\w+\\s*<", "is\\s+\\w+", "as\\s+\\w+", "extends\\s+\\w+", "implements\\s+\\w+", "with\\s+\\w+"], "includeDeclaration": true, "description": "Type references, casts, and hierarchy"},
|
|
6
|
+
{"symbol": "mixin_usage", "patterns": ["with\\s+[\\w,\\s]+", "mixin\\s+\\w+\\s+on\\s+\\w+"], "includeDeclaration": true, "description": "Mixin applications and constraints"},
|
|
7
|
+
{"symbol": "import_ref", "patterns": ["import\\s+'[^']+'", "export\\s+'[^']+'", "part\\s+'[^']+'"], "includeDeclaration": true, "description": "Import, export, and part references"},
|
|
8
|
+
{"symbol": "annotation_usage", "patterns": ["@\\w+(?:\\.\\w+)?"], "includeDeclaration": true, "description": "Annotation references (@override, @deprecated, etc.)"},
|
|
9
|
+
{"symbol": "named_param", "patterns": ["\\w+\\s*:", "required\\s+\\w+"], "includeDeclaration": true, "description": "Named parameter references"},
|
|
10
|
+
{"symbol": "property_access", "patterns": ["\\.\\w+", "\\w+\\.\\w+"], "includeDeclaration": true, "description": "Property and field access"},
|
|
11
|
+
{"symbol": "constructor_ref", "patterns": ["\\w+(?:\\.\\w+)?\\s*\\(", "const\\s+\\w+\\s*\\("], "includeDeclaration": true, "description": "Constructor invocations"},
|
|
12
|
+
{"symbol": "generic_type", "patterns": ["<\\w+(?:\\s*,\\s*\\w+)*>"], "includeDeclaration": true, "description": "Generic type parameters"}
|
|
13
|
+
],
|
|
14
|
+
"identifierPattern": "[a-zA-Z_$][a-zA-Z0-9_$]*"
|
|
15
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "docker-compose",
|
|
3
|
+
"referencePatterns": [
|
|
4
|
+
{
|
|
5
|
+
"symbol": "service_name",
|
|
6
|
+
"patterns": ["\\bdepends_on\\b[\\s\\S]*?\\b(\\w+)\\b", "\\bservice:\\s*(\\w+)"],
|
|
7
|
+
"includeDeclaration": true,
|
|
8
|
+
"description": "Find all references to a service name (in depends_on, network_mode, links, etc.)"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"symbol": "volume_name",
|
|
12
|
+
"patterns": ["\\bvolumes\\b[\\s\\S]*?\\b(\\w+):", "^\\s+-\\s+(\\w+):"],
|
|
13
|
+
"includeDeclaration": true,
|
|
14
|
+
"description": "Find all references to a named volume"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"symbol": "network_name",
|
|
18
|
+
"patterns": ["\\bnetworks\\b[\\s\\S]*?\\b(\\w+)"],
|
|
19
|
+
"includeDeclaration": true,
|
|
20
|
+
"description": "Find all references to a network name"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"symbol": "secret_name",
|
|
24
|
+
"patterns": ["\\bsecrets\\b[\\s\\S]*?\\b(\\w+)"],
|
|
25
|
+
"includeDeclaration": true,
|
|
26
|
+
"description": "Find all references to a secret name"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"symbol": "config_name",
|
|
30
|
+
"patterns": ["\\bconfigs\\b[\\s\\S]*?\\b(\\w+)"],
|
|
31
|
+
"includeDeclaration": true,
|
|
32
|
+
"description": "Find all references to a config name"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"symbol": "anchor_name",
|
|
36
|
+
"patterns": ["&(\\w[\\w-]*)", "\\*(\\w[\\w-]*)"],
|
|
37
|
+
"includeDeclaration": true,
|
|
38
|
+
"description": "Find all references to a YAML anchor"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"identifierPattern": "[a-zA-Z_][a-zA-Z0-9_.-]*"
|
|
42
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "kotlin",
|
|
3
|
+
"referencePatterns": [
|
|
4
|
+
{"symbol": "function_call", "patterns": ["\\b\\w+\\s*\\(", "\\b\\w+\\s*\\{"], "includeDeclaration": true, "description": "Function calls and lambda invocations"},
|
|
5
|
+
{"symbol": "class_usage", "patterns": [":\\s*\\w+", "\\w+\\s*\\(", "is\\s+\\w+", "as\\s+\\w+"], "includeDeclaration": true, "description": "Class/type references"},
|
|
6
|
+
{"symbol": "property_access", "patterns": ["\\.\\w+", "\\w+\\."], "includeDeclaration": true, "description": "Property access"},
|
|
7
|
+
{"symbol": "import_ref", "patterns": ["import\\s+[\\w.]+"], "includeDeclaration": true, "description": "Import references"},
|
|
8
|
+
{"symbol": "annotation_usage", "patterns": ["@\\w+"], "includeDeclaration": true, "description": "Annotation references"},
|
|
9
|
+
{"symbol": "generic_type", "patterns": ["<\\w+>", "\\w+<"], "includeDeclaration": true, "description": "Generic type parameters"}
|
|
10
|
+
],
|
|
11
|
+
"identifierPattern": "[a-zA-Z_][a-zA-Z0-9_]*"
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "scala",
|
|
3
|
+
"referencePatterns": [
|
|
4
|
+
{"symbol": "function_call", "patterns": ["\\b\\w+\\s*\\(", "\\b\\w+\\s*\\[.*?\\]\\s*\\(", "\\.\\w+\\s*\\("], "includeDeclaration": true, "description": "Function and method calls"},
|
|
5
|
+
{"symbol": "type_reference", "patterns": [":\\s*\\w+", "\\w+\\s*\\[", "extends\\s+\\w+", "with\\s+\\w+", "new\\s+\\w+", "isInstanceOf\\s*\\[\\s*\\w+", "asInstanceOf\\s*\\[\\s*\\w+"], "includeDeclaration": true, "description": "Type references, inheritance, and casts"},
|
|
6
|
+
{"symbol": "implicit_usage", "patterns": ["implicit\\s+(?:val|def|class)\\s+\\w+", "implicitly\\s*\\[\\s*\\w+", "\\(implicit\\s+\\w+", "given\\s+\\w+", "using\\s+\\w+", "summon\\s*\\["], "includeDeclaration": true, "description": "Implicit/given parameter and conversion usage"},
|
|
7
|
+
{"symbol": "import_ref", "patterns": ["import\\s+[\\w.]+", "import\\s+[\\w.]+\\.\\{[^}]+\\}", "import\\s+[\\w.]+\\._"], "includeDeclaration": true, "description": "Import references"},
|
|
8
|
+
{"symbol": "annotation_usage", "patterns": ["@\\w+(?:\\.\\w+)*(?:\\([^)]*\\))?"], "includeDeclaration": true, "description": "Annotation references (@main, @deprecated, @tailrec, etc.)"},
|
|
9
|
+
{"symbol": "pattern_reference", "patterns": ["case\\s+\\w+\\s*\\(", "case\\s+\\w+\\s*=>", "case\\s+_\\s*:"], "includeDeclaration": true, "description": "Pattern matching references"},
|
|
10
|
+
{"symbol": "property_access", "patterns": ["\\.\\w+", "\\w+\\.\\w+"], "includeDeclaration": true, "description": "Property and field access"},
|
|
11
|
+
{"symbol": "type_parameter", "patterns": ["\\[\\s*\\w+(?:\\s*<:\\s*\\w+)?(?:\\s*>:\\s*\\w+)?\\s*\\]", "\\[\\s*\\w+\\s*:\\s*\\w+\\s*\\]"], "includeDeclaration": true, "description": "Type parameter references and bounds"},
|
|
12
|
+
{"symbol": "string_interpolation", "patterns": ["[sf]\"[^\"]*\\$\\{?\\w+", "raw\"[^\"]*\\$\\{?\\w+"], "includeDeclaration": false, "description": "Variable references in string interpolation"}
|
|
13
|
+
],
|
|
14
|
+
"identifierPattern": "[a-zA-Z_][a-zA-Z0-9_]*"
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "swift",
|
|
3
|
+
"referencePatterns": [
|
|
4
|
+
{"symbol": "function_call", "patterns": ["\\b\\w+\\s*\\(", "\\b\\w+\\s*\\{"], "includeDeclaration": true, "description": "Function calls and trailing closure invocations"},
|
|
5
|
+
{"symbol": "type_reference", "patterns": [":\\s*\\w+", "\\w+\\s*\\(", "is\\s+\\w+", "as[?!]?\\s+\\w+", "->\\s*\\w+"], "includeDeclaration": true, "description": "Type references in annotations, casts, and return types"},
|
|
6
|
+
{"symbol": "protocol_conformance", "patterns": [":\\s*\\w+(?:,\\s*\\w+)*\\s*\\{", "extension\\s+\\w+\\s*:\\s*\\w+"], "includeDeclaration": true, "description": "Protocol conformance declarations"},
|
|
7
|
+
{"symbol": "property_access", "patterns": ["\\.\\w+", "\\w+\\."], "includeDeclaration": true, "description": "Property and member access"},
|
|
8
|
+
{"symbol": "import_ref", "patterns": ["import\\s+\\w+"], "includeDeclaration": true, "description": "Import references"},
|
|
9
|
+
{"symbol": "generic_type", "patterns": ["<\\w+>", "\\w+<", "where\\s+\\w+"], "includeDeclaration": true, "description": "Generic type parameters and constraints"},
|
|
10
|
+
{"symbol": "attribute_usage", "patterns": ["@\\w+"], "includeDeclaration": true, "description": "Attribute references (@MainActor, @Published, etc.)"},
|
|
11
|
+
{"symbol": "key_path", "patterns": ["\\\\\\.\\w+", "\\\\\\w+\\.\\w+"], "includeDeclaration": true, "description": "Key path expressions"}
|
|
12
|
+
],
|
|
13
|
+
"identifierPattern": "[a-zA-Z_][a-zA-Z0-9_]*"
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "dart",
|
|
3
|
+
"typeDefinitions": {
|
|
4
|
+
"int": {"type": "class", "signature": "abstract class int extends num", "description": "An integer number", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/int-class.html"},
|
|
5
|
+
"double": {"type": "class", "signature": "abstract class double extends num", "description": "A double-precision floating-point number", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/double-class.html"},
|
|
6
|
+
"num": {"type": "class", "signature": "abstract class num implements Comparable<num>", "description": "Supertype of int and double", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/num-class.html"},
|
|
7
|
+
"String": {"type": "class", "signature": "abstract class String implements Comparable<String>, Pattern", "description": "A sequence of UTF-16 code units", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/String-class.html"},
|
|
8
|
+
"bool": {"type": "class", "signature": "class bool", "description": "Represents true and false values", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/bool-class.html"},
|
|
9
|
+
"List": {"type": "class", "signature": "abstract class List<E> implements EfficientLengthIterable<E>", "description": "An indexable collection of objects with a length", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/List-class.html"},
|
|
10
|
+
"Map": {"type": "class", "signature": "abstract class Map<K, V>", "description": "A collection of key-value pairs", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/Map-class.html"},
|
|
11
|
+
"Set": {"type": "class", "signature": "abstract class Set<E> extends EfficientLengthIterable<E>", "description": "A collection of unique objects", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/Set-class.html"},
|
|
12
|
+
"Future": {"type": "class", "signature": "abstract class Future<T>", "description": "An object representing a delayed computation", "module": "dart:async", "url": "https://api.dart.dev/stable/dart-async/Future-class.html"},
|
|
13
|
+
"Stream": {"type": "class", "signature": "abstract class Stream<T>", "description": "A source of asynchronous data events", "module": "dart:async", "url": "https://api.dart.dev/stable/dart-async/Stream-class.html"},
|
|
14
|
+
"Object": {"type": "class", "signature": "class Object", "description": "The base class for all Dart objects", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/Object-class.html"},
|
|
15
|
+
"dynamic": {"type": "type", "signature": "dynamic", "description": "A special type that disables static type checking", "module": "dart:core", "url": "https://dart.dev/language/type-system#dynamic"},
|
|
16
|
+
"void": {"type": "type", "signature": "void", "description": "Indicates no return value", "module": "dart:core", "url": "https://dart.dev/language/built-in-types"},
|
|
17
|
+
"Null": {"type": "class", "signature": "class Null", "description": "The class of the null value", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/Null-class.html"},
|
|
18
|
+
"Never": {"type": "type", "signature": "Never", "description": "A type that has no values; functions that always throw", "module": "dart:core", "url": "https://dart.dev/null-safety/understanding-null-safety#never"},
|
|
19
|
+
"Iterable": {"type": "class", "signature": "abstract class Iterable<E>", "description": "A collection of values that can be accessed sequentially", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/Iterable-class.html"},
|
|
20
|
+
"Duration": {"type": "class", "signature": "class Duration implements Comparable<Duration>", "description": "A span of time", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/Duration-class.html"},
|
|
21
|
+
"DateTime": {"type": "class", "signature": "class DateTime implements Comparable<DateTime>", "description": "An instant in time, with date and time-of-day components", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/DateTime-class.html"},
|
|
22
|
+
"Uri": {"type": "class", "signature": "abstract class Uri", "description": "A parsed URI such as a URL", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/Uri-class.html"},
|
|
23
|
+
"RegExp": {"type": "class", "signature": "abstract class RegExp implements Pattern", "description": "A compiled regular expression pattern", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/RegExp-class.html"},
|
|
24
|
+
"Function": {"type": "class", "signature": "abstract class Function", "description": "The base class for all function types", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/Function-class.html"},
|
|
25
|
+
"Type": {"type": "class", "signature": "abstract class Type", "description": "Runtime representation of a type", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/Type-class.html"},
|
|
26
|
+
"Record": {"type": "class", "signature": "abstract class Record", "description": "The base class for all record types (Dart 3)", "module": "dart:core", "url": "https://dart.dev/language/records"},
|
|
27
|
+
"Comparable": {"type": "interface", "signature": "abstract class Comparable<T>", "description": "Interface for types with natural ordering", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/Comparable-class.html"},
|
|
28
|
+
"Pattern": {"type": "interface", "signature": "abstract class Pattern", "description": "Interface for string search patterns", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/Pattern-class.html"},
|
|
29
|
+
"BigInt": {"type": "class", "signature": "abstract class BigInt implements Comparable<BigInt>", "description": "An arbitrarily large integer", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/BigInt-class.html"},
|
|
30
|
+
"Completer": {"type": "class", "signature": "abstract class Completer<T>", "description": "Produces Future objects and completes them later", "module": "dart:async", "url": "https://api.dart.dev/stable/dart-async/Completer-class.html"},
|
|
31
|
+
"Timer": {"type": "class", "signature": "abstract class Timer", "description": "A count-down timer that fires a callback", "module": "dart:async", "url": "https://api.dart.dev/stable/dart-async/Timer-class.html"},
|
|
32
|
+
"Symbol": {"type": "class", "signature": "abstract class Symbol", "description": "Opaque name used by mirrors and invocations", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/Symbol-class.html"},
|
|
33
|
+
"Iterator": {"type": "interface", "signature": "abstract class Iterator<E>", "description": "An interface for stepping through elements one at a time", "module": "dart:core", "url": "https://api.dart.dev/stable/dart-core/Iterator-class.html"}
|
|
34
|
+
}
|
|
35
|
+
}
|