mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Revert "[kotlin][scripts] KTIJ-28774 Calls to JDK classes are not resolved in basic .kts scripts"
This reverts commit b703830437f90f37891d996138f8ac6c8ae4a9f5. ^KTIJ-28774 Open GitOrigin-RevId: fa167853d624fe917d89a1a8c1bc5799911cd5f6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
13d8e86595
commit
5eb3c204d1
-6
@@ -22,7 +22,6 @@ import kotlin.script.experimental.dependencies.DependenciesResolver
|
||||
import kotlin.script.experimental.dependencies.ScriptDependencies
|
||||
import kotlin.script.experimental.dependencies.asSuccess
|
||||
import kotlin.script.experimental.jvm.util.scriptCompilationClasspathFromContextOrStdlib
|
||||
import kotlin.script.experimental.location.ScriptExpectedLocation
|
||||
import kotlin.script.templates.standard.ScriptTemplateWithArgs
|
||||
|
||||
|
||||
@@ -39,11 +38,6 @@ class BundledScriptDefinitionContributor(val project: Project) : ScriptDefinitio
|
||||
|
||||
class BundledIdeScriptDefinition internal constructor(project: Project) : KotlinScriptDefinition(ScriptTemplateWithArgs::class) {
|
||||
override val dependencyResolver = BundledKotlinScriptDependenciesResolver(project)
|
||||
|
||||
// Since the definition is used for basic .kts files, its "expected-locations" must be consistent with the "isStandalone" flag.
|
||||
// Basic .kts files are standalone => expected to be under a project root. See KT-65674.
|
||||
override val scriptExpectedLocations: List<ScriptExpectedLocation>
|
||||
get() = listOf(ScriptExpectedLocation.Project)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user