mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-138472 Cannot step into current line when debug groovy code suppose the extension is not ".groovy"
This commit is contained in:
+1
-2
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package org.jetbrains.plugins.groovy.lang.psi.stubs;
|
||||
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.psi.stubs.PsiFileStubImpl;
|
||||
import com.intellij.psi.tree.IStubFileElementType;
|
||||
import com.intellij.util.ArrayUtil;
|
||||
@@ -34,7 +33,7 @@ public class GrFileStub extends PsiFileStubImpl<GroovyFile> {
|
||||
|
||||
public GrFileStub(GroovyFile file) {
|
||||
super(file);
|
||||
myName = StringRef.fromString(StringUtil.trimEnd(file.getName(), ".groovy"));
|
||||
myName = StringRef.fromString(file.getViewProvider().getVirtualFile().getNameWithoutExtension());
|
||||
isScript = file.isScript();
|
||||
final GrPackageDefinition definition = file.getPackageDefinition();
|
||||
if (definition != null) {
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ public class GrStubFileElementType extends IStubFileElementType<GrFileStub> {
|
||||
|
||||
@Override
|
||||
public int getStubVersion() {
|
||||
return super.getStubVersion() + 21;
|
||||
return super.getStubVersion() + 22;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -32,8 +32,7 @@ public class GroovyFileTypeLoader extends FileTypeFactory{
|
||||
public static Set<String> getCustomGroovyScriptExtensions() {
|
||||
final LinkedHashSet<String> strings = new LinkedHashSet<String>();
|
||||
strings.add("gdsl");
|
||||
strings.add("gpp");
|
||||
strings.add("grunit");
|
||||
strings.add("gy");
|
||||
for (GroovyScriptTypeDetector ep : GroovyScriptTypeDetector.EP_NAME.getExtensions()) {
|
||||
Collections.addAll(strings, ep.getExtensions());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user