remove comments

This commit is contained in:
Test 2024-10-15 09:50:44 -07:00
parent f57aad189c
commit 2cb9a3e5f6
2 changed files with 8 additions and 20 deletions

View file

@ -530,16 +530,14 @@ function escapeSpacesInPath(p: string): string {
}
async function handleEsbuildInstallation(ide: IDE, ideType: IdeType) {
// TODO: Uncomment
// if (ideType !== "jetbrains") {
// return;
// }
if (ideType !== "jetbrains") {
return;
}
// TODO: Uncomment
// const globalContext = new GlobalContext();
// if (globalContext.get("hasReceivedConfigTsNoticeJetBrains")) {
// return;
// }
const globalContext = new GlobalContext();
if (globalContext.get("hasReceivedConfigTsNoticeJetBrains")) {
return;
}
const esbuildPath = getEsbuildBinaryPath();
@ -550,9 +548,7 @@ async function handleEsbuildInstallation(ide: IDE, ideType: IdeType) {
console.debug("No esbuild binary detected");
const shouldInstall = await promptEsbuildInstallation(ide);
debugger;
// TODO: Debug toast
if (shouldInstall || true) {
await downloadAndInstallEsbuild(ide, esbuildPath);
}
@ -634,13 +630,6 @@ function readConfigJs(): string | undefined {
}
async function buildConfigTs(ide: IDE, ideType: IdeType) {
// TODO: Remove
await ide.showToast(
"info",
"You're using a custom 'config.ts' file, which requires 'esbuild' to be installed. Would you like to install it now?",
"YES",
);
const configTsPath = getConfigTsPath();
if (!fs.existsSync(configTsPath)) {

View file

@ -28,8 +28,7 @@ class CoreMessenger(
private val gson = Gson()
private val responseListeners = mutableMapOf<String, (Any?) -> Unit>()
private val ideProtocolClient = ideProtocolClient
private val useTcp: Boolean = true // TODO: Revert
private val useTcp: Boolean = false
private fun write(message: String) {
try {
writer?.write(message + "\r\n")