Skip to content

Support customized typescript tsdk location #433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 5, 2016

Conversation

zhengbli
Copy link
Contributor

@zhengbli zhengbli commented Feb 1, 2016

Now it uses the same setting name typescript_tsdk with VSCode.

Fix #255

@@ -49,11 +50,16 @@ def initialize(self):
# retrieve the path to tsserver.js
# first see if user set the path to the file
settings = sublime.load_settings('Preferences.sublime-settings')
proc_file = settings.get('typescript_proc_file')
if not proc_file:
tsdk_location = settings.get('typescript_tsdk')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double quotes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@mhegazy
Copy link
Contributor

mhegazy commented Feb 1, 2016

can you please update the steps in https://github.com/Microsoft/TypeScript/wiki/Nightly-drops#sublime-text after this is merged in.

@@ -34,7 +34,9 @@
def get_node_path():
return _node_path

TSC_PATH = os.path.join(PLUGIN_DIR, "tsserver", "tsc.js")
_tsc_path = None
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a comment above that says where _node_path gets initialized. Can you add a similar one here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@zhengbli
Copy link
Contributor Author

zhengbli commented Feb 1, 2016

@mhegazy @DanielRosenwasser @billti further comments?

@DanielRosenwasser
Copy link
Member

👍

zhengbli added a commit that referenced this pull request Feb 5, 2016
Support customized typescript tsdk location
@zhengbli zhengbli merged commit 90f3d31 into microsoft:master Feb 5, 2016
@zhengbli zhengbli deleted the supportForOtherTsdSdk branch February 5, 2016 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants