mirror of
https://github.com/hexedtech/codemp-intellij.git
synced 2024-11-25 08:24:48 +01:00
fix: logging now actually works
This commit is contained in:
parent
9ff8de0df4
commit
9e16c21454
3 changed files with 7 additions and 3 deletions
|
@ -16,7 +16,9 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation "com.github.adamheinrich:native-utils:master-SNAPSHOT"
|
implementation 'com.github.adamheinrich:native-utils:master-SNAPSHOT'
|
||||||
|
implementation 'org.slf4j:slf4j-api:2.0.9'
|
||||||
|
implementation 'ch.qos.logback:logback-classic:1.4.6'
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configure Gradle IntelliJ Plugin
|
// Configure Gradle IntelliJ Plugin
|
||||||
|
|
|
@ -20,6 +20,7 @@ public class CodeMP {
|
||||||
} catch(IOException e) {
|
} catch(IOException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
} finally {
|
} finally {
|
||||||
|
LOGGER.info("Loaded CodeMP library!");
|
||||||
loadedLibrary = false;
|
loadedLibrary = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,6 +41,7 @@ public class BufferAttachAction extends AnAction {
|
||||||
ApplicationManager.getApplication().runWriteAction(() -> {
|
ApplicationManager.getApplication().runWriteAction(() -> {
|
||||||
CodeMP.LOGGER.debug("Received text change {} from offset {} to {}!\n",
|
CodeMP.LOGGER.debug("Received text change {} from offset {} to {}!\n",
|
||||||
event.getContent(), event.getStart(), event.getEnd());
|
event.getContent(), event.getStart(), event.getEnd());
|
||||||
|
CodeMP.LOGGER.info("is writable: {}", document.isWritable());
|
||||||
document.replaceString( //TODO this doesn't work
|
document.replaceString( //TODO this doesn't work
|
||||||
(int) event.getStart(),
|
(int) event.getStart(),
|
||||||
(int) event.getEnd(),
|
(int) event.getEnd(),
|
||||||
|
|
Loading…
Reference in a new issue