Skip to content

Commit 8496f52

Browse files
author
Vitaliy Boyko
committed
3.0.0 innitial
1 parent 69b4a2e commit 8496f52

File tree

10 files changed

+25
-21
lines changed

10 files changed

+25
-21
lines changed

.github/workflows/gradle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Run automated tests
55

66
on:
77
pull_request:
8-
branches: [ master, 2.1.0-develop ]
8+
branches: [ master, 3.0.0-develop ]
99

1010
jobs:
1111
build-linux:

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0).
66

7+
## 3.0.0
8+
79
## 2.1.0
810

911
### Added

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ repositories {
1515
}
1616

1717
group 'com.magento.idea'
18-
version '2.1.0'
18+
version '3.0.0'
1919

2020
apply plugin: 'org.jetbrains.intellij'
2121
apply plugin: 'java'
2222
apply plugin: 'groovy'
2323
apply plugin: 'org.jetbrains.changelog'
2424

25-
def phpPluginVersion = System.getProperty("phpPluginVersion", "201.7223.91")
26-
def ideaVersion = System.getProperty("ideaVersion", "2020.1.1")
25+
def phpPluginVersion = System.getProperty("phpPluginVersion", "202.8194.11")
26+
def ideaVersion = System.getProperty("ideaVersion", "2020.2.4")
2727
def javaVersion = 1.8
2828

2929
sourceCompatibility = javaVersion

resources/META-INF/plugin.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<idea-plugin>
88
<id>com.magento.idea.magento2plugin</id>
99
<name>Magento PhpStorm</name>
10-
<version>2.1.0</version>
10+
<version>3.0.0</version>
1111
<vendor url="https://github.com/magento/magento2-phpstorm-plugin">Magento Inc.</vendor>
1212

1313
<description><![CDATA[
@@ -24,7 +24,7 @@
2424
</change-notes>
2525

2626
<!-- please see http://confluence.jetbrains.com/display/IDEADEV/Build+Number+Ranges for description -->
27-
<idea-version since-build="201.7223.91"/>
27+
<idea-version since-build="202.8194.7"/>
2828

2929
<!-- please see http://confluence.jetbrains.com/display/IDEADEV/Plugin+Compatibility+with+IntelliJ+Platform+Products
3030
on how to target different products -->

src/com/magento/idea/magento2plugin/linemarker/graphql/GraphQlResolverClassLineMarkerProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Copyright © Magento, Inc. All rights reserved.
33
* See COPYING.txt for license details.
44
*/
5+
56
package com.magento.idea.magento2plugin.linemarker.graphql;
67

78
import com.intellij.codeInsight.daemon.LineMarkerInfo;
@@ -29,7 +30,7 @@ public LineMarkerInfo getLineMarkerInfo(@NotNull PsiElement psiElement) {
2930
}
3031

3132
@Override
32-
public void collectSlowLineMarkers(@NotNull List<PsiElement> psiElements, @NotNull Collection<LineMarkerInfo> collection) {
33+
public void collectSlowLineMarkers(@NotNull List<? extends PsiElement> psiElements, @NotNull Collection<? super LineMarkerInfo<?>> collection) {
3334
if (psiElements.size() > 0) {
3435
if (!Settings.isEnabled(psiElements.get(0).getProject())) {
3536
return;

src/com/magento/idea/magento2plugin/linemarker/php/ClassConfigurationLineMarkerProvider.java

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
/**
1+
/*
22
* Copyright © Magento, Inc. All rights reserved.
33
* See COPYING.txt for license details.
44
*/
5+
56
package com.magento.idea.magento2plugin.linemarker.php;
67

78
import com.intellij.codeInsight.daemon.LineMarkerInfo;
@@ -13,32 +14,32 @@
1314
import com.jetbrains.php.lang.psi.elements.PhpClass;
1415
import com.magento.idea.magento2plugin.indexes.XmlIndex;
1516
import com.magento.idea.magento2plugin.project.Settings;
16-
import org.jetbrains.annotations.NotNull;
17-
import org.jetbrains.annotations.Nullable;
18-
1917
import java.util.ArrayList;
2018
import java.util.Collection;
2119
import java.util.Comparator;
2220
import java.util.List;
21+
import org.jetbrains.annotations.NotNull;
22+
import org.jetbrains.annotations.Nullable;
2323

2424
/**
2525
* Created by dkvashnin on 11/15/15.
2626
*/
2727
public class ClassConfigurationLineMarkerProvider implements LineMarkerProvider {
28+
2829
@Nullable
2930
@Override
3031
public LineMarkerInfo getLineMarkerInfo(@NotNull PsiElement psiElement) {
3132
return null;
3233
}
3334

3435
@Override
35-
public void collectSlowLineMarkers(@NotNull List<PsiElement> list, @NotNull Collection<LineMarkerInfo> collection) {
36-
if (list.size() > 0) {
37-
if (!Settings.isEnabled(list.get(0).getProject())) {
36+
public void collectSlowLineMarkers(@NotNull List<? extends PsiElement> elements, @NotNull Collection<? super LineMarkerInfo<?>> result) {
37+
if (elements.size() > 0) {
38+
if (!Settings.isEnabled(elements.get(0).getProject())) {
3839
return;
3940
}
4041
}
41-
for (PsiElement psiElement: list) {
42+
for (PsiElement psiElement: elements) {
4243
if (psiElement instanceof PhpClass) {
4344
List<XmlTag> results = new ArrayList<XmlTag>();
4445

@@ -57,7 +58,7 @@ public void collectSlowLineMarkers(@NotNull List<PsiElement> list, @NotNull Coll
5758

5859
PsiElement className = ((PhpClass) psiElement).getNameIdentifier();
5960
if (className != null) {
60-
collection.add(builder.createLineMarkerInfo(className));
61+
result.add(builder.createLineMarkerInfo(className));
6162
}
6263
}
6364
}

src/com/magento/idea/magento2plugin/linemarker/php/GraphQlResolverUsageLineMarkerProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public LineMarkerInfo getLineMarkerInfo(@NotNull PsiElement psiElement) {
2828
}
2929

3030
@Override
31-
public void collectSlowLineMarkers(@NotNull List<PsiElement> psiElements, @NotNull Collection<LineMarkerInfo> collection) {
31+
public void collectSlowLineMarkers(@NotNull List<? extends PsiElement> psiElements, @NotNull Collection<? super LineMarkerInfo<?>> collection) {
3232
if (psiElements.size() > 0) {
3333
if (!Settings.isEnabled(psiElements.get(0).getProject())) {
3434
return;

src/com/magento/idea/magento2plugin/linemarker/php/PluginLineMarkerProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public LineMarkerInfo getLineMarkerInfo(@NotNull PsiElement psiElement) {
3131
}
3232

3333
@Override
34-
public void collectSlowLineMarkers(@NotNull List<PsiElement> psiElements, @NotNull Collection<LineMarkerInfo> collection) {
34+
public void collectSlowLineMarkers(@NotNull List<? extends PsiElement> psiElements, @NotNull Collection<? super LineMarkerInfo<?>> collection) {
3535
if (psiElements.size() > 0) {
3636
if (!Settings.isEnabled(psiElements.get(0).getProject())) {
3737
return;

src/com/magento/idea/magento2plugin/linemarker/php/PluginTargetLineMarkerProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public LineMarkerInfo getLineMarkerInfo(@NotNull final PsiElement psiElement) {
3333

3434
@Override
3535
public void collectSlowLineMarkers(
36-
@NotNull final List<PsiElement> psiElements,
37-
@NotNull final Collection<LineMarkerInfo> collection
36+
final @NotNull List<? extends PsiElement> psiElements,
37+
final @NotNull Collection<? super LineMarkerInfo<?>> collection
3838
) {
3939
if (!psiElements.isEmpty() && !Settings.isEnabled(psiElements.get(0).getProject())) {
4040
return;

src/com/magento/idea/magento2plugin/linemarker/php/WebApiLineMarkerProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public LineMarkerInfo getLineMarkerInfo(@NotNull PsiElement psiElement) {
3535
}
3636

3737
@Override
38-
public void collectSlowLineMarkers(@NotNull List<PsiElement> psiElements, @NotNull Collection<LineMarkerInfo> collection) {
38+
public void collectSlowLineMarkers(@NotNull List<? extends PsiElement> psiElements, @NotNull Collection<? super LineMarkerInfo<?>> collection) {
3939
if (psiElements.size() > 0) {
4040
if (!Settings.isEnabled(psiElements.get(0).getProject())) {
4141
return;

0 commit comments

Comments
 (0)