Skip to content

Commit e53b6fa

Browse files
authored
Setup GitHub Codespaces (OpenAPITools#13533)
* Setup GitHub Codespaces * updated devcontainer to new format
1 parent e52a9fd commit e53b6fa

File tree

2 files changed

+131
-77
lines changed

2 files changed

+131
-77
lines changed

.devcontainer/devcontainer.json

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "OpenAPIGenerator",
3+
"image": "mcr.microsoft.com/devcontainers/base:debian",
4+
"features": {
5+
"ghcr.io/devcontainers/features/java:1": {
6+
"version": "11",
7+
"installMaven": true
8+
},
9+
"ghcr.io/devcontainers/features/node:1": {
10+
"version": "lts"
11+
},
12+
"ghcr.io/snebjorn/devcontainer-feature/chromium:latest": {}
13+
},
14+
// Configure tool-specific properties.
15+
"customizations": {
16+
// Configure properties specific to VS Code.
17+
"vscode": {
18+
// Set *default* container specific settings.json values on container create.
19+
"settings": {
20+
"java.configuration.runtimes": [
21+
{
22+
"name": "JavaSE-11",
23+
"path": "/usr/local/sdkman/candidates/java/11.0.16.1-ms",
24+
"sources": "/usr/local/sdkman/candidates/java/11.0.16.1-ms/lib/src.zip",
25+
"javadoc": "https://docs.oracle.com/en/java/javase/11/docs/api",
26+
"default": true
27+
}
28+
]
29+
},
30+
// Add the IDs of extensions you want installed when the container is created.
31+
"extensions": [
32+
"vscjava.vscode-java-pack",
33+
"attilabuti.mustache-syntax-vscode",
34+
"formulahendry.code-runner",
35+
"visualstudioexptteam.vscodeintellicode",
36+
"42crunch.vscode-openapi",
37+
"mermade.openapi-lint"
38+
]
39+
}
40+
},
41+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
42+
// "forwardPorts": [],
43+
// Use 'postCreateCommand' to run commands after the container is created.
44+
// "postCreateCommand": "mvn clean package -DskipTests",
45+
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
46+
"remoteUser": "vscode"
47+
}

openapi-generator.code-workspace

+84-77
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,85 @@
11
{
2-
"folders": [
3-
{
4-
"name": "openapi-generator",
5-
"path": "."
6-
},
7-
{
8-
"name": "openapi-generator-cli",
9-
"path": "modules/openapi-generator-cli"
10-
},
11-
{
12-
"name": "openapi-generator-core",
13-
"path": "modules/openapi-generator-core"
14-
},
15-
{
16-
"name": "openapi-generator-gradle-plugin",
17-
"path": "modules/openapi-generator-gradle-plugin"
18-
},
19-
{
20-
"name": "openapi-generator-maven-plugin",
21-
"path": "modules/openapi-generator-maven-plugin"
22-
},
23-
{
24-
"name": "openapi-generator-online",
25-
"path": "modules/openapi-generator-online"
26-
},
27-
],
28-
"settings": {
29-
"editor.formatOnType": true,
30-
"editor.linkedEditing": true,
31-
"editor.tabCompletion": "on",
32-
"editor.tabSize": 4,
33-
"editor.renderWhitespace": "boundary",
34-
"editor.suggest.shareSuggestSelections": true,
35-
"editor.suggestSelection": "first",
36-
"editor.semanticHighlighting.enabled": true,
37-
"explorer.confirmDelete": true,
38-
39-
"files.autoSave": "onFocusChange",
40-
"files.exclude": {
41-
"**/.classpath": true,
42-
"**/.factorypath": true,
43-
"**/.project": true,
44-
"**/.settings": true
45-
},
46-
"files.trimFinalNewlines": false,
47-
"files.trimTrailingWhitespace": true,
48-
49-
"task.saveBeforeRun": "always",
50-
51-
"java.autobuild.enabled": false,
52-
"java.completion.enabled": true,
53-
"java.completion.guessMethodArguments": true,
54-
"java.completion.maxResults": 5,
55-
"java.format.onType.enabled": true,
56-
57-
"java.referencesCodeLens.enabled": true,
58-
"java.saveActions.organizeImports": true,
59-
"java.showBuildStatusOnStart.enabled": true,
60-
61-
"java.dependency.autoRefresh": true,
62-
"java.dependency.refreshDelay": 3000,
63-
"java.format.enabled": true,
64-
65-
"maven.pomfile.autoUpdateEffectivePOM": true,
66-
},
67-
"extensions": {
68-
"recommendations": [
69-
"vscjava.vscode-java-pack",
70-
"attilabuti.mustache-syntax-vscode",
71-
"formulahendry.code-runner",
72-
"visualstudioexptteam.vscodeintellicode",
73-
"42crunch.vscode-openapi",
74-
"mermade.openapi-lint"
75-
76-
]
77-
}
78-
}
2+
"folders": [
3+
{
4+
"name": "openapi-generator",
5+
"path": "."
6+
},
7+
{
8+
"name": "openapi-generator-cli",
9+
"path": "modules/openapi-generator-cli"
10+
},
11+
{
12+
"name": "openapi-generator-core",
13+
"path": "modules/openapi-generator-core"
14+
},
15+
{
16+
"name": "openapi-generator-gradle-plugin",
17+
"path": "modules/openapi-generator-gradle-plugin"
18+
},
19+
{
20+
"name": "openapi-generator-maven-plugin",
21+
"path": "modules/openapi-generator-maven-plugin"
22+
},
23+
{
24+
"name": "openapi-generator-online",
25+
"path": "modules/openapi-generator-online"
26+
}
27+
],
28+
"settings": {
29+
"editor.formatOnType": true,
30+
"editor.linkedEditing": true,
31+
"editor.tabCompletion": "on",
32+
"editor.tabSize": 4,
33+
"editor.renderWhitespace": "boundary",
34+
"editor.suggest.shareSuggestSelections": true,
35+
"editor.suggestSelection": "first",
36+
"editor.semanticHighlighting.enabled": true,
37+
"explorer.confirmDelete": true,
38+
"files.autoSave": "onFocusChange",
39+
"files.exclude": {
40+
"**/.classpath": true,
41+
"**/.factorypath": true,
42+
"**/.project": true,
43+
"**/.settings": true,
44+
"modules/openapi-generator-cli": true,
45+
"modules/openapi-generator-core": true,
46+
"modules/openapi-generator-gradle-plugin": true,
47+
"modules/openapi-generator-maven-plugin": true,
48+
"modules/openapi-generator-online": true,
49+
},
50+
"files.trimFinalNewlines": false,
51+
"files.trimTrailingWhitespace": true,
52+
"task.saveBeforeRun": "always",
53+
"java.autobuild.enabled": false,
54+
"java.completion.enabled": true,
55+
"java.completion.guessMethodArguments": true,
56+
"java.completion.maxResults": 5,
57+
"java.format.onType.enabled": true,
58+
"java.referencesCodeLens.enabled": true,
59+
"java.saveActions.organizeImports": true,
60+
"java.showBuildStatusOnStart.enabled": true,
61+
"java.dependency.autoRefresh": true,
62+
"java.dependency.refreshDelay": 3000,
63+
"java.format.enabled": true,
64+
"java.configuration.updateBuildConfiguration": "disabled",
65+
"maven.pomfile.autoUpdateEffectivePOM": true,
66+
"maven.excludedFolders": [
67+
"**/.*",
68+
"**/node_modules",
69+
"**/target",
70+
"**/bin",
71+
"**/archetype-resources",
72+
"samples"
73+
]
74+
},
75+
"extensions": {
76+
"recommendations": [
77+
"vscjava.vscode-java-pack",
78+
"attilabuti.mustache-syntax-vscode",
79+
"formulahendry.code-runner",
80+
"visualstudioexptteam.vscodeintellicode",
81+
"42crunch.vscode-openapi",
82+
"mermade.openapi-lint"
83+
]
84+
}
85+
}

0 commit comments

Comments
 (0)