Skip to content

Commit

Permalink
Minor changes for review
Browse files Browse the repository at this point in the history
  • Loading branch information
pkukielka committed Aug 5, 2024
1 parent 283fbd6 commit a8416ce
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ import kotlin.io.path.name

class OpenCodySettingsEditorAction : DumbAwareEDTAction("Open Cody Settings Editor") {
override fun actionPerformed(e: AnActionEvent) {
val project =
e.project
?: run {
logger.warn("Project cannot be null")
return
}
val project = e.project ?: return

val settingsVf =
CodyEditorUtil.createFileOrScratchFromUntitled(
Expand Down Expand Up @@ -51,10 +46,12 @@ class OpenCodySettingsEditorAction : DumbAwareEDTAction("Open Cody Settings Edit
configName,
JsonSchemaVersion.SCHEMA_7,
schemaFile.toString(),
false,
/* applicationDefined = */ false,
listOf(
UserDefinedJsonSchemaConfiguration.Item(
"*/${ConfigUtil.getSettingsFile(project).name}", true, false)))
"*/${ConfigUtil.getSettingsFile(project).name}",
/* isPattern = */ true,
/* isDirectory = */ false)))

val schemaMapping = JsonSchemaMappingsProjectConfiguration.getInstance(project)

Expand Down

0 comments on commit a8416ce

Please sign in to comment.