From 8f37fec318c9ba22367b2128248b7937e7265b01 Mon Sep 17 00:00:00 2001 From: Adrian Lupu Date: Sat, 14 Nov 2020 17:53:32 +0200 Subject: [PATCH] fixed vscode snippets https://github.com/RicardoNiepel/C4-PlantUML/issues/71 --- .vscode/C4.code-snippets | 179 ++++++++++++++++----------------------- 1 file changed, 74 insertions(+), 105 deletions(-) diff --git a/.vscode/C4.code-snippets b/.vscode/C4.code-snippets index 8766176..e062414 100644 --- a/.vscode/C4.code-snippets +++ b/.vscode/C4.code-snippets @@ -1,129 +1,116 @@ { "C4_Include_Context": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Include C4 Context Diagram", "body": [ - "!include https://raw.githubusercontent.com/adrianvlupu/C4-PlantUML/latest/C4_Context.puml", - "$0" + "!include https://raw.githubusercontent.com/adrianvlupu/C4-PlantUML/latest/C4_Context.puml" ], "description": "Include C4 Context Diagram" }, "C4_Include_Container": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Include C4 Container Diagram", "body": [ - "!include https://raw.githubusercontent.com/adrianvlupu/C4-PlantUML/latest/C4_Container.puml", - "$0" + "!include https://raw.githubusercontent.com/adrianvlupu/C4-PlantUML/latest/C4_Container.puml" ], "description": "Include C4 Container Diagram" }, "C4_Include_Component": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Include C4 Component Diagram", "body": [ - "!include https://raw.githubusercontent.com/adrianvlupu/C4-PlantUML/latest/C4_Component.puml", - "$0" + "!include https://raw.githubusercontent.com/adrianvlupu/C4-PlantUML/latest/C4_Component.puml" ], "description": "Include C4 Component Diagram" }, "C4_Include_Deployment": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Include C4 Deployment Diagram", "body": [ - "!include https://raw.githubusercontent.com/adrianvlupu/C4-PlantUML/latest/C4_Deployment.puml", - "$0" + "!include https://raw.githubusercontent.com/adrianvlupu/C4-PlantUML/latest/C4_Deployment.puml" ], "description": "Include C4 Deployment Diagram" }, "C4_Include_Dynamic": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Include C4 Dynamic Diagram", "body": [ - "!include https://raw.githubusercontent.com/adrianvlupu/C4-PlantUML/latest/C4_Dynamic.puml", - "$0" + "!include https://raw.githubusercontent.com/adrianvlupu/C4-PlantUML/latest/C4_Dynamic.puml" ], "description": "Include C4 Dynamic Diagram" }, "C4_Person": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Person", "body": [ - "Person(${1:alias}, \"${2:label}\")", - "$0" + "Person(${1:alias}, \"${2:label}\")" ], "description": "Add Person to C4 diagram" }, "C4_Person_Descr": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Person with Description", "body": [ - "Person(${1:alias}, \"${2:label}\", \"${3:description}\")", - "$0" + "Person(${1:alias}, \"${2:label}\", \"${3:description}\")" ], "description": "Add Person with Description to C4 diagram" }, "C4_Person_Ext": { - "scope": "diagram", + "scope": "plantuml", "prefix": [ "External Person", "Person (External)" ], "body": [ - "Person_Ext(${1:alias}, \"${2:label}\")", - "$0" + "Person_Ext(${1:alias}, \"${2:label}\")" ], "description": "Add External Person to C4 diagram" }, "C4_Person_Ext_Descr": { - "scope": "diagram", + "scope": "plantuml", "prefix": [ "External Person with Description", "Person (External) with Description" ], "body": [ - "Person_Ext(${1:alias}, \"${2:label}\", \"${3:description}\")", - "$0" + "Person_Ext(${1:alias}, \"${2:label}\", \"${3:description}\")" ], "description": "Add External Person with Description to C4 diagram" }, "C4_Container": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Container", "body": [ - "Container(${1:alias}, \"${2:label}\", \"${3:technology}\")", - "$0" + "Container(${1:alias}, \"${2:label}\", \"${3:technology}\")" ], "description": "Add Container to C4 diagram" }, "C4_Container_Descr": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Container with Description", "body": [ - "Container(${1:alias}, \"${2:label}\", \"${3:technology}\", \"${4:description}\")", - "$0" + "Container(${1:alias}, \"${2:label}\", \"${3:technology}\", \"${4:description}\")" ], "description": "Add Container with Description to C4 diagram" }, "C4_ContainerDb": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Database Container", "body": [ - "ContainerDb(${1:alias}, \"${2:label}\", \"${3:technology}\")", - "$0" + "ContainerDb(${1:alias}, \"${2:label}\", \"${3:technology}\")" ], "description": "Add Database Container to C4 diagram" }, "C4_ContainerDb_Descr": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Database Container with Description", "body": [ - "ContainerDb(${1:alias}, \"${2:label}\", \"${3:technology}\", \"${4:description}\")", - "$0" + "ContainerDb(${1:alias}, \"${2:label}\", \"${3:technology}\", \"${4:description}\")" ], "description": "Add Database Container with Description to C4 diagram" }, "C4_Container_Boundary": { - "scope": "diagram", + "scope": "plantuml", "prefix": [ "Container Boundary", "Boundary for Container" @@ -136,85 +123,77 @@ "description": "Add a Container Boundary to C4 diagram" }, "C4_Component": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Component", "body": [ - "Component(${1:alias}, \"${2:label}\", \"${3:technology}\")", - "$0" + "Component(${1:alias}, \"${2:label}\", \"${3:technology}\")" ], "description": "Add Component to C4 diagram" }, "C4_Component_Descr": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Component with Description", "body": [ - "Component(${1:alias}, \"${2:label}\", \"${3:technology}\", \"${4:description}\")", - "$0" + "Component(${1:alias}, \"${2:label}\", \"${3:technology}\", \"${4:description}\")" ], "description": "Add Component with Description to C4 diagram" }, "C4_ComponentDb": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Database Component", "body": [ - "ComponentDb(${1:alias}, \"${2:label}\", \"${3:technology}\")", - "$0" + "ComponentDb(${1:alias}, \"${2:label}\", \"${3:technology}\")" ], "description": "Add Database Component to C4 diagram" }, "C4_ComponentDb_Descr": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Database Component with Description", "body": [ - "ComponentDb(${1:alias}, \"${2:label}\", \"${3:technology}\", \"${4:description}\")", - "$0" + "ComponentDb(${1:alias}, \"${2:label}\", \"${3:technology}\", \"${4:description}\")" ], "description": "Add Database Component with Description to C4 diagram" }, "C4_System": { - "scope": "diagram", + "scope": "plantuml", "prefix": "System", "body": [ - "System(${1:alias}, \"${2:label}\")", - "$0" + "System(${1:alias}, \"${2:label}\")" ], "description": "Add System to C4 diagram" }, "C4_System_Descr": { - "scope": "diagram", + "scope": "plantuml", "prefix": "System with Description", "body": [ - "System(${1:alias}, \"${2:label}\", \"${3:description}\")", - "$0" + "System(${1:alias}, \"${2:label}\", \"${3:description}\")" ], "description": "Add System with Description to C4 diagram" }, "C4_System_Ext": { - "scope": "diagram", + "scope": "plantuml", "prefix": [ "External System", "System (External)" ], "body": [ - "System_Ext(${1:alias}, \"${2:label}\")", - "$0" + "System_Ext(${1:alias}, \"${2:label}\")" ], "description": "Add External System to C4 diagram" }, "C4_System_Ext_Descr": { - "scope": "diagram", + "scope": "plantuml", "prefix": [ "External System with Description", "System (External) with Description" ], "body": [ - "System_Ext(${1:alias}, \"${2:label}\", \"${3:description}\")", - "$0" + "System_Ext(${1:alias}, \"${2:label}\", \"${3:description}\")" ], "description": "Add External System with Description to C4 diagram" }, "C4_System_Boundary": { - "scope": "diagram", + "scope": "plantuml", "prefix": [ "System Boundary", "Boundary for System" @@ -227,7 +206,7 @@ "description": "Add a System Boundary to C4 diagram" }, "C4_Enterprise_Boundary": { - "scope": "diagram", + "scope": "plantuml", "prefix": [ "Enterprise Boundary", "Boundary for Enterprise" @@ -240,79 +219,71 @@ "description": "Add an Enterprise Boundary to C4 diagram" }, "C4_Relationship": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Relationship", "body": [ - "Rel(${1:from_alias}, ${2:to_alias}, \"${3:label}\")", - "$0" + "Rel(${1:from_alias}, ${2:to_alias}, \"${3:label}\")" ], "description": "Add unidirectional Relationship to C4 diagram" }, "C4_Relationship_Techn": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Relationship with Technology", "body": [ - "Rel(${1:from_alias}, ${2:to_alias}, \"${3:label}\", \"${4:technology}\")", - "$0" + "Rel(${1:from_alias}, ${2:to_alias}, \"${3:label}\", \"${4:technology}\")" ], "description": "Add unidirectional Relationship with Technology to C4 diagram" }, "C4_Relationship_Bi": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Bidirectional Relationship", "body": [ - "BiRel(${1:from_alias}, ${2:to_alias}, \"${3:label}\")", - "$0" + "BiRel(${1:from_alias}, ${2:to_alias}, \"${3:label}\")" ], "description": "Add bidirectional Relationship to C4 diagram" }, "C4_Relationship_Bi_Techn": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Bidirectional Relationship with Technology", "body": [ - "BiRel(${1:from_alias}, ${2:to_alias}, \"${3:label}\", \"${4:technology}\")", - "$0" + "BiRel(${1:from_alias}, ${2:to_alias}, \"${3:label}\", \"${4:technology}\")" ], "description": "Add bidirectional Relationship with Technology to C4 diagram" }, "C4_Relationship_Index": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Relationship with Index", "body": [ - "RelIndex(${1:index}, ${2:from_alias}, ${3:to_alias}, \"${4:label}\")", - "$0" + "RelIndex(${1:index}, ${2:from_alias}, ${3:to_alias}, \"${4:label}\")" ], "description": "Add unidirectional Relationship to C4 Dynamic Diagram" }, "C4_Relationship_Index_Techn": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Relationship with Technology and Index", "body": [ - "RelIndex(${1:index}, ${2:from_alias}, ${3:to_alias}, \"${4:label}\", \"${5:technology}\")", - "$0" + "RelIndex(${1:index}, ${2:from_alias}, ${3:to_alias}, \"${4:label}\", \"${5:technology}\")" ], "description": "Add unidirectional Relationship with Technology to C4 Dynamic Diagram" }, "C4_Layout_Right": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Layout to Right side", "body": [ - "Lay_R(${1:from_alias}, ${2:to_alias})", - "$0" + "Lay_R(${1:from_alias}, ${2:to_alias})" ], "description": "Add hidden layout line to put {to} to the right of {from}" }, "C4_Layout_Left": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Layout to Left side", "body": [ - "Lay_L(${1:from_alias}, ${2:to_alias})", - "$0" + "Lay_L(${1:from_alias}, ${2:to_alias})" ], "description": "Add hidden layout line to put {to} to the left of {from}" }, "C4_Boundary": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Boundary", "body": [ "Boundary(${1:alias}, \"${2:label}\"){", @@ -322,7 +293,7 @@ "description": "Add a generic boundary to C4 diagram." }, "C4_Boundary_Type": { - "scope": "diagram", + "scope": "plantuml", "prefix": [ "Boundary with type" ], @@ -334,7 +305,7 @@ "description": "Add a generic boundary to C4 diagram." }, "C4_Deployment_Node": { - "scope": "diagram", + "scope": "plantuml", "prefix": "Deployment Node", "body": [ "Deployment_Node(${1:alias}, \"${2:label}\"){", @@ -344,7 +315,7 @@ "description": "Add a deployment node to C4 diagram." }, "C4_Deployment_Node_Type": { - "scope": "diagram", + "scope": "plantuml", "prefix": [ "Deployment Node with type" ], @@ -356,29 +327,27 @@ "description": "Add a deployment node to C4 diagram." }, "C4_Dynamic_Increment": { - "scope": "diagram", + "scope": "plantuml", "prefix": [ "Increment index" ], "body": [ - "increment(${1:count})", - "$0" + "increment(${1:count})" ], "description": "Increment index of C4 Dynamic Diagram." }, "C4_Dynamic_Set_Index": { - "scope": "diagram", + "scope": "plantuml", "prefix": [ "Set index" ], "body": [ - "setIndex(${1:value})", - "$0" + "setIndex(${1:value})" ], "description": "Set index of C4 Dynamic Diagram" }, "C4_Hide_Stereotype": { - "scope": "diagram", + "scope": "plantuml", "prefix": [ "Hide stereotype", "No stereotype" @@ -389,7 +358,7 @@ "description": "Hide stereotypes from C4 diagram.." }, "C4_Layout_With_Legend": { - "scope": "diagram", + "scope": "plantuml", "prefix": [ "Layout with legend", "Legend layout" @@ -400,7 +369,7 @@ "description": "Add legend to C4 diagram." }, "C4_Layout_Left_Right": { - "scope": "diagram", + "scope": "plantuml", "prefix": [ "Layout left to right", "Left to right layout" @@ -411,7 +380,7 @@ "description": "Left to right layout for C4 diagram." }, "C4_Layout_Top_Down": { - "scope": "diagram", + "scope": "plantuml", "prefix": [ "Layout top down", "Top down layout" @@ -422,7 +391,7 @@ "description": "Top down layout for C4 diagram." }, "C4_Layout_As_Sketch": { - "scope": "diagram", + "scope": "plantuml", "prefix": [ "Layout as sketch", "Sketch layout"