Skip to content

Commit

Permalink
vscode supporting files
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Apr 18, 2024
1 parent e67cf95 commit 143b54a
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ build/**
### IntelliJ IDEA ###
.idea/

### VS Code ###
.vscode/


### Mac OS ###
.DS_Store
Expand Down
20 changes: 20 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"java.format.enabled": true,
"java.format.settings.url": ".ortus-java-style.xml",
"java.configuration.updateBuildConfiguration": "automatic",
"java.dependency.packagePresentation": "hierarchical",
"java.project.explorer.showNonJavaResources": true,
"java.compile.nullAnalysis.mode": "automatic",
"java.debug.settings.onBuildFailureProceed": true,
"java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx2G -Xms100m -Xlog:disable",
"java.dependency.syncWithFolderExplorer": true,
"[java]": {
"editor.formatOnSave": true,
"editor.insertSpaces": false,
"editor.tabSize": 4
},
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
}
69 changes: 69 additions & 0 deletions .vscode/snippets.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"BoxLang License Header": {
"prefix": "header",
"body": [
"/**",
" * [BoxLang]",
" *",
" * Copyright [2023] [Ortus Solutions, Corp]",
" *",
" * Licensed under the Apache License, Version 2.0 (the \"License\");",
" * you may not use this file except in compliance with the License.",
" * You may obtain a copy of the License at",
" *",
" * http://www.apache.org/licenses/LICENSE-2.0",
" *",
" * Unless required by applicable law or agreed to in writing, software",
" * distributed under the License is distributed on an \"AS IS\" BASIS,",
" * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.",
" * See the License for the specific language governing permissions and",
" * limitations under the License.",
" */"
],
"description": "Inserts a BoxLang license header"
},
"DisplayName":{
"prefix": "displayname",
"body": "@DisplayName( \"It can $0\" )"
},
"Runtime Test Class": {
"prefix": "testclass",
"body": [
"/**",
" * [BoxLang]",
" *",
" * Copyright [2023] [Ortus Solutions, Corp]",
" *",
" * Licensed under the Apache License, Version 2.0 (the \"License\");",
" * you may not use this file except in compliance with the License.",
" * You may obtain a copy of the License at",
" *",
" * http://www.apache.org/licenses/LICENSE-2.0",
" *",
" * Unless required by applicable law or agreed to in writing, software",
" * distributed under the License is distributed on an \"AS IS\" BASIS,",
" * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.",
" * See the License for the specific language governing permissions and",
" * limitations under the License.",
" */",
"",
"package ortus.boxlang.runtime;",
"",
"import org.junit.Ignore;",
"import org.junit.jupiter.api.Test;",
"import org.junit.jupiter.api.DisplayName;",
"import static com.google.common.truth.Truth.assertThat;",
"",
"public class ${1:${TM_FILENAME_BASE}} {",
"",
"\t@DisplayName( \"Test it\" )",
"\t@Test",
"\tvoid testIt() {",
"\t\tassertThat( true ).isTrue();",
"\t}",
"",
"}"
],
"description": "Inserts a test class with license header and test method"
}
}

0 comments on commit 143b54a

Please sign in to comment.