fix: send is no longer async
Some checks are pending
test / build-test (push) Waiting to run

This commit is contained in:
əlemi 2024-10-26 18:40:52 +02:00
parent 5b9ab79350
commit cf2bdc347a
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 4 additions and 4 deletions

View file

@ -107,7 +107,7 @@ export async function attach_to_remote_buffer(buffer_name: string, set_content?:
if (set_content) {
// make remote document match local content
let doc_len = remoteContent.length;
await buffer.send({ startIdx: 0, endIdx: doc_len, content: localContent });
buffer.send({ startIdx: 0, endIdx: doc_len, content: localContent });
} else {
// make local document match remote content
let doc_len = localContent.length;
@ -130,7 +130,7 @@ export async function attach_to_remote_buffer(buffer_name: string, set_content?:
for (let change of event.contentChanges) {
if (skip_this !== undefined && change.text == skip_this) continue;
// LOGGER.info(`onDidChangeTextDocument(event: [${change.rangeOffset}, ${change.text}, ${change.rangeOffset + change.rangeLength}])`);
await buffer.send({
buffer.send({
startIdx: change.rangeOffset,
endIdx: change.rangeOffset + change.rangeLength,
content: change.text

View file

@ -96,7 +96,7 @@ export async function join(selected: vscode.TreeItem | undefined) {
let buffer = mapping.bufferMapper.by_editor(buf);
if (buffer === undefined) {
if (once) {
await controller.send({
controller.send({
startRow: 0,
startCol: 0,
endRow: 0,
@ -107,7 +107,7 @@ export async function join(selected: vscode.TreeItem | undefined) {
once = false;
} else {
await controller.send({
controller.send({
startRow: selection.anchor.line,
startCol: selection.anchor.character,
endRow: selection.active.line,