[ai-completion] ML-4039 add single-line completion evaluation visitor for sql

GitOrigin-RevId: b78fd1e92c488eb4c0d85ab22e8c43241da84910
This commit is contained in:
Oleg Taratukhin
2024-10-01 17:43:54 +02:00
committed by intellij-monorepo-bot
parent af7483f0d5
commit 7bbdb90c19
3 changed files with 7 additions and 0 deletions

View File

@@ -1,6 +1,9 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.cce.core
import com.intellij.cce.core.Language.entries
enum class Language(val displayName: String, private val extensions: List<String>, val ideaLanguageId: String, val needSdk: Boolean = false,
val curlyBracket: Boolean = true) {
JAVA("Java", listOf("java"), "JAVA", needSdk = true),
@@ -24,6 +27,7 @@ enum class Language(val displayName: String, private val extensions: List<String
SASS("SASS", listOf("sass"), "SASS"),
HTML("HTML", listOf("html"), "HTML"),
TERRAFORM("Terraform", listOf("tf", "tfvars"), "HCL-Terraform"),
SQL("SQL", listOf("sql"), "SQL"),
ANOTHER("Another", listOf(), ""),
UNSUPPORTED("Unsupported", listOf(), ""); // TODO: There are no unsupported languages

View File

@@ -22,6 +22,7 @@
- name: intellij.evaluationPlugin.languages.cpp
- name: intellij.evaluationPlugin.languages.csharp
- name: intellij.evaluationPlugin.languages.terraform
- name: intellij.evaluationPlugin.languages.sql
- name: intellij.tools.ide.metrics.collector
- name: intellij.evaluationPlugin.languages
reason: <- intellij.evaluationPlugin

View File

@@ -83,6 +83,8 @@
<depends optional="true" config-file="evaluationPlugin-statsCollector.xml">com.intellij.stats.completion</depends>
<!--suppress PluginXmlValidity -->
<depends optional="true" config-file="evaluationPlugin-terraform.xml">org.intellij.terraform</depends>
<!-- suppress PluginXmlValidity -->
<depends optional="true" config-file="evaluationPlugin-sql.xml">com.intellij.database</depends>
<!--suppress PluginXmlValidity -->
<depends optional="true" config-file="evaluationPlugin-fullLine.xml">org.jetbrains.completion.full.line</depends>
<!--suppress PluginXmlValidity -->