🚧 some jetbrains fixes
This commit is contained in:
parent
c70fea4717
commit
47467d0442
5 changed files with 16 additions and 13 deletions
|
|
@ -486,15 +486,15 @@ class ContinuePluginStartupActivity : StartupActivity, Disposable, DumbAware {
|
|||
|
||||
|
||||
val actionManager = ActionManager.getInstance()
|
||||
for (actionId in actionIds) {
|
||||
if (actionId.startsWith("continue")) {
|
||||
continue
|
||||
}
|
||||
val action = actionManager.getAction(actionId)
|
||||
val shortcuts = action.shortcutSet.shortcuts.filterNot { it is KeyboardShortcut && it.firstKeyStroke == keyStroke }.toTypedArray()
|
||||
val newShortcutSet = CustomShortcutSet(*shortcuts)
|
||||
action.registerCustomShortcutSet(newShortcutSet, null)
|
||||
}
|
||||
// for (actionId in actionIds) {
|
||||
// if (actionId.startsWith("continue")) {
|
||||
// continue
|
||||
// }
|
||||
// val action = actionManager.getAction(actionId)
|
||||
// val shortcuts = action.shortcutSet.shortcuts.filterNot { it is KeyboardShortcut && it.firstKeyStroke == keyStroke }.toTypedArray()
|
||||
// val newShortcutSet = CustomShortcutSet(*shortcuts)
|
||||
// action.registerCustomShortcutSet(newShortcutSet, null)
|
||||
// }
|
||||
}
|
||||
|
||||
private fun initializePlugin(project: Project) {
|
||||
|
|
|
|||
|
|
@ -297,9 +297,10 @@ class IdeProtocolClient (
|
|||
println("Disconnected from Continue IDE websocket")
|
||||
}
|
||||
|
||||
socket.on(Socket.EVENT_CONNECT_ERROR) {
|
||||
socket.on(Socket.EVENT_CONNECT_ERROR, { args ->
|
||||
println("Error connecting to Continue IDE websocket")
|
||||
}
|
||||
println(args[0].toString())
|
||||
})
|
||||
|
||||
socket.on("message") { args ->
|
||||
val data = args[0].toString()
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -82,10 +82,12 @@ function useSetup(
|
|||
});
|
||||
|
||||
fetch(`${serverUrl}/slash_commands`).then(async (resp) => {
|
||||
if (resp.status !== 200) return;
|
||||
const sc = await resp.json();
|
||||
dispatch(setSlashCommands(sc));
|
||||
});
|
||||
fetch(`${serverUrl}/context_providers`).then(async (resp) => {
|
||||
if (resp.status !== 200) return;
|
||||
const cp = await resp.json();
|
||||
dispatch(setContextProviders(cp));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue