Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
yonidavidson committed Nov 8, 2023
1 parent 1f2b073 commit d0d8eee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class GetBasicContextHandler(gson: Gson) : ChatMessageHandler<Unit, BasicContext
}
}

public fun getPredominantWorkspaceLanguage(
fun getPredominantWorkspaceLanguage(
includeFilePredicate: (String) -> Boolean = { true }
): String? {
val project = ProjectManager.getInstance().openProjects.firstOrNull() ?: return null
Expand All @@ -79,7 +79,7 @@ public fun getPredominantWorkspaceLanguage(
}

if (!virtualFile.isDirectory && virtualFile.isValid && includeFilePredicate(virtualFile.path)) {
val fileExtension = virtualFile.extension?.toLowerCase()// Get the file extension
val fileExtension = virtualFile.extension?.toLowerCase() // Get the file extension

if (fileExtension != null && getLanguageFromExtension(fileExtension) != null) {
extensionCount[fileExtension] = extensionCount.getOrDefault(fileExtension, 0) + 1
Expand Down

0 comments on commit d0d8eee

Please sign in to comment.