Skip to content

Commit

Permalink
remove open file pointer dup field
Browse files Browse the repository at this point in the history
  • Loading branch information
saranshsaini committed Sep 17, 2024
1 parent 8a8a795 commit f3fe0b3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CodeiumVS/LanguageServer/LanguageServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ public async Task<IList<CompletionItem>?>
cursor_offset = (ulong)cursorPosition,
line_ending = lineEnding,
absolute_path = absolutePath,
absolute_path_migrate_me_to_uri = absolutePath,
absolute_path_migrate_me_to_uri = absolutePath,
relative_path = Path.GetFileName(absolutePath) },
editor_options = new() {
tab_size = (ulong)tabSize,
Expand Down
2 changes: 1 addition & 1 deletion CodeiumVS/LanguageServer/LanguageServerController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void OnMessage(object sender, MessageEventArgs msg)

var data = request.open_file_pointer;
OpenSelection(
data.file_path_migrate_me_to_uri.IsNullOrEmpty() ? data.file_path : data.file_path_migrate_me_to_uri, data.start_line, data.start_col, data.end_line, data.end_col);
data.file_uri.IsNullOrEmpty() ? data.file_path : data.file_uri, data.start_line, data.start_col, data.end_line, data.end_col);
}
else if (request.ShouldSerializeinsert_at_cursor())
{
Expand Down
12 changes: 6 additions & 6 deletions CodeiumVS/LanguageServer/Packets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2368,12 +2368,12 @@ public partial class OpenFilePointer : global::ProtoBuf.IExtensible
global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing) =>
global::ProtoBuf.Extensible.GetExtensionObject(ref __pbn__extensionData, createIfMissing);

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

[global::ProtoBuf.ProtoMember(1)]
[global::System.ComponentModel.DefaultValue("")]
Expand Down

0 comments on commit f3fe0b3

Please sign in to comment.