fix: remove code analyzer from initial tags

This commit is contained in:
Carl-Robert Linnupuu 2025-07-21 12:53:03 +01:00
parent d3f59862ea
commit aec4c281d2
2 changed files with 0 additions and 16 deletions

View file

@ -140,14 +140,6 @@ class PsiStructureRepository(
.filterIsInstance<CodeAnalyzeTagDetails>()
.forEach { tagManager.remove(it) }
if (tagManager.getTags().any { it is EditorTagDetails || it is FileTagDetails }) {
tagManager.addTag(
CodeAnalyzeTagDetails().apply {
selected = newState.chatCompletionSettings.psiStructureEnabled
}
)
}
if (newState.chatCompletionSettings.psiStructureEnabled) {
analyzePsiDepth = newState.chatCompletionSettings.psiStructureAnalyzeDepth
enable()

View file

@ -174,14 +174,6 @@ class UserInputHeaderPanel(
tagManager.addTag(EditorTagDetails(selectedFile))
}
val psiStructureEnabled = service<ConfigurationSettings>().state
.chatCompletionSettings
.psiStructureEnabled
tagManager.addTag(
CodeAnalyzeTagDetails().apply { selected = psiStructureEnabled }
)
EditorUtil.getOpenLocalFiles(project)
.filterNot { it == selectedFile }
.take(INITIAL_VISIBLE_FILES)