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

Proto migrations, ide name fix #116

Merged
merged 11 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CodeiumVS/LanguageServer/LanguageServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public async Task InitializeAsync()
await PrepareAsync();

_metadata.request_id = 0;
_metadata.ide_name = "visual_studio";
_metadata.ide_name = "vscode";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a TODO to change back

_metadata.ide_version = ideVersion;
_metadata.extension_name = Vsix.Name;
_metadata.extension_version = _languageServerVersion;
Expand Down
178 changes: 162 additions & 16 deletions CodeiumVS/LanguageServer/Packets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,20 @@ public partial class Document : global::ProtoBuf.IExtensible
[global::System.ComponentModel.DefaultValue("")]
public string absolute_path { get; set; } = "";

[global::ProtoBuf.ProtoMember(12)]
[global::System.ComponentModel.DefaultValue("")]
public string absolute_uri { get; set; } = "";

[global::ProtoBuf.ProtoMember(2)]
[global::System.ComponentModel.DefaultValue("")]
public string relative_path {
public string relative_path
{
get; set;
} = "";

[global::ProtoBuf.ProtoMember(13)]
[global::System.ComponentModel.DefaultValue("")]
public string workspace_uri {
get; set;
} = "";

Expand Down Expand Up @@ -404,6 +415,10 @@ public partial class CodeContextItem : global::ProtoBuf.IExtensible
[global::System.ComponentModel.DefaultValue("")]
public string absolute_path { get; set; } = "";

[global::ProtoBuf.ProtoMember(16)]
[global::System.ComponentModel.DefaultValue("")]
public string absolute_uri { get; set; } = "";

[global::ProtoBuf.ProtoMember(2)]
public global::System.Collections.Generic.List<WorkspacePath> workspace_paths {
get;
Expand Down Expand Up @@ -480,6 +495,10 @@ public partial class WorkspacePath : global::ProtoBuf.IExtensible
[global::System.ComponentModel.DefaultValue("")]
public string workspace { get; set; } = "";

[global::ProtoBuf.ProtoMember(3)]
[global::System.ComponentModel.DefaultValue("")]
public string workspace_uri { get; set; } = "";

[global::ProtoBuf.ProtoMember(2)]
[global::System.ComponentModel.DefaultValue("")]
public string relative_path {
Expand Down Expand Up @@ -750,6 +769,13 @@ public string prompt {
get; set;
} = "";

[global::ProtoBuf.ProtoMember(21)]
[global::System.ComponentModel.DefaultValue("")]
public string context_prompt
{
get; set;
} = "";

[global::ProtoBuf.ProtoMember(8)]
public global::System.Collections.Generic.List<PromptElementRange> prompt_element_ranges {
get;
Expand All @@ -771,6 +797,12 @@ public ulong prompt_latency_ms {
get;
} = new global::System.Collections.Generic.List<PromptStageLatency>();

[global::ProtoBuf.ProtoMember(20)]
public ulong num_tokenized_bytes
{
get; set;
}

[global::ProtoBuf.ProtoMember(3)]
[global::System.ComponentModel.DefaultValue("")]
public string editor_language {
Expand All @@ -784,19 +816,19 @@ public Language language {

[global::ProtoBuf.ProtoMember(5)]
[global::System.ComponentModel.DefaultValue("")]
public string absolute_path {
public string absolute_path_uri_for_telemetry {
get; set;
} = "";

[global::ProtoBuf.ProtoMember(6)]
[global::System.ComponentModel.DefaultValue("")]
public string relative_path {
public string relative_path_for_telemetry {
get; set;
} = "";

[global::ProtoBuf.ProtoMember(13)]
[global::System.ComponentModel.DefaultValue("")]
public string workspace {
public string workspace_uri_for_telemetry {
get; set;
} = "";

Expand All @@ -806,6 +838,20 @@ public string experiment_features_json {
get; set;
} = "";

[global::ProtoBuf.ProtoMember(19)]
[global::System.ComponentModel.DefaultValue("")]
public string experiment_variant_json
{
get; set;
} = "";

[global::ProtoBuf.ProtoMember(10)]
[global::System.ComponentModel.DefaultValue("")]
public string model
{
get; set;
} = "";

[global::ProtoBuf.ProtoMember(14)]
public bool has_line_suffix {
get; set;
Expand All @@ -831,6 +877,14 @@ public string model_tag {
public global::System.Collections.Generic.List<string> experiment_tags {
get;
} = new global::System.Collections.Generic.List<string>();

[global::ProtoBuf.ProtoMember(22)]
[global::System.ComponentModel.DefaultValue("")]
public string eval_suffix
{
get; set;
} = "";

}

[global::ProtoBuf.ProtoContract()]
Expand Down Expand Up @@ -1252,12 +1306,24 @@ public Document active_document {
}

[global::ProtoBuf.ProtoMember(6)]
public global::System.Collections.Generic.List<string> open_document_paths {
public global::System.Collections.Generic.List<string> open_document_paths
{
get;
} = new global::System.Collections.Generic.List<string>();

[global::ProtoBuf.ProtoMember(12)]
public global::System.Collections.Generic.List<string> open_document_uris {
get;
} = new global::System.Collections.Generic.List<string>();

[global::ProtoBuf.ProtoMember(7)]
public global::System.Collections.Generic.List<string> workspace_paths {
public global::System.Collections.Generic.List<string> workspace_paths
{
get;
} = new global::System.Collections.Generic.List<string>();

[global::ProtoBuf.ProtoMember(13)]
public global::System.Collections.Generic.List<string> workspace_uris {
get;
} = new global::System.Collections.Generic.List<string>();

Expand Down Expand Up @@ -1486,7 +1552,14 @@ public Language language {

[global::ProtoBuf.ProtoMember(3)]
[global::System.ComponentModel.DefaultValue("")]
public string file_path {
public string file_path
{
get; set;
} = "";

[global::ProtoBuf.ProtoMember(4)]
[global::System.ComponentModel.DefaultValue("")]
public string uri {
get; set;
} = "";
}
Expand Down Expand Up @@ -1561,7 +1634,14 @@ public Language language {

[global::ProtoBuf.ProtoMember(3)]
[global::System.ComponentModel.DefaultValue("")]
public string file_path {
public string file_path
{
get; set;
} = "";

[global::ProtoBuf.ProtoMember(4)]
[global::System.ComponentModel.DefaultValue("")]
public string uri {
get; set;
} = "";
}
Expand All @@ -1584,7 +1664,14 @@ public Language language {

[global::ProtoBuf.ProtoMember(3)]
[global::System.ComponentModel.DefaultValue("")]
public string file_path {
public string file_path
{
get; set;
} = "";

[global::ProtoBuf.ProtoMember(5)]
[global::System.ComponentModel.DefaultValue("")]
public string uri {
get; set;
} = "";

Expand Down Expand Up @@ -1613,7 +1700,14 @@ public Language language {

[global::ProtoBuf.ProtoMember(3)]
[global::System.ComponentModel.DefaultValue("")]
public string file_path {
public string file_path
{
get; set;
} = "";

[global::ProtoBuf.ProtoMember(4)]
[global::System.ComponentModel.DefaultValue("")]
public string uri {
get; set;
} = "";
}
Expand Down Expand Up @@ -1669,7 +1763,14 @@ public Language language {

[global::ProtoBuf.ProtoMember(3)]
[global::System.ComponentModel.DefaultValue("")]
public string file_path {
public string file_path
{
get; set;
} = "";

[global::ProtoBuf.ProtoMember(5)]
[global::System.ComponentModel.DefaultValue("")]
public string uri {
get; set;
} = "";

Expand Down Expand Up @@ -1702,6 +1803,12 @@ public string file_path {
get; set;
} = "";

[global::ProtoBuf.ProtoMember(5)]
[global::System.ComponentModel.DefaultValue("")]
public string uri {
get; set;
} = "";

[global::ProtoBuf.ProtoMember(4)]
[global::System.ComponentModel.DefaultValue("")]
public string instructions {
Expand Down Expand Up @@ -1739,7 +1846,14 @@ public Language language {

[global::ProtoBuf.ProtoMember(5)]
[global::System.ComponentModel.DefaultValue("")]
public string file_path {
public string file_path
{
get; set;
} = "";

[global::ProtoBuf.ProtoMember(7)]
[global::System.ComponentModel.DefaultValue("")]
public string uri {
get; set;
} = "";

Expand Down Expand Up @@ -1768,7 +1882,14 @@ public Language language {

[global::ProtoBuf.ProtoMember(3)]
[global::System.ComponentModel.DefaultValue("")]
public string file_path {
public string file_path
{
get; set;
} = "";

[global::ProtoBuf.ProtoMember(5)]
[global::System.ComponentModel.DefaultValue("")]
public string uri {
get; set;
} = "";

Expand Down Expand Up @@ -1796,7 +1917,14 @@ public Language language {

[global::ProtoBuf.ProtoMember(3)]
[global::System.ComponentModel.DefaultValue("")]
public string file_path {
public string file_path
{
get; set;
} = "";

[global::ProtoBuf.ProtoMember(4)]
[global::System.ComponentModel.DefaultValue("")]
public string uri {
get; set;
} = "";
}
Expand Down Expand Up @@ -1918,7 +2046,14 @@ public partial class ChatMessageActionEdit : global::ProtoBuf.IExtensible

[global::ProtoBuf.ProtoMember(1)]
[global::System.ComponentModel.DefaultValue("")]
public string file_path { get; set; } = "";
public string file_path
{
get; set;
} = "";

[global::ProtoBuf.ProtoMember(6)]
[global::System.ComponentModel.DefaultValue("")]
public string uri { get; set; } = "";

[global::ProtoBuf.ProtoMember(2)]
public DiffBlock diff {
Expand Down Expand Up @@ -2115,6 +2250,10 @@ public partial class OpenFilePointer : global::ProtoBuf.IExtensible
[global::System.ComponentModel.DefaultValue("")]
public string file_path { get; set; } = "";

[global::ProtoBuf.ProtoMember(6)]
[global::System.ComponentModel.DefaultValue("")]
public string file_uri { get; set; } = "";

[global::ProtoBuf.ProtoMember(2)]
public int start_line {
get; set;
Expand Down Expand Up @@ -2181,7 +2320,14 @@ public partial class ApplyDiff : global::ProtoBuf.IExtensible

[global::ProtoBuf.ProtoMember(2)]
[global::System.ComponentModel.DefaultValue("")]
public string file_path {
public string file_path
{
get; set;
} = "";

[global::ProtoBuf.ProtoMember(8)]
[global::System.ComponentModel.DefaultValue("")]
public string uri {
get; set;
} = "";

Expand Down
Loading