Commit Graph

20 Commits

Author SHA1 Message Date
Qi Xiao
4b9a097f54 Support running transcript tests from .elv files too. 2024-03-22 19:47:53 +00:00
Qi Xiao
dcc544c612 vscode: Add config for firstLine (.elv) and wordPattern (.elv and .elvts). 2024-02-22 13:15:13 +00:00
Qi Xiao
ae791f1f51 vscode: Minor refactors. 2024-02-19 14:09:09 +00:00
Qi Xiao
47f21df951 vscode: Add command for updating the output of a single interaction.
Also convert the extension source to TypeScript, and update dependencies.
2024-02-19 13:42:39 +00:00
Qi Xiao
b1815833a9 vscode: Simplify .gitignore. 2024-01-31 09:48:56 +00:00
Qi Xiao
0e2999dee8 Support using Elvish transcripts as tests.
- evaltest.TestTranscriptsInFS runs transcripts in .elv and .elvts files as
  tests.

- Extend the syntax of Elvish transcripts with headings and comments; the former
  is used to split a single .elvts file into multiple sessions.
2024-01-30 20:15:58 +00:00
Qi Xiao
17a41afa72 vscode: Bump dependencies and version number. 2023-07-13 22:19:02 +01:00
Qi Xiao
0e9287f12a vscode/sample.elv: Add trailing newline. 2023-07-13 22:18:29 +01:00
Qi Xiao
90187c8d7c Fixup for #1699.
- Remove description fields; just use the keys as the descriptions.

- Remove ( ) around conditions.

- Add more special commands.

- Add "Snippets" as a category of the extension.

Also bump extension version - I accidentally published a WIP version as 0.2.1,
so bump it to 0.2.2.
2023-05-20 11:48:47 +01:00
EmilySeville7cfg
96eee86353 feat(snippets): add basic snippets 2023-05-08 15:21:52 +10:00
Qi Xiao
1a65886e68 Make vscode/LICENSE a copy of LICENSE.
Symlinks won't work well on Windows.

This fixes #1667.
2023-03-08 00:26:05 +00:00
Qi Xiao
5c835b1c5f vscode: Fix package.json. 2023-03-01 22:41:28 +00:00
Qi Xiao
dede073b31 Use .elvts as the standard extension of Elvish transcripts.
Rename the existing ttyshot instruction files to use the new extension too.
2023-03-01 22:39:06 +00:00
Qi Xiao
c853e4388f vscode: Fix highlighting of } before keywords. 2022-10-07 20:39:56 +01:00
Qi Xiao
ce3ed70858 vscode: Declare Elvish in Markdown as a language.
This is not necessary, but makes the Contributions tab on the extension
marketplace a bit nicer.

Also bump to 0.1.3.
2022-08-13 10:59:22 +01:00
Qi Xiao
27f5c8cf6b vscode: Bundle extension before publishing. 2022-08-10 23:12:30 +01:00
Qi Xiao
c115a5d47a vscode: Expand where Elvish code can get highlighted.
- Highlight Elvish code blocks in Markdown.

- Highlight Elvish transcripts, either in .ttyshot files or in Markdown code
  blocks.

- Remove the syntaxes directory in repo root now that the syntaxes live inside
  vscode/syntaxes.

- Bump VS Code extension version to 0.1.2.
2022-08-10 22:39:54 +01:00
Qi Xiao
14ad776bf4 vscode: Fix syntax highlighting; bump to 0.1.1.
- Don't match "set" within e.g. "set-env".

- Fix the right-hand boundary of keywords such as "except".
2022-06-12 01:23:59 +01:00
Qi Xiao
bd3197627a Update vscode/package-lock.json. 2022-06-05 22:46:55 +01:00
Qi Xiao
b24421170a Add VS Code extension. 2022-06-05 12:19:18 +01:00