Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cody Ignore: remove the Git extension shim #4115

Merged
merged 5 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import com.google.gson.annotations.SerializedName
data class ClientCapabilities(
val completions: CompletionsEnum? = null, // Oneof: none
val chat: ChatEnum? = null, // Oneof: none, streaming
val git: GitEnum? = null, // Oneof: none, disabled
val progressBars: ProgressBarsEnum? = null, // Oneof: none, enabled
val edit: EditEnum? = null, // Oneof: none, enabled
val editWorkspace: EditWorkspaceEnum? = null, // Oneof: none, enabled
Expand All @@ -26,11 +25,6 @@ data class ClientCapabilities(
@SerializedName("streaming") Streaming,
}

enum class GitEnum {
@SerializedName("none") None,
@SerializedName("disabled") Disabled,
}

enum class ProgressBarsEnum {
@SerializedName("none") None,
@SerializedName("enabled") Enabled,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ object Constants {
const val Invoke = "Invoke"
const val none = "none"
const val streaming = "streaming"
const val disabled = "disabled"
const val enabled = "enabled"
const val notification = "notification"
const val request = "request"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
package com.sourcegraph.cody.protocol_generated

data class TextDocumentShowOptionsParams(
val preserveFocus: Boolean? = null,
val preview: Boolean? = null,
val selection: Range? = null,
)

206 changes: 206 additions & 0 deletions agent/recordings/enterpriseClient_3965582033/recording.har.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions agent/src/agent.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { spawn } from 'node:child_process'
import * as fspromises from 'node:fs/promises'
import path from 'node:path'

import type { Polly, Request } from '@pollyjs/core'
Expand Down Expand Up @@ -85,13 +84,6 @@ export async function initializeVscodeExtension(
extensionClient: ExtensionClient
): Promise<void> {
const paths = envPaths('Cody')
try {
const gitdirPath = path.join(workspaceRoot.fsPath, '.git')
await fspromises.stat(gitdirPath)
vscode_shim.addGitRepository(workspaceRoot, 'fake_vscode_shim_commit')
} catch {
/* ignore */
}
const context: vscode.ExtensionContext = {
asAbsolutePath(relativePath) {
return path.resolve(workspaceRoot.fsPath, relativePath)
Expand Down