generated from CleanroomMC/TemplateDevEnv
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into precompiling
- Loading branch information
Showing
141 changed files
with
12,051 additions
and
2,151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
configurations { | ||
lsp4j | ||
implementation.extendsFrom(lsp4j) | ||
} | ||
|
||
jar { | ||
from provider { | ||
configurations.lsp4j.collect { | ||
it.isDirectory() ? it : zipTree(it) | ||
} | ||
}, { | ||
exclude 'META-INF', 'META-INF/**', 'about*.html' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Supported editors | ||
|
||
- Visual Studio Code | ||
|
||
# TODO: | ||
|
||
- IntelliJ IDEA via [lsp4intellij](https://github.com/ballerina-platform/lsp4intellij) | ||
or [lsp4ij](https://github.com/redhat-developer/lsp4ij) | ||
- helix + vim via `netcat` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
out | ||
dist | ||
node_modules | ||
.vscode-test/ | ||
*.vsix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}" | ||
], | ||
"name": "Launch Extension", | ||
"outFiles": [ | ||
"${workspaceFolder}/out/**/*.js" | ||
], | ||
"preLaunchTask": "npm", | ||
"request": "launch", | ||
"type": "extensionHost" | ||
} | ||
|
||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"json.schemas": [ | ||
{ | ||
"fileMatch": [ | ||
"*.snippets.json" | ||
], | ||
"url": "vscode://schemas/global-snippets" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "build", | ||
"group": "build", | ||
"problemMatcher": [], | ||
"label": "npm", | ||
"detail": "npm run build-base -- --sourcemap" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
** | ||
!out/main.js | ||
!package-lock.json | ||
!package.json | ||
!README.md | ||
!logo.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# GroovyScript | ||
|
||
This is the official VSC extension for the Minecraft 1.12.2 mod [GroovyScript](https://github.com/CleanroomMC/GroovyScript). | ||
It allows VSC to connect to a running minecraft instance with a groovy folder and provide various tools for writing | ||
scripts like auto-completion and hover info. | ||
|
||
## Getting Started | ||
First you need to start the language server. Then you can connect VSC. | ||
### Starting the language Server | ||
There are two ways to do that. | ||
1. Adding `-Dgroovyscript.run_ls=true` to the JVM arguments in your preferred launcher and start Minecraft with GroovyScript. | ||
You will be able to connect VSC as soon as GroovyScript start running `preInit` scripts. | ||
2. By starting Minecraft and GroovyScript and running `/grs runLS` command. Obviously you need to load into a world for that. | ||
|
||
You can check if the server started by checking for a `Starting Language server` message in the groovy log. | ||
|
||
By default, the language server is started with a port of `25564`. It must be the same as the port in the VSC extension, | ||
which is configurable. | ||
|
||
### Connect VSC | ||
1. Open VSC (skip if already open) | ||
2. Install GroovyScript extension (skip if already installed) | ||
3. Open the instance folder or groovy folder of a modpack in VSC | ||
4. If you just opened VSC, it should auto connect. Otherwise, run the `GroovyScript: Reconnect` command. | ||
5. Done | ||
|
||
At the bottom right in the status bar is a thumbs up/down emoji. This indicates the server connection status. | ||
|
||
That's it. The important part is that Minecraft needs to be running and the language server is started. | ||
Note that minecraft has higher memory and cpu usage while the language server is running. | ||
|
||
Happy scripting :) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.