Skip to content

Commit

Permalink
fix delay arg passing
Browse files Browse the repository at this point in the history
  • Loading branch information
liam-fitzgerald committed Jan 13, 2020
1 parent 98a3d09 commit 9f3d9b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class Server {
onNotification(method: string, params: any[]) {
logger.debug({ method, params });
if (method === "textDocument/didSave") {
wait(1000).then(() => {
wait(this.config.delay).then(() => {
logger.debug("Delayed didSave");
this.poke(MARKS.NOTIFICATION, { jsonrpc: "2.0", method, params });
});
Expand Down

0 comments on commit 9f3d9b8

Please sign in to comment.