Skip to content

Commit

Permalink
kiss
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Sep 9, 2023
1 parent 94b1608 commit 160bb66
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 165 deletions.
17 changes: 9 additions & 8 deletions src/langs/blueprint/blueprint.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ export function setup({ document }) {
},
});

console.log(text_edits);
if (!text_edits) return text;
if (!text_edits || text_edits.length !== 1) return text;
const newText = text_edits[0].newText;
if (!newText) return text;

return applyTextEdits(text_edits, text);
return newText;
},
};
}
Expand Down Expand Up @@ -124,12 +125,12 @@ export function logBlueprintInfo(info) {
}

function createLSPClient({ code_view, file }) {
const bin = "/app/bin/blueprint-compiler";
// const bin = "/app/bin/blueprint-compiler";
const uri = file.get_uri();
// const bin = GLib.build_filenamev([
// pkg.sourcedir,
// "blueprint-compiler/blueprint-compiler.py",
// ]);
const bin = GLib.build_filenamev([
"/home/sonny/Projects/GNOME",
"blueprint-compiler/blueprint-compiler.py",
]);

const lspc = new LSPClient([bin, "lsp"], {
rootUri: file.get_parent().get_uri(),
Expand Down
157 changes: 0 additions & 157 deletions test/lsp.test.js

This file was deleted.

0 comments on commit 160bb66

Please sign in to comment.