From f41dba069ef06444b4cc3b4566a0c42df535a7bd Mon Sep 17 00:00:00 2001 From: Celestino Amoroso Date: Mon, 17 Jun 2024 06:57:47 +0200 Subject: [PATCH] plugin.go: support Liteide and VScode to debug executable file name --- plugins.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins.go b/plugins.go index c7b8ce7..feecfd1 100644 --- a/plugins.go +++ b/plugins.go @@ -29,7 +29,7 @@ func pluginExists(name string) (exists bool) { func makePluginName(name string) (decorated string) { var template string - if execName, err := os.Executable(); err != nil || !strings.HasSuffix(execName, ".debug") { + if execName, err := os.Executable(); err != nil || strings.Index(execName, "debug") < 0 { template = "expr-%s-plugin.so" } else { template = "expr-%s-plugin.so.debug"