microsoft / microsoft/TypeScript-Sublime-Plugin

Support `compileOnSave`

Open
#516 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.7k
Forks
236
Avg merge
21d 13h
Merged PRs (30d)
1

Description

https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#compileonsave

Adding:

def on_post_save(self, view):
    view.window().run_command('build')

... to the end of typescript/listeners/listeners.py works perfectly, but I don't know how to read tsconfig.json to run the build command dependent on the compileOnSave setting.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in typescript/listeners/listeners.py and review the existing post-save listener alongside the linked TypeScript compileOnSave documentation. Determine how the plugin should find and read tsconfig.json, then verify that the build command runs only when compileOnSave is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.