★ wanayoo — archive 1999 https://github.com/microsoft/TypeScript-Sublime-Plugin/pull/620Nouvelle recherche | Portail wanayoo
Skip to content
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

Support type completion over JavaScript files #620

Merged
merged 11 commits into from Dec 13, 2018

Conversation

@idiotWu
Copy link
Contributor

@idiotWu idiotWu commented Sep 16, 2017 •

This PR is based on #570, with several fixes and improvements. Apologize if I offended anyone, but I couldn't see any update in #570 for nearly one year 😢.

This implement tries to behave as closely as possible to vscode by:

  1. setting compilerOptionsForInferredProjects for file scope compilers,
  2. excluding items with kind: "warning" from completion list.

Screenshot:
image

@idiotWu idiotWu force-pushed the idiotWu:feat-support-js branch from 6fab6a2 to 9796536 Sep 16, 2017
@msftclas msftclas added cla-signed and removed cla-required labels Sep 16, 2017
@msftgits msftgits removed the cla-signed label Sep 26, 2017
@microsoft microsoft deleted a comment from msftclas Sep 26, 2017
@microsoft microsoft deleted a comment from msftclas Sep 26, 2017
""" Add full type support for compilers running in file scope mode """
compiler_options = {
"target": "ESNext",
"module": "CommonJS",

This comment has been minimized.

@DanielRosenwasser

DanielRosenwasser Jan 26, 2018
Member

Is there a reason you had to change this to moduleResolution?

@@ -38,6 +38,25 @@ def configure(self, host_info="Sublime Text", file=None, format_options=None):
if self.__worker_comm.started():
self.__worker_comm.postCmd(json_str)

self.set_compiler_options()

def set_compiler_options(self):

This comment has been minimized.

@DanielRosenwasser

DanielRosenwasser Jan 26, 2018
Member

set_inferred_project_compiler_options

@a-software
Copy link

@a-software a-software commented Jun 5, 2018

So the name of the function is preventing this from being merged before two-year anniversary, or there is some dark and deep conspiracy going on?

idiotWu added 6 commits Jun 5, 2018
"set_inferred_project_compiler_options"
@idiotWu
Copy link
Contributor Author

@idiotWu idiotWu commented Jun 5, 2018

@DanielRosenwasser @a-software sorry for the late. I just forgot this pull request 🙇.

I've updated the inferred compiler option so that it only contains the minimized options.

@ivanbanov
Copy link

@ivanbanov ivanbanov commented Sep 21, 2018

+1

@ryanolsonx
Copy link

@ryanolsonx ryanolsonx commented Sep 25, 2018

Can we get this merged?

@DanielRosenwasser DanielRosenwasser merged commit 7cd4b43 into microsoft:master Dec 13, 2018
1 check passed
1 check passed
license/cla All CLA requirements met.
Details
@DanielRosenwasser
Copy link
Member

@DanielRosenwasser DanielRosenwasser commented Dec 13, 2018 •

Thank you @idiotWu! Thank you @zhengbli!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

7 participants