[PyCharm] PY-74366 Jupyter/RemoteDev (feat): Restored lookup, code completion for notebooks. Added editor mode synchronization via RPC.

(cherry picked from commit 021bd0c3d5616fd8097d27ee692423672441c499)

GitOrigin-RevId: 96548893bcd4cd7d50e5c8f78f7bc886d3217739
This commit is contained in:
Nikita Pavlenko
2024-10-28 18:29:24 +01:00
committed by intellij-monorepo-bot
parent 7f57935cbd
commit c20e984136
2 changed files with 29 additions and 2 deletions

View File

@@ -1,5 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="kotlin-language" name="Kotlin">
<configuration version="5" platform="JVM 17" allPlatforms="JVM [17]" useProjectSettings="false">
<compilerSettings>
<option name="additionalArguments" value="-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi -opt-in=kotlin.ExperimentalStdlibApi" />
</compilerSettings>
<compilerArguments>
<stringArguments>
<stringArg name="jvmTarget" arg="17" />
<stringArg name="apiVersion" arg="2.0" />
<stringArg name="languageVersion" arg="2.0" />
</stringArguments>
<arrayArguments>
<arrayArg name="pluginClasspaths">
<args>
<arg>$KOTLIN_BUNDLED$/lib/kotlinx-serialization-compiler-plugin.jar</arg>
</args>
</arrayArg>
<arrayArg name="pluginOptions" />
</arrayArguments>
</compilerArguments>
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
@@ -8,6 +32,8 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="kotlin-stdlib" level="project" />
<orderEntry type="library" name="kotlinx-serialization-core" level="project" />
<orderEntry type="module" module-name="intellij.platform.ide.impl" />
<orderEntry type="module" module-name="intellij.platform.codeStyle" />
<orderEntry type="module" module-name="intellij.platform.core.ui" />

View File

@@ -10,6 +10,7 @@ import com.intellij.ui.Gray
import com.intellij.util.concurrency.ThreadingAssertions
import com.intellij.util.concurrency.annotations.RequiresEdt
import com.intellij.util.messages.Topic
import kotlinx.serialization.Serializable
/**
* The Jupyter Notebook has a modal user interface.
@@ -20,6 +21,7 @@ import com.intellij.util.messages.Topic
* Notebook Modal Editor
* </a>
*/
@Serializable
enum class NotebookEditorMode {
EDIT,
COMMAND
@@ -62,5 +64,4 @@ fun Editor.setMode(mode: NotebookEditorMode) {
}
internal val INVISIBLE_CARET = CaretVisualAttributes(Gray.TRANSPARENT,
CaretVisualAttributes.Weight.NORMAL)
CaretVisualAttributes.Weight.NORMAL)