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

Add TSC Task Provider #27093

Merged
merged 5 commits into from
May 25, 2017
Merged

Add TSC Task Provider #27093

merged 5 commits into from
May 25, 2017

Conversation

mjbvz
Copy link
Collaborator

@mjbvz mjbvz commented May 22, 2017

Fixes #26079

Adds a task provider for building typescript projects.

@mjbvz mjbvz requested a review from dbaeumer May 22, 2017 21:13
@mention-bot
Copy link

@mjbvz, thanks for your PR! By analyzing the history of the files in this pull request, we identified @dbaeumer and @egamma to be potential reviewers.

@@ -7,6 +7,7 @@
"license": "MIT",
"publisher": "vscode",
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
"enableProposedApi": true,
Copy link
Member

Choose a reason for hiding this comment

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

No need to use proposed API here anymore. I moved the API to vscode.d.ts

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm still seeing:

screen shot 2017-05-23 at 6 51 21 pm

Was this a recent change?

Copy link
Member

Choose a reason for hiding this comment

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

My fault. I moved the API but I need to remove a wrapper function. Will do an push.

@@ -0,0 +1,110 @@
/*---------------------------------------------------------------------------------------------
Copy link
Member

Choose a reason for hiding this comment

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

I like the idea of inferring the tsconfig.json to use from the open active TS file. However if no file is open I think we should still provide a reasonable command and not just look into the workspace root. We should search for all tsconfig.json and return all of them. If a build is trigger the task runner will run all of them

Regarding activation: I have a similar problem in ESLint where I need to active the plugin to simply being able to listen to config changes. This is all I do in activate. In addition I listen to open event and if a JS files opens I start the ESLint server by hand. So basically I have an activate and a realActivate. We could do the same for TS and start the tsserver when we get a open event for a TS file in the listener registered in activate.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks. I've updated the activation as you described and it seems to work well. Will take a look at scanning for tsconfig.json outside of the root in a follow up PR

@mjbvz mjbvz force-pushed the tsc-taskprovider branch from 4ca2085 to 55f8da5 Compare May 25, 2017 21:17
@mjbvz mjbvz force-pushed the tsc-taskprovider branch from 55f8da5 to 3c97460 Compare May 25, 2017 22:00
@mjbvz mjbvz merged commit 6d00bd9 into microsoft:master May 25, 2017
dbaeumer pushed a commit that referenced this pull request May 26, 2017
* extract standardLanguageDescriptions to constant

* Remove client variable

* Move VersionStatus into a class

* Add TSC Task Provider

Fixes #26079

Adds a task provider for building typescript projects.

* Make ts loading lazy
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Contribute tasks for building TypeScript
4 participants