Commit Graph

13 Commits

Author SHA1 Message Date
jakergrossman
8d244e5166 Add logger, output 2021-11-18 12:00:46 -06:00
jakergrossman
95b23236e0 Add clarification comment to send 2021-11-18 00:38:07 -06:00
jakergrossman
92d42edaff Parse messages on arrival
Rather than queuing inbound messages, the HubController now saves
pending promises/rejects for each pending request. Each inbound packet
is checked at the time of arrival, and if the ID matches a pending
response, the corresponding promise is called.

This fixes a problem where the longer the time between reads, the more
garbage responses queue up that are guaranteed to get thrown away the
next time the next response was gathered.
2021-11-18 00:29:27 -06:00
jakergrossman
8ac7e2c5ea Implement HubController 2021-11-17 19:36:18 -06:00
jakergrossman
e3e9a218df Add missing semicolon 2021-11-16 13:21:51 -06:00
jakergrossman
07799da26e Fixed missing files 2021-11-16 13:19:43 -06:00
jakergrossman
73e599df7b Add persistent accessibility pane
This will facilitate more extensive usage of the menu than the
context menu.
2021-11-16 12:44:39 -06:00
Jake Grossman
887f88eba6
Add H5 & H4: Listen to Cursor/Line Context (#7)
* Update parser

Implied nodes caused ambiguity when querying for context. Now every line
is considered, even blank lines, to make the process much, *much* easier.

* Update pylex tests

* Add runCursorContext
2021-11-16 11:35:38 -06:00
Jake Grossman
6904b5dacf
Refactor command registration (#6)
Refactor command registration

As we continue to register more commands for our extension,
'extensions.ts' has become gross and hard to read. Commands are now
defined in a `commands: Command[]` list in 'commands.ts':

    type Command = {
      name: string, // Name of the command e.g. 'mind-reader.selectTheme'
      callback: () => void // Callback to register for the command
    }

This list is imported into 'extension.ts' and registered
programatically, reducing the required lines of "extra" code required
to register commands in 'extension.ts' from 4 per command to 7 total.
This should help keep 'extension.ts' squeaky clean :)
2021-11-01 15:32:06 -05:00
Jake Grossman
d105544596
Integrate Parser (#4)
Integrate parser
2021-10-26 12:48:04 -05:00
sophiadrewfs
0104e75d2c
added change theme feature (#3)
Add theme extension recommendation and open theme commands.
2021-10-19 12:46:05 -05:00
jakergrossman
25b23c514b Implement increasing font and editor scale
The following commands adjust the font scale in the editor only:

    - mind-reader.increaseFontScale

    - mind-reader.decreaseFontScale

    - mind-reader.resetFontScale

The following commands adjust the overall editor scale:

    - mind-reader.increaseEditorScale

    - mind-reader.decreaseEditorScale

    - mind-reader.resetEditorScale
2021-10-16 19:30:40 -05:00
jakergrossman
214610340f Initial commit 2021-09-25 16:18:41 -05:00