Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 1faa0fc

Browse files
committed
Revert "Removing plantuml due to #1448"
This reverts commit fac9bdc.
1 parent 0d1e256 commit 1faa0fc

File tree

6 files changed

+114
-0
lines changed

6 files changed

+114
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#-----------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See LICENSE in the project root for license information.
4+
#-----------------------------------------------------------------------------------------
5+
6+
FROM openjdk:8
7+
8+
# Install git, process tools
9+
RUN apt-get update && apt-get -y install git procps
10+
11+
# Install GraphViz
12+
RUN apt-get install -y graphviz
13+
14+
# Clean up
15+
RUN apt-get autoremove -y \
16+
&& apt-get clean -y \
17+
&& rm -rf /var/lib/apt/lists/*
18+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "PlantUML",
3+
"dockerFile": "Dockerfile",
4+
"extensions": [
5+
"jebbs.plantuml"
6+
]
7+
}

containers/plantuml/.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
README.md
2+
test-project
3+
.vscode
4+
.npmignore

containers/plantuml/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# PlantUML
2+
3+
## Summary
4+
5+
*Demonstrates using PlantUML local rendering without installing dependencies. Includes Java, GraphViz, and the PlantUML extension.*
6+
7+
| Metadata | Value |
8+
|----------|-------|
9+
| *Contributors* | The VS Code Team |
10+
| *Definition type* | Dockerfile |
11+
| *Languages, platforms* | PlantUML |
12+
13+
## Usage
14+
15+
[See here for information on using this and other definitions in your project](../../README.md#using-a-definition). There are no addtional steps required.
16+
17+
### Try it
18+
19+
1. Run **Remote-Container: Open Folder in Container...** in VS Code and select a cloned copy of this entire folder.
20+
2. The container will build and VS Code will connect.
21+
3. Open `sample.plantuml` in the `test-project` folder and hit Alt-D.
22+
23+
## License
24+
25+
Copyright (c) Microsoft Corporation. All rights reserved.
26+
27+
Licensed under the MIT License. See [LICENSE](../../LICENSE).
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Markdown Sample
2+
3+
Open the markdown preview to check it out!
4+
5+
## Code
6+
```
7+
@startuml
8+
legend
9+
VS Code can do that?
10+
end legend
11+
VisualStudioCode -> Agent: openFolder(path)
12+
Agent -> ExtensionHost: installExtensions
13+
ExtensionHost -> ExtensionHost: download
14+
ExtensionHost -> ExtensionHost: install
15+
ExtensionHost -> Agent: return true
16+
Agent -> VisualStudioCode: return true@enduml
17+
```
18+
19+
## Diagram
20+
```plantuml
21+
@startuml
22+
legend
23+
VS Code can do that?
24+
end legend
25+
VisualStudioCode -> Agent: openFolder(path)
26+
Agent -> ExtensionHost: installExtensions
27+
ExtensionHost -> ExtensionHost: download
28+
ExtensionHost -> ExtensionHost: install
29+
ExtensionHost -> Agent: return true
30+
Agent -> VisualStudioCode: return true
31+
@enduml
32+
```
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Hit Alt-D preview me!
2+
@startuml
3+
title First Diagram
4+
legend
5+
VS Code can do that?
6+
end legend
7+
VisualStudioCode -> Agent: openFolder(path)
8+
Agent -> ExtensionHost: installExtensions
9+
ExtensionHost -> ExtensionHost: download
10+
ExtensionHost -> ExtensionHost: install
11+
ExtensionHost -> Agent: return true
12+
Agent -> VisualStudioCode: return true
13+
@enduml
14+
15+
@startuml
16+
title Second Diagram
17+
legend
18+
VS Code can do that?
19+
end legend
20+
VisualStudioCode -> Agent: installWorkspaceExtension(id)
21+
Agent -> ExtensionHost: installExtension(id)
22+
ExtensionHost -> ExtensionHost: download
23+
ExtensionHost -> ExtensionHost: install
24+
ExtensionHost -> Agent: return true
25+
Agent -> VisualStudioCode: return true
26+
@enduml

0 commit comments

Comments
 (0)