Skip to content

Commit

Permalink
Revert "write jsconfig to game folder root directory"
Browse files Browse the repository at this point in the history
This reverts commit 2c63f71.
  • Loading branch information
ZZZank committed Mar 31, 2024
1 parent c7a0600 commit 1cebd4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/probejs/ProbePaths.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ public class ProbePaths {
public static final Path DOCS = PROBE.resolve("docs");
public static final Path GENERATED = PROBE.resolve("generated");
public static final Path USER_DEFINED = PROBE.resolve("user");
public static final Path GAME_FOLDER = Platform.getGameFolder();
public static final Path WORKSPACE = GAME_FOLDER.resolve(".vscode");
public static final Path WORKSPACE = Platform.getGameFolder().resolve(".vscode");

public static void init() {
if (Files.notExists(PROBE, new LinkOption[0])) {
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/probejs/compiler/TypingCompiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.probejs.info.type.TypeInfoClass;
import com.probejs.plugin.CapturedClasses;
import com.probejs.plugin.DummyBindingEvent;
import dev.latvian.kubejs.KubeJSPaths;
import dev.latvian.kubejs.recipe.RecipeTypeJS;
import dev.latvian.kubejs.recipe.RegisterRecipeHandlersEvent;
import dev.latvian.kubejs.server.ServerScriptManager;
Expand Down Expand Up @@ -174,7 +175,7 @@ public static void compileJava(Set<Class<?>> globalClasses) throws IOException {
}

public static void compileJSConfig() throws IOException {
BufferedWriter writer = Files.newBufferedWriter(ProbePaths.GAME_FOLDER.resolve("jsconfig.json"));
BufferedWriter writer = Files.newBufferedWriter(KubeJSPaths.DIRECTORY.resolve("jsconfig.json"));
String lines = String
.join(
"\n",
Expand Down

0 comments on commit 1cebd4b

Please sign in to comment.