From 5ddd65e068ecc015469efee1fc1ec78e0628ef65 Mon Sep 17 00:00:00 2001
From: MaxKless <34165455+MaxKless@users.noreply.github.com>
Date: Mon, 8 Jan 2024 12:37:49 +0100
Subject: [PATCH] feat(intellij): exclude .nx folder from js/ts service (#1976)
---
.../nx/console/ide/DotNxFolderExcludeContributor.kt | 11 +++++++++++
apps/intellij/src/main/resources/META-INF/plugin.xml | 5 ++++-
gradle.properties | 4 ++--
3 files changed, 17 insertions(+), 3 deletions(-)
create mode 100644 apps/intellij/src/main/kotlin/dev/nx/console/ide/DotNxFolderExcludeContributor.kt
diff --git a/apps/intellij/src/main/kotlin/dev/nx/console/ide/DotNxFolderExcludeContributor.kt b/apps/intellij/src/main/kotlin/dev/nx/console/ide/DotNxFolderExcludeContributor.kt
new file mode 100644
index 0000000000..f41c84e759
--- /dev/null
+++ b/apps/intellij/src/main/kotlin/dev/nx/console/ide/DotNxFolderExcludeContributor.kt
@@ -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
+}
diff --git a/apps/intellij/src/main/resources/META-INF/plugin.xml b/apps/intellij/src/main/resources/META-INF/plugin.xml
index 87b8f0f590..80f0ab98b3 100644
--- a/apps/intellij/src/main/resources/META-INF/plugin.xml
+++ b/apps/intellij/src/main/resources/META-INF/plugin.xml
@@ -77,6 +77,9 @@
+
+
+
@@ -131,7 +134,7 @@
>
-
+
diff --git a/gradle.properties b/gradle.properties
index 7c9f38f18b..bc9f8b85c0 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -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