geddski / geddski/macros

Not all commands are executed.

Open
#29 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
177
Forks
36
PR merge metrics
No merged PRs in 30d

Description

Not sure what's going on. Trying this:

```
"save": [
"editor.action.formatDocument",
"workbench.action.files.saveAll"
],
"acceptAndFormat": [
"^acceptSelectedSuggestion",
"editor.action.formatDocument"
]
```

In the "save" macro the currently edited document doesn't seem to be saved but other documents are saved.

```
{
{
"key": "ctrl+s",
"command": "macros.save",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
},
```

In the next example, only one line of macro works in each case and it's a different line for each:

```
{
"key": "+",
"command": "macros.acceptAndFormat",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey && editorHasDocumentFormattingProvider && editorLangId == 'csharp'"
},
{
"key": "-",
"command": "macros.acceptAndFormat",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey && editorHasDocumentFormattingProvider && editorLangId == 'csharp'"
},
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the save and acceptAndFormat macros in VS Code with the configurations shown. The report names no files or tests; done means that both commands in each macro execute reliably, including saving the currently edited document.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, vscode
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.