fix(terminal): remove shell integration history hint
This commit is contained in:
1 parent
fc58e895f2
commit
cb95f47c95
3 files changed
-52
No files matched your search
@@ -10856,29 +10856,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"Enable Shell Integration to add commands to this session’s history in real time." : {
|
||||
"extractionState" : "manual",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Enable Shell Integration to add commands to this session’s history in real time."
|
||||
}
|
||||
},
|
||||
"zh-Hans" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "启用Shell集成以实时添加当前会话的命令历史。"
|
||||
}
|
||||
},
|
||||
"zh-Hant" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "啟用Shell整合以即時加入目前工作階段的指令歷史。"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Enable Web Search" : {
|
||||
"extractionState" : "manual",
|
||||
"localizations" : {
|
||||
|
||||
@@ -185,10 +185,6 @@ extension AppStrings {
|
||||
"Write serial port"
|
||||
}
|
||||
|
||||
public static var commandHistoryRequirement: LocalizedStringResource {
|
||||
"Enable Shell Integration to add commands to this session’s history in real time."
|
||||
}
|
||||
|
||||
public static var commandsConfirmedByTheRemoteShellAppearHere: LocalizedStringResource {
|
||||
"Shell history and commands from this session appear here."
|
||||
}
|
||||
|
||||
@@ -831,31 +831,6 @@ private struct SSHCommandHistorySidebar: View {
|
||||
}
|
||||
}
|
||||
|
||||
if sshSession?.status.isLive == true,
|
||||
sshSession?.shellIntegrationAvailable == false
|
||||
{
|
||||
// Bounded by a line limit rather than by `fixedSize`.
|
||||
//
|
||||
// `fixedSize(horizontal: false, vertical: true)` makes this
|
||||
// sentence report whatever height it needs at whatever width it
|
||||
// is asked about — and SwiftUI asks about very narrow ones while
|
||||
// sizing the column. Ninety characters at a probe width wrap
|
||||
// into a paragraph, the split view adopts that as the height it
|
||||
// must offer, and *both* columns get proposed it: measured as
|
||||
// the detail column being handed 912x1125 instead of 912x688,
|
||||
// which is what threw the connection journey upward. It only
|
||||
// ever happened in History because this is the one sidebar mode
|
||||
// with a child that demands height, and it appears exactly when
|
||||
// `status.isLive` flips — the instant a connection succeeds.
|
||||
Text(AppStrings.Terminal.commandHistoryRequirement)
|
||||
.font(.caption2)
|
||||
.foregroundStyle(.secondary)
|
||||
.lineLimit(4)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.padding(.horizontal, Metrics.Space.m)
|
||||
.padding(.vertical, Metrics.Space.s)
|
||||
}
|
||||
|
||||
SidebarSearchFooter(text: $query, placeholder: String(localized: AppStrings.Common.searchHistory))
|
||||
}
|
||||
.confirmationDialog(
|
||||
|
||||
Reference in new issue
Block a user