mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[workspace file index] remove registry key which allows users to switch back to the old implementation (IDEA-276394)
It was enabled by default in all JetBrains IDEs (except Rider) in 2022.3 releases, and Rider also enabled this option by default in 2023.1. No major regressions were found, so now we can remove this option. This will allow us to use WorkspaceFileIndex in new code without providing a fallback. Also, we'll be able to remove the old implementation later. GitOrigin-RevId: 8ca9fea12b81c87302d710946e236bb61ce6a359
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2c729c2194
commit
af3abb4a55
@@ -78,9 +78,6 @@
|
||||
<workspaceModel.fileIndexContributor implementation="com.intellij.workspaceModel.core.fileIndex.impl.LibraryRootFileIndexContributor"/>
|
||||
<workspaceModel.fileIndexContributor implementation="com.intellij.workspaceModel.core.fileIndex.impl.ExcludedRootFileIndexContributor"/>
|
||||
<workspaceModel.fileIndexContributor implementation="com.intellij.workspaceModel.core.fileIndex.impl.UnloadedContentRootFileIndexContributor"/>
|
||||
<registryKey key="platform.projectModel.workspace.model.file.index" defaultValue="true"
|
||||
description="Use new implementation of ProjectFileIndex based on WorkspaceModel with incremental updates"
|
||||
restartRequired="true"/>
|
||||
<registryKey key="ide.new.project.model.strict.mode.rbs" defaultValue="true" restartRequired="true"
|
||||
description="Enable additional checks after replaceBySource and addDiff"/>
|
||||
<registryKey key="ide.workspace.model.assertions.on.update" defaultValue="false" restartRequired="false"
|
||||
|
||||
+5
-2
@@ -2,7 +2,6 @@
|
||||
package com.intellij.workspaceModel.core.fileIndex.impl
|
||||
|
||||
import com.intellij.openapi.roots.ContentIteratorEx
|
||||
import com.intellij.openapi.util.registry.Registry
|
||||
import com.intellij.openapi.vfs.AsyncFileListener
|
||||
import com.intellij.openapi.vfs.VirtualFile
|
||||
import com.intellij.openapi.vfs.VirtualFileFilter
|
||||
@@ -83,8 +82,12 @@ interface WorkspaceFileIndexEx : WorkspaceFileIndex {
|
||||
fun reset()
|
||||
|
||||
companion object {
|
||||
/**
|
||||
* WorkspaceFileIndex is now always enabled. Usages of this constant will be inlined later.
|
||||
*/
|
||||
@Suppress("MayBeConstant")
|
||||
@JvmField
|
||||
val IS_ENABLED: Boolean = Registry.`is`("platform.projectModel.workspace.model.file.index", true)
|
||||
val IS_ENABLED: Boolean = true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user