Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): keep older clients connected after keybinding additions #5018

ClosedPixPMusic(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/5018/headopened View on GitHub

Showing 5 changed files with 150 additions and 0 deletions (loading 4).

x
0 of 5 viewed, 5 left
150 additions and 0 deletionsapps/server/src/server.test.tsModified
View file
@@ -9,6 +9,7 @@
AuthEnvironmentBootstrapTokenType,
AuthTokenExchangeGrantType,
CommandId,
+ CURRENT_KEYBINDING_COMMAND_SET_VERSION,
DEFAULT_SERVER_SETTINGS,
EnvironmentId,
EventId,
@@ -27,6 +28,7 @@
ProviderInstanceId,
ResolvedKeybindingRule,
ThreadId,
+ WS_KEYBINDING_COMMAND_SET_QUERY_PARAM,
WS_METHODS,
WsRpcGroup,
EditorId,
@@ -4321,6 +4323,154 @@
}).pipe(Effect.provide(NodeHttpServer.layerTest)),
+ it.effect("projects keybinding commands for each websocket client version", () =>
+ Effect.gen(function* () {
+ const currentCommands = [
+ "terminal.toggle",
+ "filePicker.toggle",
+ "projectSearch.toggle",
+ "script.format.run",
+ ] satisfies Array<ResolvedKeybindingRule["command"]>;