Craig McIlwrath
76d9fc4213
[waspls] Add code actions for scaffolding external code ( #1316 )
...
When an external import tries to import a symbol from a TypeScript/JavaScript file, waspls now offers quickfix code actions to scaffold a function in that file.
It uses the surrounding context of the external import to determine what code to write for the code action. See [`ScaffoldTsSymbol.hs`](457911d5e9/waspc/waspls/src/Wasp/LSP/Commands/ScaffoldTsSymbol.hs
) for a detailed description of how it works. At a high level, there is a `templateForFile` function in `Wasp.LSP.Commands.ScaffoldTsSymbol` that selects the correct template from `data/lsp/templates/ts`. For example, `action.fn.ts` contains a template for scaffolding an `action` function in a TypeScript file and would be used when a code action is requested with the cursor at the location marked by `|`:
```wasp
action createTask {
fn: import { createTask } from "@server/actions.js"|
}
```
The scaffold action runs as a [LSP command](https://microsoft.github.io/language-server-protocol/specifications/specification-3-16/#workspace_executeCommand ). To prepare for wanting to define more commands in waspls in the future, this PR also introduces the concept of `Commands` (`Wasp.LSP.Commands.Command`) that define some properties about each command waspls wants to handle.
2023-07-26 08:00:16 -04:00
Mihovil Ilakovac
3e481eba04
Merge branch 'release'
2023-07-21 12:06:30 +02:00
Craig McIlwrath
4da36535ca
[docs] removes type annotation in JS code in the tutorial ( #1329 )
2023-07-19 09:01:01 -04:00
Martin Sosic
eb84fa4ba0
Added 'cost per app' to blog on how we made GPT.
2023-07-18 16:41:02 +02:00
Martin Sosic
a663af5dd7
Improved a bit the blog post about how we built gpt code agent.
2023-07-18 15:17:18 +02:00
Craig McIlwrath
8b1d6a96ab
[waspls] implement goto definition for declarations ( #1310 )
2023-07-18 08:16:26 -04:00
Martin Sosic
cbf9545e1b
Wrote 'How we built GPT web app generator' blog post.
2023-07-17 16:09:32 +02:00
Matija Sosic
bb53b057b2
lp: put GPT starter into announcement bar.
2023-07-14 14:22:09 +02:00
Umbrien
2df423006c
add missing comma ( #1318 )
2023-07-13 15:41:59 +02:00
Filip Sodić
d554506bc8
Merge branch 'release'
2023-07-12 17:10:58 +02:00
Filip Sodić
af9d7992b3
Add support for Prisma preview features ( #1315 )
2023-07-12 17:08:57 +02:00
Matija Sosic
0492f3dbe6
blog: added video to wasp ai intro post.
2023-07-11 15:10:57 +02:00
Matija Sosic
5cbc0daba3
blog: small updates to Wasp AI intro post.
2023-07-11 14:51:22 +02:00
Matija Sosic
f204ed6fc4
blog: Added Web App Generator intro post.
2023-07-11 14:00:20 +02:00
Martin Šošić
355fcd437a
Update README.md
2023-07-10 11:44:24 +02:00
Craig McIlwrath
2d3f0e116c
[waspls] cleanup extimport code ( #1292 )
...
mainly refactoring. also updates CI workflow to run packages/ts-inspect tests.
2023-07-07 08:21:33 -04:00
Matija Sosic
e57bf4ff9a
blog/lp: updated lw3 blog post with links + updated lp banner
2023-07-04 17:49:17 +02:00
Matija Sosic
281b0489dd
docs: added note about restarting wasp server upon enabling tailwind support.
2023-07-03 14:43:12 +02:00
vincanger
b6bb8b70cc
[BLOG] -- twitter agent fixes and tutorial jam ( #1302 )
...
* fix twitter tutorial
* add tutorial jam post
2023-06-30 17:22:12 +02:00
Matija Sosic
1be896e621
blog: LSP 2.0
2023-06-29 18:15:39 +02:00
Craig McIlwrath
c1d86b1f91
Show multiple parse errors from Wasp Analyzer ( #1298 )
...
* allow multiple errors to come out of analyzer
basically just plumbing. does add one new thing: all the concrete parse
errors get reported now 🥳
* add statement level error recovery to abstract parser
* add expression level parse recovery
recovers from errors inside dict entries, lists,
and tuples.
* document parser error recovery
* run formatter
2023-06-29 12:34:31 +02:00
Matija Sosic
b5e06f642c
blog: what you can build with wasp.
2023-06-28 19:44:36 +02:00
vincanger
443a373953
add twitter agent post & images ( #1295 )
2023-06-27 15:32:36 +02:00
Martin Šošić
3cb1dbd9f9
Update README.md with instructions on updating starter templates before release.
2023-06-27 12:31:36 +02:00
Mihovil Ilakovac
0e5e653832
Add info about Auto CRUD and Websockets to ChangeLog.
...
Co-authored-by: Craig McIlwrath <craigmc08@gmail.com>
2023-06-26 14:44:32 +02:00
Martin Sosic
ee18f8bb2d
Enriched ChangeLog with more info on 0.11.
2023-06-26 14:19:09 +02:00
Mihovil Ilakovac
8587e14be5
Typescript/Javascript tutorial toggle ( #1266 )
2023-06-26 14:11:05 +02:00
Mihovil Ilakovac
2db1dfad2a
Merge branch 'release'
2023-06-23 17:26:07 +02:00
vincanger
f2f5a98ee6
add credit card info for fly deploy ( #1285 )
2023-06-23 17:01:01 +02:00
Mihovil Ilakovac
c50aef34f8
Rewrite templates to include description ( #1283 )
2023-06-23 16:44:24 +02:00
Craig McIlwrath
d5c04a002a
[waspls] fix debouncer tests ( #1284 )
2023-06-23 10:28:22 -04:00
Martin Sosic
afb148e19d
wasp cli now exits with code 1 on internal errors.
2023-06-23 12:44:43 +02:00
Craig McIlwrath
7c0d13d242
[waspls] diagnostics for external imports and goto definition ( #1268 )
2023-06-22 15:37:07 -04:00
Craig McIlwrath
066b832127
Adjust how dictionary types are displayed ( #1280 )
2023-06-22 14:13:18 -04:00
Matija Sosic
6977dd104e
lp: updated banner + hero buttons.
2023-06-22 18:44:42 +02:00
Matija Sosic
353ee10e95
blog: lw3 announcement.
2023-06-22 18:31:47 +02:00
Mihovil Ilakovac
dc1c3aab49
Adds extra type info to middleware customization fn ( #1279 )
...
* Adds extra type info to middleware customization
Signed-off-by: Mihovil Ilakovac <mihovil@ilakovac.com>
* Fixes e2e tests
Signed-off-by: Mihovil Ilakovac <mihovil@ilakovac.com>
---------
Signed-off-by: Mihovil Ilakovac <mihovil@ilakovac.com>
2023-06-22 16:52:52 +02:00
vincanger
76c63ec88e
update railway deploy guide w/ client routing config ( #1278 )
2023-06-22 14:00:19 +02:00
Mihovil Ilakovac
52c4e0f8ca
Merge branch 'release'
2023-06-22 10:48:23 +02:00
Mihovil Ilakovac
e3873a6148
Fixes oAuth redirect behaviour in development ( #1275 )
2023-06-22 10:47:47 +02:00
vincanger
34fdcb7469
Docs: add username & password guide ( #993 )
...
* add user-password guide
* small changes
* move username-password file to guides
* fix links in username-password guide
2023-06-22 10:42:10 +02:00
Mihovil Ilakovac
67f88cc50e
Fixes Websocket Typescript issues ( #1277 )
2023-06-22 10:30:03 +02:00
Mihovil Ilakovac
84766299cb
Upgrades Waspello to work with latest version ( #1273 )
...
* Upgrades Waspello to work with latest version
Signed-off-by: Mihovil Ilakovac <mihovil@ilakovac.com>
* Updates instructions
---------
Signed-off-by: Mihovil Ilakovac <mihovil@ilakovac.com>
Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
2023-06-21 19:46:51 +02:00
Martin Šošić
7c1e9879ab
Removed JS extension from imports on client (in examples, docs, ...). ( #1276 )
2023-06-21 19:19:13 +02:00
Martin Sosic
e5ab862fe8
Updated Waspleau to work in development with Wasp 0.11
2023-06-21 17:26:42 +02:00
Mihovil Ilakovac
b80f8946cf
Updates broken imports for Auth components ( #1274 )
2023-06-21 16:09:10 +02:00
Craig McIlwrath
802e0c5e5d
show error message when database is not running ( #1218 )
...
Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
Co-authored-by: Mihovil Ilakovac <mihovil@ilakovac.com>
2023-06-20 14:34:14 -04:00
Craig McIlwrath
e43b8f986c
[waspls] add dictionary autocomplete and signature help ( #1230 )
2023-06-20 07:31:20 -04:00
Martin Šošić
1584721299
Updated telemetry docs. ( #1237 )
2023-06-19 12:29:05 +02:00
Shayne Czyzewski
3e85b0f067
Adds WebSocket support ( #1203 )
2023-06-19 10:49:57 +02:00