Commit Graph

674 Commits

Author SHA1 Message Date
Matt Bierner
1c1e9a72d8 Don't force creation of serviceClientHost from ManagedFileContextManager eagerly 2017-11-30 17:49:55 -08:00
Matt Bierner
bcdeb87b29 Introduce basic lazy type to encapsulate the idea of a lazy value 2017-11-30 17:49:55 -08:00
Matt Bierner
527cfa42e7 Use const instead of let for loop 2017-11-30 16:40:07 -08:00
Matt Bierner
7c13230aff Setup basic typescript.isManagedFile context 2017-11-30 16:37:23 -08:00
Matt Bierner
04c4491a43 Move standard TS commands to own file 2017-11-30 15:58:10 -08:00
Matt Bierner
9424a54e58 💄 2017-11-30 15:55:23 -08:00
Matt Bierner
73d4d4cf4a Extract a few functions in TS activate 2017-11-30 15:53:10 -08:00
Matt Bierner
f472a2e51d Move TS/JS language descriptions to own file 2017-11-30 15:48:10 -08:00
Matt Bierner
9761315d6e Fix TS version status not showing up when you first open VS Code 2017-11-30 15:45:46 -08:00
Matt Bierner
229ab747e1 Move TS extension activate to own file 2017-11-30 15:38:40 -08:00
Matt Bierner
8f0f142a2c Don't show ts status bar entry for non file: uri schemes 2017-11-30 11:25:03 -08:00
Matt Bierner
e884f5184a Do not fill in optional/rest paremters for TS Snippets for function calls
Fixes #38318
2017-11-30 11:25:03 -08:00
Matt Bierner
8cc2bef3c9 Simplify snippetForFunctionCall 2017-11-30 11:25:03 -08:00
Matt Bierner
edf5eba25b Convert isValidFunctionCompletionContext to use async 2017-11-30 11:25:03 -08:00
Matt Bierner
c628188d10 Make sure TS service client host also listens to onDidChangeConfiguration 2017-11-29 13:49:36 -08:00
Matt Bierner
ae28e56138 Don't access config API for every TS/JS marker
Part of #39329
2017-11-29 13:47:54 -08:00
Matt Bierner
47b1447a8a Try using tsc path next to tsconfig for ts build tasks
Fixes #30754
2017-11-27 14:29:06 -08:00
Matt Bierner
952d76ee3c Put auto import label first in suggestions
Fixes #38102
2017-11-27 11:11:51 -08:00
Matt Bierner
d049d540d5 Set jsx preserve in generate ts/jsconfig.json. Fixes #39202 2017-11-27 10:22:40 -08:00
Matt Bierner
c08399a4f1 Also treat default as code in jsdocs 2017-11-27 10:22:40 -08:00
Matt Bierner
4edc012cf7 Don't send refactor requests when there is no selection 2017-11-20 19:42:44 -08:00
Matt Bierner
7c6e4a07fc Add timeout for jsdoc navtree request 2017-11-20 18:03:01 -08:00
Matt Bierner
3200d2afa6 Update a few interfaces for TS 2.6.2 2017-11-20 15:53:17 -08:00
Matt Bierner
946b275e0a Restrict where jsdoc completion is shown
Fixes #33948
2017-11-20 14:34:32 -08:00
Matt Bierner
24423dd529 Treat jsdoc @example tag body as code
Fixes #30062
2017-11-16 18:16:10 -08:00
Matt Bierner
f51db4abfc Move previewer into utils 2017-11-16 17:46:54 -08:00
Matt Bierner
6f544729dc Clean up TypeScriptReferenceSupport
- Use await
- Use for of
2017-11-16 16:23:29 -08:00
Matt Bierner
63b103c604 Switch a few more TS providers to async 2017-11-16 16:23:29 -08:00
Matt Bierner
f3008845ef Show quick pick when ts returns more than one code action on a suggestion 2017-11-16 13:01:51 -08:00
Matt Bierner
e2cb0ac35e Fix jsDoc setting resource warning 2017-11-14 10:35:53 -08:00
Matt Bierner
33b26ff4da Rename codeActionProvider to quickFixProvider 2017-11-10 13:10:16 -08:00
Matt Bierner
006b379de2 Use current selection instead of range for refactoring
Fixes #34481
2017-11-10 12:57:23 -08:00
Matt Bierner
8e1bf19f3d Fix refactor description
Fixes #38083
2017-11-10 10:35:36 -08:00
Matt Bierner
185f110f2d Use async for findLanguage 2017-11-10 10:35:36 -08:00
Matt Bierner
4f5491cce4 Mark more fields as readonly 2017-11-10 10:35:36 -08:00
Matt Bierner
0070dd13f7 Don't create duplicate typingsStatus 2017-11-10 10:35:36 -08:00
Matt Bierner
061f60ee25 Mark a few more fields as readonly 2017-11-10 10:35:36 -08:00
Matt Bierner
5f4d9943aa Use initilizers for some wire protocol constructs 2017-11-10 10:35:36 -08:00
Matt Bierner
dbe39745d3 Add jsx-tags to languaegModeIds 2017-11-10 10:35:36 -08:00
Matt Bierner
a7e5a79561 Use Uri to identify file in Diagnostics manager 2017-11-10 10:35:36 -08:00
Matt Bierner
9da3b7e3c9 Clean up validation update logic 2017-11-10 10:35:36 -08:00
Matt Bierner
4ac962eb86 Move language configurations to own file 2017-11-10 10:35:35 -08:00
Matt Bierner
be88547c66 Prototyping new CodeAction API (#36316)
* Add CodeAction Type

Adds skeleton on a new CodeActionType and allows codeActionProvider to return either `Command`s or `CodeAction`s

Move proposed CodeAction API to proposed and try using it in TS

Split CodeAction into quickfix and refactoring classes

Update proposed interface

Update for new API

Adding basic docs

* Support workspace edits and text edits in codeactions

* Remove placeholders

* Resolving conflicts and making PR suggested changes

* Fix quick fix test

* Revert change to only use `CodeAction` instead of `CodeAction | Command` in modes since this will break `vscode.executeCodeActionProvider`
2017-11-08 16:07:34 -08:00
Matt Bierner
4b6df2f839 Encapsulate TS/JS diagnostics in class 2017-11-08 09:45:28 -08:00
Matt Bierner
d319d356bd Don't register a new TypeScriptWorkspaceSymbolProvider for each mode, only for each language 2017-11-07 16:48:38 -08:00
Matt Bierner
888431fce3 Don't register TS/JS code lens providers twice 2017-11-07 16:43:58 -08:00
Matt Bierner
49e2d76264 Restore having both javascript.goToProjectConfig and typescript.goToProjectConfig 2017-11-07 16:35:04 -08:00
Matt Bierner
5d143998e8 Remove some blank lines 2017-11-07 16:29:51 -08:00
Matt Bierner
1b882bcbaa Move remaining command to use command classes 2017-11-07 16:29:51 -08:00
Matt Bierner
030658c1d1 Use command manager for refactoring 2017-11-07 16:29:51 -08:00