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 multiple TypeScript projects with shared library #29419

Closed
k8w opened this issue Jun 26, 2017 · 1 comment
Closed

Support multiple TypeScript projects with shared library #29419

k8w opened this issue Jun 26, 2017 · 1 comment
Assignees
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code) typescript Typescript support issues

Comments

@k8w
Copy link

k8w commented Jun 26, 2017

  • VSCode Version: 1.13.1
  • OS Version: Win7

Steps to Reproduce:

Folder structure:

|- frontend
    |- typings
    |- tsconfig.json
|- backend
    |- typings
    |- tsconfig.json
|- shared
    |- xxx.ts
    |- ...

frontend & backend are 2 typescript project, with some shared code put into share folder.
Both frontend and backend have their own typings folder.
There is no tsconfig.json in shared folder.

Problem

  1. When I open file in shared folder, it always throw some error.
    Some is because there is no tsconfig.json in shared, some is because shared cannot find proper typings (they are in frontend and backend).

  2. Compile frontend and backend will be successful

  3. This problem may be because vscode regard shared as a individual project, and will find its tsconfig.json and typings seperately.

Suggestion

  1. Support mark a folder as shared folder, do not show error in that folder.
  2. Error in that folder should be threw by frontend/backend watch task.
  3. Support run multiple tasks parallelly (so that can run frontend/backend watch task at the same time)
  4. Or maybe give a option that only use tsserver to show auto-complete hint , but not show error in error panel.
@vscodebot vscodebot bot added bug Issue identified by VS Code Team member as probable bug typescript Typescript support issues labels Jun 26, 2017
@mjbvz mjbvz added *question Issue represents a question, should be posted to StackOverflow (VS Code) and removed bug Issue identified by VS Code Team member as probable bug labels Jun 27, 2017
@mjbvz
Copy link
Collaborator

mjbvz commented Sep 5, 2017

Closing this question out. I believe questions on how to structure the project would be better for https://stackoverflow.com or for TS directly

@mjbvz mjbvz closed this as completed Sep 5, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code) typescript Typescript support issues
Projects
None yet
Development

No branches or pull requests

2 participants