diff --git a/packages/common/src/scopeSupportFacets/kotlin.ts b/packages/common/src/scopeSupportFacets/kotlin.ts new file mode 100644 index 0000000000..a7c1e43b7e --- /dev/null +++ b/packages/common/src/scopeSupportFacets/kotlin.ts @@ -0,0 +1,12 @@ +import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types"; +import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types"; + +const { unsupported } = ScopeSupportFacetLevel; + +export const kotlinScopeSupport: LanguageScopeSupportFacetMap = { + /* UNSUPPORTED */ + + fieldAccess: unsupported, + + /* NOT APPLICABLE */ +}; diff --git a/packages/common/src/scopeSupportFacets/languageScopeSupport.ts b/packages/common/src/scopeSupportFacets/languageScopeSupport.ts index d1cfc7879b..5e12d8c821 100644 --- a/packages/common/src/scopeSupportFacets/languageScopeSupport.ts +++ b/packages/common/src/scopeSupportFacets/languageScopeSupport.ts @@ -13,6 +13,7 @@ import { javascriptreactScopeSupport } from "./javascriptreact"; import { jsonScopeSupport } from "./json"; import { jsoncScopeSupport } from "./jsonc"; import { jsonlScopeSupport } from "./jsonl"; +import { kotlinScopeSupport } from "./kotlin"; import { latexScopeSupport } from "./latex"; import { luaScopeSupport } from "./lua"; import { markdownScopeSupport } from "./markdown"; @@ -27,7 +28,7 @@ import { scmScopeSupport } from "./scm"; import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types"; import { scssScopeSupport } from "./scss"; import { talonScopeSupport } from "./talon"; -import { talonListScopeSupport } from "./talon-list"; +import { talonListScopeSupport } from "./talonList"; import { typescriptScopeSupport } from "./typescript"; import { typescriptreactScopeSupport } from "./typescriptreact"; import { xmlScopeSupport } from "./xml"; @@ -37,7 +38,6 @@ import { yamlScopeSupport } from "./yaml"; export const languageScopeSupport: StringRecord = { - "talon-list": talonListScopeSupport, c: cScopeSupport, clojure: clojureScopeSupport, cpp: cppScopeSupport, @@ -47,11 +47,13 @@ export const languageScopeSupport: StringRecord = go: goScopeSupport, html: htmlScopeSupport, java: javaScopeSupport, + // java-properties - handled by properties javascript: javascriptScopeSupport, javascriptreact: javascriptreactScopeSupport, json: jsonScopeSupport, jsonc: jsoncScopeSupport, jsonl: jsonlScopeSupport, + kotlin: kotlinScopeSupport, latex: latexScopeSupport, lua: luaScopeSupport, markdown: markdownScopeSupport, @@ -64,6 +66,7 @@ export const languageScopeSupport: StringRecord = scala: scalaScopeSupport, scm: scmScopeSupport, scss: scssScopeSupport, + "talon-list": talonListScopeSupport, talon: talonScopeSupport, typescript: typescriptScopeSupport, typescriptreact: typescriptreactScopeSupport, diff --git a/packages/common/src/scopeSupportFacets/talon-list.ts b/packages/common/src/scopeSupportFacets/talonList.ts similarity index 100% rename from packages/common/src/scopeSupportFacets/talon-list.ts rename to packages/common/src/scopeSupportFacets/talonList.ts diff --git a/packages/cursorless-org-docs/src/docs/user/languages/kotlin.mdx b/packages/cursorless-org-docs/src/docs/user/languages/kotlin.mdx new file mode 100644 index 0000000000..501571d2ed --- /dev/null +++ b/packages/cursorless-org-docs/src/docs/user/languages/kotlin.mdx @@ -0,0 +1,5 @@ +import { Language } from "./components/Language"; + +# Kotlin + +