mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
2022.2 release
GitOrigin-RevId: 7b38a45a03a7b8222494a37efb362c2ede2f1a53
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ea70b361d2
commit
d07181f194
@@ -1,9 +1,9 @@
|
||||
plugins {
|
||||
id("org.jetbrains.intellij") version "1.2.0"
|
||||
id("org.jetbrains.intellij") version "1.5.3"
|
||||
}
|
||||
|
||||
group = "ru.adelf"
|
||||
version = "2022.1"
|
||||
version = "2022.2"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
@@ -32,15 +32,15 @@ sourceSets {
|
||||
}
|
||||
|
||||
intellij {
|
||||
version.set("IU-221.4501.155-EAP-SNAPSHOT")
|
||||
version.set("IU-222.2270.31-EAP-SNAPSHOT")
|
||||
plugins.set(
|
||||
listOf(
|
||||
"com.jetbrains.php:221.4501.163",
|
||||
"com.jetbrains.php:222.2270.31",
|
||||
"yaml",
|
||||
"org.jetbrains.plugins.go:221.4501.155",
|
||||
"org.jetbrains.plugins.go:222.2270.31",
|
||||
"Docker",
|
||||
"pythonid:221.4501.155",
|
||||
"org.jetbrains.plugins.ruby:221.4501.155",
|
||||
"pythonid:222.2270.35",
|
||||
"org.jetbrains.plugins.ruby:222.2270.31",
|
||||
"Kotlin",
|
||||
"coverage",
|
||||
"CSS",
|
||||
@@ -55,7 +55,7 @@ intellij {
|
||||
tasks {
|
||||
patchPluginXml {
|
||||
sinceBuild.set("212")
|
||||
untilBuild.set("221.*")
|
||||
untilBuild.set("222.*")
|
||||
}
|
||||
|
||||
buildSearchableOptions {
|
||||
@@ -65,4 +65,8 @@ tasks {
|
||||
runPluginVerifier {
|
||||
ideVersions.set(listOf("IU-213.3714.440"))
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<ProcessResources> {
|
||||
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
||||
@@ -1,19 +1,20 @@
|
||||
package ru.adelf.idea.dotenv.go;
|
||||
|
||||
import com.goide.psi.*;
|
||||
import com.goide.psi.GoCallExpr;
|
||||
import com.goide.psi.GoExpression;
|
||||
import com.goide.psi.GoReferenceExpression;
|
||||
import com.goide.psi.GoStringLiteral;
|
||||
import com.goide.psi.impl.GoPsiUtil;
|
||||
import com.intellij.openapi.util.Pair;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
class GoPsiHelper {
|
||||
|
||||
private static final Map<String, Integer> ENV_FUNCTIONS = ContainerUtil.newHashMap(
|
||||
Pair.pair("os.getenv", 0),
|
||||
Pair.pair("os.setenv", 0),
|
||||
Pair.pair("os.lookupenv", 0),
|
||||
Pair.pair("os.unsetenv", 0)
|
||||
private static final Map<String, Integer> ENV_FUNCTIONS = Map.of(
|
||||
"os.getenv", 0,
|
||||
"os.setenv", 0,
|
||||
"os.lookupenv", 0,
|
||||
"os.unsetenv", 0
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -42,7 +43,7 @@ class GoPsiHelper {
|
||||
if (callExpression.getArgumentList().getExpressionList().size() < position + 1) return null;
|
||||
|
||||
GoExpression expr = callExpression.getArgumentList().getExpressionList().get(position);
|
||||
if(!(expr instanceof GoStringLiteral)) return null;
|
||||
if (!(expr instanceof GoStringLiteral)) return null;
|
||||
|
||||
return (GoStringLiteral) expr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user