Skip to content

Commit 0a0662c

Browse files
fix: adapt StreamingLogsConsoleView for ConsoleViewImpl.isDisposed() being private final
In IntelliJ 261, ConsoleViewImpl.isDisposed() changed from protected/public to private final. Add a new public isDisposed() method (not an override) to maintain the existing public API for callers.
1 parent 4dbbd18 commit 0a0662c

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-lib/src/main/java/com/microsoft/azure/toolkit/intellij/common/streaminglog/StreamingLogsConsoleView.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414

1515
public class StreamingLogsConsoleView extends ConsoleViewImpl {
1616
private static final String SEPARATOR = System.getProperty("line.separator");
17+
private boolean isDisposed;
1718
private Disposable subscription;
1819

1920
public StreamingLogsConsoleView(@NotNull Project project) {
2021
super(project, true);
22+
this.isDisposed = false;
2123
this.setUpdateFoldingsEnabled(false);
2224
}
2325

@@ -41,13 +43,23 @@ public boolean isActive() {
4143
return subscription != null && !subscription.isDisposed();
4244
}
4345

46+
/**
47+
* Returns whether this console view has been disposed.
48+
* Note: In IntelliJ 261+, ConsoleViewImpl.isDisposed() is private final,
49+
* so this is NOT an override but a new public method for callers.
50+
*/
51+
public boolean isDisposed() {
52+
return this.isDisposed;
53+
}
54+
4455
private void printlnToConsole(String message, ConsoleViewContentType consoleViewContentType) {
4556
this.print(message + SEPARATOR, consoleViewContentType);
4657
}
4758

4859
@Override
4960
public void dispose() {
5061
super.dispose();
62+
this.isDisposed = true;
5163
closeStreamingLog();
5264
}
5365
}

PluginsAndFeatures/azure-toolkit-for-intellij/build.gradle.kts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,14 @@ intellijPlatform {
172172

173173
pluginVerification {
174174
ides {
175-
create(IntelliJPlatformType.IntellijIdeaCommunity, properties("platformVersion").get())
175+
// IC (Community) no longer published since 253; use IU (Ultimate) for verification
176+
create(IntelliJPlatformType.IntellijIdeaUltimate, properties("platformVersion").get())
176177
}
178+
// Suppress known structural warnings — plugin ID/name historically contain "intellij"
179+
freeArgs = listOf(
180+
"-mute", "TemplateWordInPluginId",
181+
"-mute", "TemplateWordInPluginName"
182+
)
177183
}
178184
}
179185

0 commit comments

Comments
 (0)