Skip to content

Commit d67002a

Browse files
committed
Copy sources from kotlin-compiler to override intellij-core
1 parent 72074bc commit d67002a

File tree

2 files changed

+1098
-0
lines changed

2 files changed

+1098
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
2+
package com.intellij.openapi.fileTypes;
3+
4+
import com.intellij.openapi.application.ApplicationManager;
5+
import com.intellij.openapi.components.Service;
6+
import com.intellij.openapi.extensions.ExtensionPointName;
7+
import com.intellij.util.KeyedLazyInstance;
8+
9+
/**
10+
* @see BinaryFileDecompiler
11+
* TODO: Remove when figure something out via KT-81715
12+
*/
13+
@Service
14+
public final class BinaryFileTypeDecompilers extends FileTypeExtension<BinaryFileDecompiler> {
15+
private static final ExtensionPointName<KeyedLazyInstance<BinaryFileDecompiler>> EP_NAME =
16+
new ExtensionPointName<>("com.intellij.filetype.decompiler");
17+
18+
private BinaryFileTypeDecompilers() {
19+
super(EP_NAME);
20+
}
21+
22+
public void notifyDecompilerSetChange() {
23+
// We do nothing here because the decompiler set is not supposed to change during the lifetime of the compiler.
24+
// But hopefully, we'll find some other way to fix the issue via KT-81715
25+
}
26+
27+
public static BinaryFileTypeDecompilers getInstance() {
28+
return ApplicationManager.getApplication().getService(BinaryFileTypeDecompilers.class);
29+
}
30+
}

0 commit comments

Comments
 (0)