This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
Fix code that should open new files in create-rule
script
#820
Labels
Difficulty: Easy
Someone with little to no experience in TSLint should be able to send a pull request for this issue.
Domain: Tooling
Repository tasks around improving source tooling.
Good First Issue 🙌
Howdy, neighbor!
Status: Accepting PRs
Feature request
Is your feature request that we implement a new rule?
No
Is your feature request related to a problem? Please describe.
As was mentioned in #817 -
create-rule
doesn't open newly created files becauseVSCODE_CWD
in no longer available in terminals opened from VS Code. Instead it is better to checkTERM_PROGRAM
which was added for this purpose (I think) microsoft/vscode@9c82ae8Describe the solution you'd like
VSCODE_CWD
with check ifTERM_PROGRAM
isvscode
instead.-g
(or--goto
) to call VS Code with list of files, instead of separate calls that are much slower (on my machine)README.md
to the first argument (this is the only way to make VS Code to respect:line
)Describe alternatives you've considered
Remove code that opened files, but it doesn't looks great if it can be fixed.
Additional context
No.
The text was updated successfully, but these errors were encountered: