Skip to content

Kotlin files in dot directories not indexed #294

@tekumara

Description

@tekumara

Teamcity kotlin files typically live in .teamcity/.

Example:

$ git clone https://github.com/tekumara/teamcity-kotlin-example
$ tree -a teamcity-kotlin-example
teamcity-kotlin-example
....
└── .teamcity
    ├── common.kt
    ├── pom.xml
    └── settings.kts

When I open teamcity-kotlin-example/ in vscode, the Kotlin LS doesn't add the teamcity kotlin files to the source path:

[Info  - 6:38:39 PM] main      Adding script definitions [ScriptTemplateWithArgs]
[Info  - 6:38:39 PM] main      Kotlin Language Server: Version 1.1.1
[Info  - 6:38:39 PM] main      Connected to client
[Info  - 6:38:39 PM] async0    Adding workspace folder teamcity-kotlin-example
[Info  - 6:38:40 PM] async0    Adding 0 files under /tmp/teamcity-kotlin-example to source path
...

And therefore Go to Definition, hover etc. in settings.kts doesn't work, eg: on line 39 open class BaseBuildType() : BuildType()

Other scenarios:

  1. open teamcity-kotlin-example/.teamcity in vscode. The kotlin files will be indexed, but I can no longer work on the other files in the repository at the same time.
  2. rename .teamcity/ to teamcity/ and open the root folder (ie: teamcity-kotlin-example/). The Kotlin LS correctly adds the files to the source path on startup:
[Info  - 8:56:12 PM] async0    Adding workspace folder teamcity-kotlin-example
[Info  - 8:56:12 PM] async0    Adding .../teamcity/common.kt, .../teamcity/settings.kts under /tmp/teamcity-kotlin-example to source path

vscode extension: fwcd.kotlin v0.2.22

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions