-
Notifications
You must be signed in to change notification settings - Fork 237
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
Conversation
@@ -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') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double quotes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@mhegazy @DanielRosenwasser @billti further comments? |
👍 |
Support customized typescript tsdk location
Now it uses the same setting name
typescript_tsdk
with VSCode.Fix #255