Skip to content

Commit

Permalink
Lower Cody CodeActions priority as a temporary workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
RXminuS committed Aug 26, 2024
1 parent cf1af08 commit 393eddf
Show file tree
Hide file tree
Showing 25 changed files with 343 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Chat_Sidebar_NewResult(
val panelId: String,
val chatId: String,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class DefiniteWebviewOptions(
val enableScripts: Boolean,
val enableForms: Boolean,
val enableOnlyCommandUris: List<String>? = null,
val localResourceRoots: List<String>? = null,
val portMapping: List<PortMappingParams>,
val enableFindWidget: Boolean,
val retainContextWhenHidden: Boolean,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Env_OpenExternalParams(
val uri: String,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class PortMappingParams(
val webviewPort: Long,
val extensionHostPort: Long,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class SaveDialogOptionsParams(
val defaultUri: String? = null,
val saveLabel: String? = null,
val filters: Map<String, List<String>>? = null,
val title: String? = null,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class ShowOptionsParams(
val preserveFocus: Boolean,
val viewColumn: Long,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class SourceParams(
val client: String,
val clientVersion: String,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class TestingTelemetryEvent(
val feature: String,
val action: String,
val source: SourceParams,
val timestamp: String,
val testOnlyAnonymousUserID: String,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Testing_ExportedTelemetryEventsResult(
val events: List<TestingTelemetryEvent>,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class WebviewCreateWebviewPanelOptions(
val enableScripts: Boolean,
val enableForms: Boolean,
val enableOnlyCommandUris: List<String>? = null,
val localResourceRoots: List<String>? = null,
val portMapping: List<PortMappingParams>,
val enableFindWidget: Boolean,
val retainContextWhenHidden: Boolean,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

import com.google.gson.annotations.SerializedName;

data class WebviewNativeConfigParams(
val view: ViewEnum, // Oneof: multiple, single
val cspSource: String,
val webviewBundleServingPrefix: String,
val rootDir: String? = null,
val injectScript: String? = null,
val injectStyle: String? = null,
) {

enum class ViewEnum {
@SerializedName("multiple") Multiple,
@SerializedName("single") Single,
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Webview_CreateWebviewPanelParams(
val handle: String,
val viewType: String,
val title: String,
val showOptions: ShowOptionsParams,
val options: WebviewCreateWebviewPanelOptions,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Webview_DidDisposeNativeParams(
val handle: String,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Webview_DisposeParams(
val handle: String,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Webview_RegisterWebviewViewProviderParams(
val viewId: String,
val retainContextWhenHidden: Boolean,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Webview_ResolveWebviewViewParams(
val viewId: String,
val webviewHandle: String,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Webview_RevealParams(
val handle: String,
val viewColumn: Long,
val preserveFocus: Boolean,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Webview_SetHtmlParams(
val handle: String,
val html: String,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Webview_SetIconPathParams(
val handle: String,
val iconPathUri: String? = null,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Webview_SetOptionsParams(
val handle: String,
val options: DefiniteWebviewOptions,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Webview_SetTitleParams(
val handle: String,
val title: String,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class Window_DidChangeContextParams(
val key: String,
val value: String? = null,
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Generated file - DO NOT EDIT MANUALLY
* They are copied from the cody agent project using the copyProtocol gradle task.
* This is only a temporary solution before we fully migrate to generated protocol messages.
*/
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.agent.protocol_generated;

data class WorkspaceFolder_DidChangeParams(
val uris: List<String>,
)

Loading

0 comments on commit 393eddf

Please sign in to comment.