From 2ed74c9b97a6dbc25f42f60334fb78a18470c746 Mon Sep 17 00:00:00 2001 From: Alexandr Evstigneev Date: Fri, 10 Oct 2025 14:46:45 +0400 Subject: [PATCH] [textmate] IJPL-211936 fixed path to bundles detection It does not depend on the test mode but on the running mode. Sources have a different directory structure, namely for the plugin. GitOrigin-RevId: eb4ae9443c5d23f383d5c588b9af4787dbed87f2 --- .../src/org/jetbrains/plugins/textmate/TextMateServiceImpl.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/textmate/src/org/jetbrains/plugins/textmate/TextMateServiceImpl.kt b/plugins/textmate/src/org/jetbrains/plugins/textmate/TextMateServiceImpl.kt index 010ac81f7014..ba22dc9cbe7b 100644 --- a/plugins/textmate/src/org/jetbrains/plugins/textmate/TextMateServiceImpl.kt +++ b/plugins/textmate/src/org/jetbrains/plugins/textmate/TextMateServiceImpl.kt @@ -2,6 +2,7 @@ package org.jetbrains.plugins.textmate +import com.intellij.ide.plugins.PluginManagerCore import com.intellij.notification.Notification import com.intellij.notification.NotificationAction import com.intellij.notification.NotificationType @@ -377,7 +378,7 @@ class TextMateServiceImpl(private val myScope: CoroutineScope) : TextMateService } private val bundledBundlePath: Path - get() = PluginPathManager.getPluginHome(if (ApplicationManager.getApplication().isUnitTestMode) "textmate" else "textmate-plugin") + get() = PluginPathManager.getPluginHome(if (PluginManagerCore.isRunningFromSources()) "textmate" else "textmate-plugin") .toPath().resolve("lib/bundles").normalize() private fun fireFileTypesChangedEvent(reason: @NonNls String, update: Runnable) {