microsoft / microsoft/TypeScript-Sublime-Plugin

Syntax specific settings from `TypeScript.sublime-settings` should override built-in `Preferences.sublime-settings`

Open
#301 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Context:

Sublime Text 3 build 3083, Mac OS X 10.9.5

  1. Install TypeScript-Sublime-Plugin via Package Control or source
  2. Open up a TypeScript file, ensure that TypeScript is the active syntax
  3. Open TypeScript.sublime-settings by navigating the menu bar Sublime Text -> Preferences -> Settings - More -> Syntax Specific - User
  4. Insert the following: { "typescript_auto_format": false }
  5. Restart ST3
  6. Open TypeScript file, type var x=1
  7. Type ;

Expected behavior: I end up with var x=1;

Actual behavior: I end up with var x = 1;

I shouldn't have to touch the package's own Preferences.sublime-settings file. That file gets overwritten on subsequent installs, so it's not a good place for my personal user preferences.

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

Reproduce the behavior using TypeScript.sublime-settings and the package's Preferences.sublime-settings, following the steps in the issue. Then trace how the plugin loads syntax-specific and built-in settings, and verify that a user value for typescript_auto_format takes precedence without editing the package file.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.