From fa5049ad160453e5ccca88c41661cfce1f78c16a Mon Sep 17 00:00:00 2001 From: Andreas Arvidsson Date: Sat, 31 Jan 2026 16:29:22 +0100 Subject: [PATCH 1/3] Added missing Kotlin scope support file --- packages/common/src/scopeSupportFacets/kotlin.ts | 12 ++++++++++++ .../src/scopeSupportFacets/languageScopeSupport.ts | 9 +++++---- .../{talon-list.ts => talonList.ts} | 0 .../src/docs/user/languages/kotlin.mdx | 5 +++++ 4 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 packages/common/src/scopeSupportFacets/kotlin.ts rename packages/common/src/scopeSupportFacets/{talon-list.ts => talonList.ts} (100%) create mode 100644 packages/cursorless-org-docs/src/docs/user/languages/kotlin.mdx diff --git a/packages/common/src/scopeSupportFacets/kotlin.ts b/packages/common/src/scopeSupportFacets/kotlin.ts new file mode 100644 index 0000000000..fbda001fe3 --- /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 { supported, unsupported, notApplicable } = 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..39d5d106f7 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,17 +28,14 @@ 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"; import { yamlScopeSupport } from "./yaml"; -/* eslint-disable @typescript-eslint/naming-convention */ - export const languageScopeSupport: StringRecord = { - "talon-list": talonListScopeSupport, c: cScopeSupport, clojure: clojureScopeSupport, cpp: cppScopeSupport, @@ -47,11 +45,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 +64,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 + + From e6dc4eefa840b95c89bc0e559b1923c89641b361 Mon Sep 17 00:00:00 2001 From: Andreas Arvidsson Date: Sat, 31 Jan 2026 16:33:43 +0100 Subject: [PATCH 2/3] Re add eslinttdisabled --- packages/common/src/scopeSupportFacets/languageScopeSupport.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/common/src/scopeSupportFacets/languageScopeSupport.ts b/packages/common/src/scopeSupportFacets/languageScopeSupport.ts index 39d5d106f7..5e12d8c821 100644 --- a/packages/common/src/scopeSupportFacets/languageScopeSupport.ts +++ b/packages/common/src/scopeSupportFacets/languageScopeSupport.ts @@ -34,6 +34,8 @@ import { typescriptreactScopeSupport } from "./typescriptreact"; import { xmlScopeSupport } from "./xml"; import { yamlScopeSupport } from "./yaml"; +/* eslint-disable @typescript-eslint/naming-convention */ + export const languageScopeSupport: StringRecord = { c: cScopeSupport, From f7932367fec3747ebfc064425bce1b91259dbe36 Mon Sep 17 00:00:00 2001 From: Andreas Arvidsson Date: Sat, 31 Jan 2026 16:44:02 +0100 Subject: [PATCH 3/3] More lint cleanup --- packages/common/src/scopeSupportFacets/kotlin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/src/scopeSupportFacets/kotlin.ts b/packages/common/src/scopeSupportFacets/kotlin.ts index fbda001fe3..a7c1e43b7e 100644 --- a/packages/common/src/scopeSupportFacets/kotlin.ts +++ b/packages/common/src/scopeSupportFacets/kotlin.ts @@ -1,7 +1,7 @@ import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types"; import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types"; -const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel; +const { unsupported } = ScopeSupportFacetLevel; export const kotlinScopeSupport: LanguageScopeSupportFacetMap = { /* UNSUPPORTED */