Skip to content

Commit

Permalink
Remove test code
Browse files Browse the repository at this point in the history
  • Loading branch information
Socolin committed Mar 29, 2020
1 parent ca5198b commit 3523a63
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,4 @@ public ApplicationInsightsSession startSession(XDebugProcess debugProcess) {

return applicationInsightsSession;
}

public void endSession(XDebugProcess debugProcess) {

}

public void selectSession(@Nullable XDebugSession debugSession) {
if (debugSession == null)
return;

}
}
Original file line number Diff line number Diff line change
@@ -1,34 +1,13 @@
package fr.socolin.applicationinsights.listeners;

import com.intellij.openapi.diagnostic.Logger;
import com.intellij.xdebugger.XDebugProcess;
import com.intellij.xdebugger.XDebugSession;
import com.intellij.xdebugger.XDebuggerManager;
import com.intellij.xdebugger.XDebuggerManagerListener;
import fr.socolin.applicationinsights.ApplicationInsightsSessionManager;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public class DebugMessageListener implements XDebuggerManagerListener {
private static final Logger log = Logger.getInstance("XDebuggerManagerListener");

// XDebuggerManager.TOPIC
public DebugMessageListener() {
log.warn("create DebugMessageListener");
}

@Override
public void processStarted(@NotNull XDebugProcess debugProcess) {
ApplicationInsightsSessionManager.getInstance().startSession(debugProcess);
}

@Override
public void processStopped(@NotNull XDebugProcess debugProcess) {
ApplicationInsightsSessionManager.getInstance().endSession(debugProcess);
}

@Override
public void currentSessionChanged(@Nullable XDebugSession previousSession, @Nullable XDebugSession currentSession) {
ApplicationInsightsSessionManager.getInstance().selectSession(currentSession);
}
}

This file was deleted.

4 changes: 0 additions & 4 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@
<!-- Add your actions here -->
</actions>

<applicationListeners>
<listener class="fr.socolin.applicationinsights.listeners.ListenerTest"
topic="com.intellij.openapi.project.ProjectManagerListener"/>
</applicationListeners>
<projectListeners>
<listener class="fr.socolin.applicationinsights.listeners.DebugMessageListener"
topic="com.intellij.xdebugger.XDebuggerManagerListener"/>
Expand Down

0 comments on commit 3523a63

Please sign in to comment.