mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
For normal completions it behaves the same as PostfixExprBeginning, but it provides a hook for clients to provide a custom completion for this position. For example, you might want to a x ..< y snippet in this position. rdar://problem/29910383
37 lines
822 B
JSON
37 lines
822 B
JSON
{
|
|
key.request: source.request.codecomplete.setcustom,
|
|
key.results: [
|
|
{
|
|
key.name: "customExpr",
|
|
key.kind: myuid.customExpr,
|
|
key.context: [source.lang.swift.expr]
|
|
},
|
|
{
|
|
key.name: "customStmt",
|
|
key.kind: myuid.customStmt,
|
|
key.context: [source.lang.swift.stmt]
|
|
},
|
|
{
|
|
key.name: "customType",
|
|
key.kind: myuid.customType,
|
|
key.context: [source.lang.swift.type]
|
|
},
|
|
{
|
|
key.name: "customExprOrStmtOrType",
|
|
key.kind: myuid.customExprOrStmtOrType,
|
|
key.context: [
|
|
source.lang.swift.expr,
|
|
source.lang.swift.stmt,
|
|
source.lang.swift.type
|
|
]
|
|
},
|
|
{
|
|
key.name: "customForEach",
|
|
key.kind: myuid.customForEach,
|
|
key.context: [
|
|
source.lang.swift.foreach.sequence,
|
|
]
|
|
}
|
|
]
|
|
}
|