Skip to content

Commit

Permalink
feat(intellij): exclude .nx folder from js/ts service (#1976)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKless authored Jan 8, 2024
1 parent 4b6a81f commit 5ddd65e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package dev.nx.console.ide

import com.intellij.javascript.library.exclude.JsExcludeContributor

class DotNxFolderExcludeContributor : JsExcludeContributor() {
override val excludeFileOrDirName: String
get() = ".nx"

override val isDirectory: Boolean
get() = true
}
5 changes: 4 additions & 1 deletion apps/intellij/src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@

<console.folding implementation="dev.nx.console.ide.ConsoleFolding"/>
</extensions>
<extensions defaultExtensionNs="JavaScript">
<scanningFileListenerContributor implementation="dev.nx.console.ide.DotNxFolderExcludeContributor"/>
</extensions>
<applicationListeners>
<listener class="dev.nx.console.listeners.ProjectManagerListener"
topic="com.intellij.openapi.project.ProjectManagerListener"/>
Expand Down Expand Up @@ -131,7 +134,7 @@
>
<add-to-group group-id="ProjectViewPopupMenuRunGroup"/>
</action>

<action id="dev.nx.console.run.actions.NxRunAnythingAction" class="dev.nx.console.run.actions.NxRunAnythingAction"
text="Nx: Run Anything" description="Run Nx targets in a CLI-like interface"
icon="AllIcons.Actions.Run_anything"/>
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ pluginRepositoryUrl=https://github.com/nrwl/nx-console
# SemVer format -> https://semver.org
version=0.0.1
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild=223
pluginSinceBuild=233
pluginUntilBuild=*
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
platformType=IU
platformVersion=2023.2
platformVersion=2023.3
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
platformPlugins=JavaScript, org.jetbrains.plugins.terminal
Expand Down

0 comments on commit 5ddd65e

Please sign in to comment.