mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[github] IJPL-172141 Extracted JSON-dependent code into content module
GitOrigin-RevId: acdef1424dc7a836aadb1fc242d8668f7fce30eb
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9f8e51fdc9
commit
e3a843f41e
Generated
+1
@@ -979,6 +979,7 @@
|
||||
<module fileurl="file://$PROJECT_DIR$/plugins/git4idea/rt/intellij.vcs.git.rt.iml" filepath="$PROJECT_DIR$/plugins/git4idea/rt/intellij.vcs.git.rt.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/plugins/github/github-core/intellij.vcs.github.iml" filepath="$PROJECT_DIR$/plugins/github/github-core/intellij.vcs.github.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/plugins/github/community/intellij.vcs.github.community.iml" filepath="$PROJECT_DIR$/plugins/github/community/intellij.vcs.github.community.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/plugins/github/github-json/intellij.vcs.github.json.iml" filepath="$PROJECT_DIR$/plugins/github/github-json/intellij.vcs.github.json.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/plugins/github/github-tracker/intellij.vcs.github.tracker.iml" filepath="$PROJECT_DIR$/plugins/github/github-tracker/intellij.vcs.github.tracker.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/plugins/gitlab/gitlab-core/intellij.vcs.gitlab.iml" filepath="$PROJECT_DIR$/plugins/gitlab/gitlab-core/intellij.vcs.gitlab.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/plugins/gitlab/gitlab-yaml/intellij.vcs.gitlab.yaml.iml" filepath="$PROJECT_DIR$/plugins/gitlab/gitlab-yaml/intellij.vcs.gitlab.yaml.iml" />
|
||||
|
||||
@@ -227,5 +227,6 @@
|
||||
<orderEntry type="module" module-name="intellij.vcs.gitlab.yaml" scope="RUNTIME" />
|
||||
<orderEntry type="module" module-name="intellij.jvm.analysis.impl" scope="RUNTIME" />
|
||||
<orderEntry type="module" module-name="intellij.java.byteCodeViewer" scope="RUNTIME" />
|
||||
<orderEntry type="module" module-name="intellij.vcs.github.json" scope="RUNTIME" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -3,7 +3,6 @@
|
||||
<plugin id="com.intellij.modules.lang"/>
|
||||
<plugin id="Git4Idea"/>
|
||||
<module name="intellij.platform.collaborationTools"/>
|
||||
<plugin id="com.intellij.modules.json"/>
|
||||
</dependencies>
|
||||
|
||||
<resource-bundle>messages.GithubBundle</resource-bundle>
|
||||
@@ -100,10 +99,6 @@
|
||||
<gitPushNotificationCustomizer implementation="org.jetbrains.plugins.github.notification.GHPushNotificationCustomizer"/>
|
||||
</extensions>
|
||||
|
||||
<extensions defaultExtensionNs="JavaScript.JsonSchema">
|
||||
<ProviderFactory implementation="org.jetbrains.plugins.github.extensions.GHActionJsonSchemaProviderFactory"/>
|
||||
</extensions>
|
||||
|
||||
<actions>
|
||||
<action id="Github.Share" class="org.jetbrains.plugins.github.GithubShareAction" icon="AllIcons.Vcs.Vendors.Github">
|
||||
<add-to-group group-id="Vcs.Import"/>
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/resources" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="kotlin-stdlib" level="project" />
|
||||
<orderEntry type="module" module-name="intellij.vcs.github" />
|
||||
<orderEntry type="module" module-name="intellij.json" />
|
||||
<orderEntry type="module" module-name="intellij.platform.core" />
|
||||
<orderEntry type="module" module-name="intellij.platform.analysis" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -0,0 +1,9 @@
|
||||
<idea-plugin package="org.jetbrains.plugins.github.json">
|
||||
<dependencies>
|
||||
<plugin id="com.intellij.modules.json"/>
|
||||
</dependencies>
|
||||
|
||||
<extensions defaultExtensionNs="JavaScript.JsonSchema">
|
||||
<ProviderFactory implementation="org.jetbrains.plugins.github.json.GHActionJsonSchemaProviderFactory"/>
|
||||
</extensions>
|
||||
</idea-plugin>
|
||||
+5
-4
@@ -1,5 +1,5 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package org.jetbrains.plugins.github.extensions
|
||||
package org.jetbrains.plugins.github.json
|
||||
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.vfs.VfsUtil
|
||||
@@ -8,10 +8,12 @@ import com.jetbrains.jsonSchema.extension.JsonSchemaFileProvider
|
||||
import com.jetbrains.jsonSchema.extension.JsonSchemaProviderFactory
|
||||
import com.jetbrains.jsonSchema.extension.SchemaType
|
||||
import org.jetbrains.annotations.Nls
|
||||
import org.jetbrains.plugins.github.extensions.isGithubActionFile
|
||||
import org.jetbrains.plugins.github.extensions.isGithubWorkflowFile
|
||||
import org.jetbrains.plugins.github.i18n.GithubBundle
|
||||
|
||||
const val ACTION_SCHEMA_PATH = "/schemas/github-action.json"
|
||||
const val WORKFLOW_SCHEMA_PATH = "/schemas/github-workflow.json"
|
||||
private const val ACTION_SCHEMA_PATH = "/schemas/github-action.json"
|
||||
private const val WORKFLOW_SCHEMA_PATH = "/schemas/github-workflow.json"
|
||||
|
||||
internal class GHActionJsonSchemaProviderFactory: JsonSchemaProviderFactory {
|
||||
override fun getProviders(project: Project): List<JsonSchemaFileProvider?> {
|
||||
@@ -37,5 +39,4 @@ internal class GHActionJsonSchemaProviderFactory: JsonSchemaProviderFactory {
|
||||
|
||||
override fun getSchemaType(): SchemaType = SchemaType.embeddedSchema
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user