mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
GO-18790: Open a single file when the IDE is closed
GitOrigin-RevId: 75b6a746fbf2e25a9a92e326d55c54671e0684a1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
570d6f2c6c
commit
a3216712f6
@@ -177,7 +177,7 @@ public final class LightEditUtil {
|
||||
}
|
||||
|
||||
public static boolean isLightEditEnabled() {
|
||||
return Registry.is(ENABLED_FILE_OPEN_KEY) && !PlatformUtils.isDataGrip();
|
||||
return Registry.is(ENABLED_FILE_OPEN_KEY) && !PlatformUtils.isDataGrip() && !PlatformUtils.isGoIde();
|
||||
}
|
||||
|
||||
@ApiStatus.Internal
|
||||
|
||||
@@ -4,6 +4,7 @@ package com.intellij.platform
|
||||
import com.intellij.ide.impl.OpenProjectTask
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.projectImport.ProjectOpenProcessor
|
||||
import org.jetbrains.annotations.ApiStatus
|
||||
import java.nio.file.Path
|
||||
|
||||
/**
|
||||
@@ -21,7 +22,10 @@ interface CommandLineProjectOpenProcessor {
|
||||
suspend fun openProjectAndFile(file: Path, tempProject: Boolean, options: OpenProjectTask = OpenProjectTask()): Project?
|
||||
|
||||
companion object {
|
||||
fun getInstance(): CommandLineProjectOpenProcessor = getInstanceIfExists() ?: PlatformProjectOpenProcessor.getInstance()
|
||||
fun getInstance(): CommandLineProjectOpenProcessor = getInstanceIfExists() ?: getDefaultInstance()
|
||||
|
||||
@ApiStatus.Internal
|
||||
fun getDefaultInstance(): CommandLineProjectOpenProcessor = PlatformProjectOpenProcessor.getInstance()
|
||||
|
||||
fun getInstanceIfExists(): CommandLineProjectOpenProcessor? {
|
||||
return ProjectOpenProcessor.EXTENSION_POINT_NAME.getIterable()
|
||||
|
||||
Reference in New Issue
Block a user