mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
vfs: clarify usage of the internal VFS dumper on Windows
GitOrigin-RevId: ed80b168f6bc0d366d489f6720611f40c4517657
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2b4758145f
commit
7494acaa50
@@ -9,6 +9,7 @@ import com.intellij.openapi.actionSystem.CommonDataKeys
|
||||
import com.intellij.openapi.diagnostic.Logger
|
||||
import com.intellij.openapi.project.DumbAwareAction
|
||||
import com.intellij.openapi.ui.DialogWrapper
|
||||
import com.intellij.openapi.util.SystemInfo
|
||||
import com.intellij.openapi.vfs.VirtualFile
|
||||
import com.intellij.openapi.vfs.VirtualFileManager
|
||||
import com.intellij.openapi.vfs.newvfs.NewVirtualFile
|
||||
@@ -145,9 +146,19 @@ internal class DumpVfsInfoForFsRootAction : DumbAwareAction() {
|
||||
return panel {
|
||||
row("Root:") {
|
||||
rootField = textField()
|
||||
.applyToComponent { text = "file:///" }
|
||||
.applyToComponent {
|
||||
text = when {
|
||||
SystemInfo.isWindows -> "file://C:/"
|
||||
else -> "file:///"
|
||||
}
|
||||
}
|
||||
.resizableColumn()
|
||||
.align(AlignX.FILL)
|
||||
.apply {
|
||||
if (SystemInfo.isWindows) {
|
||||
comment("Each disk is handled independently. Use file://C:/ or file://wsl.localhost/Ubuntu/")
|
||||
}
|
||||
}
|
||||
.component
|
||||
}
|
||||
row("Depth:") {
|
||||
|
||||
Reference in New Issue
Block a user