mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 14:45:24 +00:00
chore: lock the plugin boundary and remove 2.9.0 leftovers
This commit is contained in:
1 parent
6489b62ece
commit
2961297989
399 files changed
+3964
-5627
No files matched your search
@@ -10,7 +10,7 @@ export interface PermissionsState {
|
||||
}
|
||||
|
||||
/** Fired when a user's grants may have changed, so every surface re-reads them. */
|
||||
export const PERMISSIONS_CHANGED_EVENT = "permissionsChanged";
|
||||
const PERMISSIONS_CHANGED_EVENT = "permissionsChanged";
|
||||
|
||||
interface CachedPermissions {
|
||||
permissions: string[];
|
||||
|
||||
@@ -16,7 +16,7 @@ interface ResolvedForTerminal {
|
||||
* Shared "run this snippet against these terminal tabs" flow, for the few
|
||||
* core surfaces (the command palette) that still reach for a snippet
|
||||
* directly rather than through the snippets plugin's own panel. Variable
|
||||
* resolution runs through the snippets plugin's "snippets.resolveForTerminal"
|
||||
* resolution runs through the snippets plugin's "snippet.resolveForTerminal"
|
||||
* action, and sending runs through ssh-terminal's "terminal.sendToSession",
|
||||
* since core no longer owns snippet content or a terminal ref.
|
||||
*/
|
||||
@@ -57,7 +57,7 @@ export function useSnippetRunner() {
|
||||
inputValues: Record<string, string>,
|
||||
) {
|
||||
const resolved = (await invokeAction(
|
||||
"snippets.resolveForTerminal",
|
||||
"snippet.resolveForTerminal",
|
||||
snippet.id,
|
||||
tab.host ?? null,
|
||||
inputValues,
|
||||
@@ -95,7 +95,7 @@ export function useSnippetRunner() {
|
||||
};
|
||||
|
||||
void invokeAction(
|
||||
"snippets.resolveForTerminal",
|
||||
"snippet.resolveForTerminal",
|
||||
snippet.id,
|
||||
targets[0]?.host ?? null,
|
||||
).then((result) => {
|
||||
|
||||
@@ -17,6 +17,7 @@ function builtinSummary(type: string): SshAuthProviderSummary {
|
||||
credentialType: type === "password" || type === "key",
|
||||
needsUserInteraction: false,
|
||||
supportsBackground: type !== "none",
|
||||
quickConnect: true,
|
||||
available: true,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user