Skip to content

Commit

Permalink
Don't reread builtinsDoc (#338)
Browse files Browse the repository at this point in the history
* Don't reread builtinsDoc

* Spaces
  • Loading branch information
inferrna authored Dec 9, 2024
1 parent fe82626 commit a9cec6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev/lsp/src/lsp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export class LSPInstance {
if (c.executable.length == 0)
return throwError("Lobster executable path is not set.");

getBuiltinsDoc(c).then((d) => this.builtinsDoc = d);
if (this.builtinsDoc.length == 0) {
getBuiltinsDoc(c).then((d) => this.builtinsDoc = d);
}

exec(c.executable, (error, stdout, stderr) => {
if (stderr) {
Expand Down

0 comments on commit a9cec6d

Please sign in to comment.