Closed markw65 closed 9 months ago
peggy.code-workspace probably needs to be added to .npmignore. Check with npm pack --dry-run
Note: I'll likely close #42 after this lands, after playing with it a little.
I did need to add peggy.code-workspace to .npmignore, and while there I realized that I added tsconfig*.json, to cover the tsconfig-base.json that I added in #435.
needs a changelog entry still, please.
See discussion on #42
It turns out that you can include recommended extensions directly in the .code-workspace file, so I didn't need to add a .vscode/extensions.json file.
To test this:
@markw65/peggy
, and checked outorigin/peggy-code-workspace
.npm install
, then opened the peggy folder from vscode-insiders.generate-js.js
, and made some changes that eslint didn't like, and hit Shift-Option-F to format, and it fixed them for me, without modifying the rest of the file.defaulltFormatter
toTypescript and Javascript Language Features
in thepeggy
folder. This created a .vscode/settings.json file (which was hidden from git by the new .gitignore). I formattedgenerate-js.js
again, and it changed lots of things in ways that lint didn't like (so that formatter isn't actually useful, but demonstrates that people can still choose to use something other than the default).Given that settings can be overridden via .vscode/settings.json, I'm inclined to turn on
Format on Save
inpeggy.code-workspace
too.