Commit Graph

620 Commits

Author SHA1 Message Date
Tony Garnock-Jones aafb654687 Try harder to be incremental in editContent 2023-05-03 18:20:26 +03:00
Tony Garnock-Jones 1f72baf3ad Log expansion delay 2023-05-03 18:19:48 +03:00
Tony Garnock-Jones 9cf00720f8 Publish
- @syndicate-lang/core@0.15.0
 - @syndicate-lang/fs@0.15.0
 - @syndicate-lang/html@0.15.0
 - @syndicate-lang/service@0.15.0
 - @syndicate-lang/syndicatec@0.15.0
 - @syndicate-lang/timer@0.15.0
 - @syndicate-lang/ts-plugin@0.16.0
 - @syndicate-lang/tsc@0.16.0
 - @syndicate-lang/ws-relay@0.15.0
2023-05-02 16:26:30 +03:00
Tony Garnock-Jones b2084c4d1d Factor out different kinds of IndexObserver 2023-05-02 16:19:38 +03:00
Tony Garnock-Jones 998c4442c9 Publish
- @syndicate-lang/fs@0.14.7
 - @syndicate-lang/html@0.14.7
 - @syndicate-lang/service@0.14.7
 - @syndicate-lang/timer@0.14.7
 - @syndicate-lang/ts-plugin@0.15.3
 - @syndicate-lang/ws-relay@0.14.7
2023-05-02 13:10:59 +03:00
Tony Garnock-Jones a0f87bf687 Monkeypatch ScriptInfo instead of subclassing-and-replacing.
This means we can ditch the whole approach of trying to remove
stale ScriptInfo instances at plugin startup, instead just
endowing existing ones with new behaviour.

This repairs an error where renaming an identifer would perform
spurious edits.
2023-05-02 12:57:22 +03:00
Tony Garnock-Jones 2eb7045b5c Publish
- @syndicate-lang/fs@0.14.6
 - @syndicate-lang/html@0.14.6
 - @syndicate-lang/service@0.14.6
 - @syndicate-lang/timer@0.14.6
 - @syndicate-lang/ts-plugin@0.15.2
 - @syndicate-lang/ws-relay@0.14.6
2023-04-29 09:42:12 +02:00
Tony Garnock-Jones 1008d6acca Update ts-plugin README 2023-04-28 10:38:35 +02:00
Tony Garnock-Jones 075893fc85 Fix up a few of the more egregious problems with the plugin.
TypeScript has been moving on while the plugin has been staying still, and
that has caused the plugin to stop working well. This patch gets things
back into somewhat workable state, but I'm sure more will be required.

Changes include:

 - `hookHost` is no longer required: instead, we hook ts.createSourceFile.

 - `shouldExpand` abstracts away details of whether a file is considered
   Syndicateish or not.

 - The code that does the Syndicate expansion has been abstracted out of
   the detail of how expansion is invoked by the language server.

 - I've had to monkey-patch ScriptInfo in order to get access to the
   `editContent` method.

 - As a consequence, at plugin startup, we invalidate existing ScriptInfo
   instances so they are rebuilt with our SyndicateScriptInfo constructor.
2023-04-28 10:32:49 +02:00
Tony Garnock-Jones 3384acbd62 Cosmetic 2023-04-28 10:23:57 +02:00
Tony Garnock-Jones 40844d2806 Publish
- @syndicate-lang/compiler@0.13.2
 - @syndicate-lang/core@0.14.2
 - @syndicate-lang/fs@0.14.5
 - @syndicate-lang/html@0.14.5
 - @syndicate-lang/service@0.14.5
 - @syndicate-lang/syndicatec@0.14.2
 - @syndicate-lang/timer@0.14.5
 - @syndicate-lang/ts-plugin@0.15.1
 - @syndicate-lang/tsc@0.15.2
 - @syndicate-lang/ws-relay@0.14.5
2023-03-06 23:27:14 +01:00
Tony Garnock-Jones cbcb692db8 Allow fully-discard constructor parameter dicts 2023-03-06 23:26:34 +01:00
Tony Garnock-Jones 545282be32 Repair nested-binder-patterns 2023-03-06 23:26:15 +01:00
Tony Garnock-Jones 44d7d16a82 Publish
- @syndicate-lang/fs@0.14.4
 - @syndicate-lang/html@0.14.4
 - @syndicate-lang/service@0.14.4
 - @syndicate-lang/timer@0.14.4
 - @syndicate-lang/ts-plugin@0.15.0
 - @syndicate-lang/ws-relay@0.14.4
2023-02-14 12:08:24 +01:00
Tony Garnock-Jones 0962c5e41a Implement getDefinitionAndBoundSpan 2023-02-14 12:06:31 +01:00
Tony Garnock-Jones 8a51e87f38 Avoid double-translation of positions (?) 2023-02-14 12:06:19 +01:00
Tony Garnock-Jones a761e7a5b7 Publish
- @syndicate-lang/fs@0.14.3
 - @syndicate-lang/html@0.14.3
 - @syndicate-lang/service@0.14.3
 - @syndicate-lang/timer@0.14.3
 - @syndicate-lang/tsc@0.15.1
 - @syndicate-lang/ws-relay@0.14.3
2023-02-14 11:44:04 +01:00
Tony Garnock-Jones fe78147cb8 Another repair to diagnostic fixup 2023-02-14 11:43:05 +01:00
Tony Garnock-Jones fec72f1269 Publish
- @syndicate-lang/fs@0.14.2
 - @syndicate-lang/html@0.14.2
 - @syndicate-lang/service@0.14.2
 - @syndicate-lang/timer@0.14.2
 - @syndicate-lang/tsc@0.15.0
 - @syndicate-lang/ws-relay@0.14.2
2023-02-14 11:32:52 +01:00
Tony Garnock-Jones 14702c66b9 Dramatic simplifications from using TypeScript-provided machinery which appeared sometime between when this code was originally written and now 2023-02-14 11:32:21 +01:00
Tony Garnock-Jones ef665c0998 Publish
- @syndicate-lang/core@0.14.1
 - @syndicate-lang/create@0.14.1
 - @syndicate-lang/fs@0.14.1
 - @syndicate-lang/html@0.14.1
 - @syndicate-lang/service@0.14.1
 - @syndicate-lang/syndicatec@0.14.1
 - @syndicate-lang/timer@0.14.1
 - @syndicate-lang/ts-plugin@0.14.1
 - @syndicate-lang/tsc@0.14.1
 - @syndicate-lang/ws-relay@0.14.1
2023-02-11 22:06:28 +01:00
Tony Garnock-Jones a51851283f Repair route with no steps 2023-02-11 22:01:19 +01:00
Tony Garnock-Jones 7a09be7141 Merge latest changes from the syndicate-protocols repository 2023-02-11 21:54:43 +01:00
Tony Garnock-Jones d6c4db6a09 Bump again 2023-02-11 18:12:42 +01:00
Tony Garnock-Jones 04ebe2b8e6 Bump required deps 2023-02-11 18:00:41 +01:00
Tony Garnock-Jones 18a4690609 Merge latest changes from the syndicate-protocols repository 2023-02-11 17:48:32 +01:00
Tony Garnock-Jones ea212ade8c Publish
- @syndicate-lang/core@0.14.0
 - @syndicate-lang/create@0.14.0
 - @syndicate-lang/fs@0.14.0
 - @syndicate-lang/html@0.14.0
 - @syndicate-lang/service@0.14.0
 - @syndicate-lang/syndicatec@0.14.0
 - @syndicate-lang/timer@0.14.0
 - @syndicate-lang/ts-plugin@0.14.0
 - @syndicate-lang/tsc@0.14.0
 - @syndicate-lang/ws-relay@0.14.0
2023-02-10 16:49:37 +01:00
Tony Garnock-Jones 1f9ee7a745 Merge latest changes from the syndicate-protocols repository 2023-02-09 23:08:23 +01:00
Tony Garnock-Jones cd5452b624 Implement new gatekeeper protocol for syndicate-js 2023-02-09 22:41:43 +01:00
Tony Garnock-Jones f4c0c826df Merge latest changes from the syndicate-protocols repository 2023-02-09 00:17:37 +01:00
Tony Garnock-Jones 5111a0c141 Merge latest changes from the syndicate-protocols repository 2023-02-08 22:28:19 +01:00
Tony Garnock-Jones 32428e9e67 Merge latest changes from the syndicate-protocols repository 2023-02-08 20:36:50 +01:00
Tony Garnock-Jones d32805e1fb Merge latest changes from the syndicate-protocols repository 2023-02-08 19:39:58 +01:00
Tony Garnock-Jones 31d2eba8b6 Publish
- @syndicate-lang/compiler@0.13.1
 - @syndicate-lang/core@0.13.1
 - @syndicate-lang/fs@0.13.2
 - @syndicate-lang/html@0.13.2
 - @syndicate-lang/service@0.13.2
 - @syndicate-lang/syndicatec@0.13.2
 - @syndicate-lang/timer@0.13.2
 - @syndicate-lang/ts-plugin@0.13.2
 - @syndicate-lang/tsc@0.13.2
 - @syndicate-lang/ws-relay@0.13.2
2023-02-06 23:14:09 +01:00
Tony Garnock-Jones b361f3a40e Require fixed salty-crypto package 2023-02-06 23:13:14 +01:00
Tony Garnock-Jones ce56ffb634 Bump compiler package 2023-02-06 18:12:18 +01:00
Tony Garnock-Jones 32a5de939f Publish
- @syndicate-lang/fs@0.13.1
 - @syndicate-lang/html@0.13.1
 - @syndicate-lang/service@0.13.1
 - @syndicate-lang/syndicatec@0.13.1
 - @syndicate-lang/timer@0.13.1
 - @syndicate-lang/ts-plugin@0.13.1
 - @syndicate-lang/tsc@0.13.1
 - @syndicate-lang/ws-relay@0.13.1
2023-02-06 18:09:47 +01:00
Tony Garnock-Jones 8bc7dcf1d6 Correct deps 2023-02-06 18:09:09 +01:00
Tony Garnock-Jones 7478a63a55 Publish
- @syndicate-lang/core@0.13.0
 - @syndicate-lang/create@0.13.0
 - @syndicate-lang/fs@0.13.0
 - @syndicate-lang/html@0.13.0
 - @syndicate-lang/service@0.13.0
 - @syndicate-lang/syndicatec@0.13.0
 - @syndicate-lang/timer@0.13.0
 - @syndicate-lang/ts-plugin@0.13.0
 - @syndicate-lang/tsc@0.13.0
 - @syndicate-lang/ws-relay@0.13.0
2023-02-06 17:40:25 +01:00
Tony Garnock-Jones 0c002036a4 Switch to HMAC-BLAKE2s 2023-02-06 17:34:15 +01:00
Tony Garnock-Jones 53b84db98e Merge latest changes from the syndicate-protocols repository 2023-02-06 17:09:35 +01:00
Tony Garnock-Jones 32d4da6f86 Seconds-based timer protocols 2023-02-06 16:08:12 +01:00
Tony Garnock-Jones 7fdb251c4a Merge latest changes from the syndicate-protocols repository 2023-02-06 15:42:46 +01:00
Tony Garnock-Jones 5030130aef Update attenuations 2023-02-06 15:16:57 +01:00
Tony Garnock-Jones 93fcebc4ce Merge latest changes from the syndicate-protocols repository 2023-02-06 14:48:40 +01:00
Tony Garnock-Jones adc44a0d8c Merge latest changes from the syndicate-protocols repository 2023-02-04 16:32:22 +01:00
Tony Garnock-Jones 6c8dcce135 Publish
- @syndicate-lang/ws-relay@0.12.3
2023-02-04 12:38:55 +01:00
Tony Garnock-Jones c025456bdd Clean up logging 2023-02-04 12:38:37 +01:00
Tony Garnock-Jones cb64bc3213 Publish
- @syndicate-lang/create@0.12.1
2023-02-04 12:32:39 +01:00
Tony Garnock-Jones 4be9d1a8bc Update template to new ws-relay API 2023-02-04 12:32:00 +01:00