Commit Graph

220 Commits

Author SHA1 Message Date
Matt Bierner
46db7d9d3b tagCompletion -> tagClosing 2018-07-11 14:19:34 -07:00
Matt Bierner
bd3beec042 Extract getInsertionPositions 2018-07-11 14:19:34 -07:00
Matt Bierner
6c99578088 Hook up CancellationToken 2018-07-11 14:19:34 -07:00
Matt Bierner
97734e3a39 Reduce nested statements 2018-07-11 14:19:34 -07:00
Matt Bierner
2e8e41c06d Prefix private members with _ 2018-07-11 14:19:34 -07:00
Matt Bierner
1dcb248d30 Clear auto closing tag timeout
This should already be effectively canceled but no reason to fire it
2018-07-11 14:19:33 -07:00
Matt Bierner
860138b2b2 Remove normalizePath from BufferSyncSupport 2018-07-10 17:13:55 -07:00
Matt Bierner
f5e7c01028 Use resource map for pending diagnostics 2018-07-10 17:13:55 -07:00
Matt Bierner
84100f37c6 Request diagnostics on synced buffer 2018-07-10 17:13:55 -07:00
Matt Bierner
2adafad5ae Extract duplicated triggerDiagnostics code to function 2018-07-10 17:13:55 -07:00
Matt Bierner
5a6e122a58 Extract PendingDiagnostics to own class 2018-07-10 17:13:55 -07:00
Matt Bierner
bc627a5a83 Remove duplicate code for creating FormattingRequestArgs 2018-07-10 17:13:55 -07:00
Matt Bierner
585c650411 Remove cyle around requestDiagnostic 2018-07-10 17:13:54 -07:00
Matt Bierner
d68d22f961 Pass in method directly instead of lambda for some events 2018-07-10 15:03:52 -07:00
Matt Bierner
0178fc2824 Make sure we clean up config change registration 2018-07-10 15:03:52 -07:00
Matt Bierner
cbbb21c765 Don't try closing for cases like <div>> when user has just typed last > 2018-07-10 15:03:51 -07:00
Matt Bierner
5f8b9ab083 Remove active editor listener 2018-07-10 15:03:51 -07:00
Matt Bierner
473d8887b2 Reuse isTypeScriptDocument 2018-07-10 15:03:51 -07:00
Matt Bierner
a92506639f Don't make extra findFiles call on TS 3.0
WIth TS 3.0, we don't need to pass a js or ts file for the project
2018-07-10 15:03:51 -07:00
Matt Bierner
931ec139f1 Don't check nav tree for directory rename
Fixes https://github.com/Microsoft/TypeScript/issues/25466
2018-07-10 11:40:28 -07:00
Matt Bierner
63c7c90ba5 Gate workaround for #52967 to TS 2.9 2018-07-10 11:40:28 -07:00
Geoffrey
2ea84289f0 Permit to update path when export(s) keyword in file (#53964) 2018-07-10 11:16:55 -07:00
Matt Bierner
adfa9ce977 Add initial support for auto close jsx tags
Fixes #34307
2018-07-09 19:00:10 -07:00
Matt Bierner
dc137ce28f Move isTypeScriptDocument to languageModes 2018-07-09 19:00:10 -07:00
Matt Bierner
3ea1e53bbd Update to TS 3.0 insiders 2018-07-09 09:34:24 -07:00
Matt Bierner
3d35801127 Make sure quickSuggestionsForPaths is respected on TS 2.9+
Fixes #53683
2018-07-06 14:16:41 -07:00
coolreader18
8ab9119cf6 Fix a double dash in the previewer if an @param jsdoc tag has a hyphen after the param name (#53365)
* Fix a double dash if the @param has a hyphen

* Moved into the other regex

* Add test for ignoring hypen after @param

* Fixed test and moved to previewer.test.ts
2018-07-06 12:53:44 -07:00
Dirk Baeumer
21991b4912 Move to latest vscode-nls for corrupted cache support 2018-07-03 16:12:52 +02:00
Matt Bierner
1ee1759e02 Adding workaround for TS trying to update paths on file without exports
Fixes #52967
2018-06-29 17:30:53 -07:00
Matt Bierner
2f0b9394bc Add telemetry on TS refactoring usage
Needed to understand which type of refactorings are most used so we can decided which bugs to prioritize and which new refactoring areas to invest in
2018-06-29 17:13:49 -07:00
Matt Bierner
50cc3d6121 Never edit files under node_modules on update paths
Workaround for #52977
2018-06-26 11:08:09 -07:00
Matt Bierner
8829182e4a Never apply an update path edit that tries doing something with node_modules
Root cause is https://github.com/Microsoft/TypeScript/issues/24914

Fixes #52675
2018-06-25 16:26:03 -07:00
Dániel Tar
6ae1cc7720 Fix a replace gone wrong in typescript-language-features/package.nls (#52704) 2018-06-25 10:54:49 -07:00
Matt Bierner
0532c31e4c Definition link API (#52230)
* Definition link

Add a new `DefinitionLink` type. This type allows definition providers to return additional metadata about a definition, such as the defining span.

Hook up this new provider for typescript

This PR replaces #48001

* Correctly mark field optional

* Small code fixes

- Use lift
- Remove unused param

* Adding documentation
2018-06-20 11:52:47 -07:00
Matt Bierner
2c0c1f3d66 Use ignoreIfExists for creating new files during refactorings 2018-06-20 11:10:01 -07:00
Matt Bierner
7c96862d37 Use workspace edit to create new file on refactor
#10659
2018-06-19 17:24:40 -07:00
Matt Bierner
e4fe04ad5b Treat comma as a commit character in js / ts
Fixes #52351
2018-06-19 11:51:18 -07:00
Matt Bierner
0e361509ef Fix completion characters inside of js function call
Fixes #52350
2018-06-19 11:51:18 -07:00
Matt Bierner
f71c378488 Make sure we trigger js/ts completions on / 2018-06-19 11:06:35 -07:00
Matt Bierner
4d3a8ae210 Add tag closing completions
Part of #34307. Add manual completions for closing jsx tags. Requires TS 3.0
2018-06-19 11:06:35 -07:00
Johannes Rieken
10192366eb move onDidRename to filesystem-events things, #43768 2018-06-19 15:17:54 +02:00
Matt Bierner
fae153401b Clairify ts version requirements
Fixes #50806
2018-06-18 15:51:44 -07:00
Matt Bierner
fb6be6e2f0 Remove periods after required version numbers 2018-06-18 15:51:44 -07:00
Matt Bierner
49b483a51d Remove version notes for TS versions < 2.3.0
These older versions are rarely used as the workspace version by VS Code. Removing notes around these given the very small number of users impacted by these restrictions
2018-06-18 15:51:44 -07:00
Matt Bierner
b5b211f211 Move constant to private static 2018-06-18 15:51:43 -07:00
Matt Bierner
423cd0e5e0 More robust workaround for path preservation 2018-06-18 11:22:34 -07:00
Matt Bierner
08bfe78581 More restrictive regex for rename 2018-06-18 11:22:34 -07:00
Matt Bierner
2e5253d493 Move diagnostic tags api out of proposed
Also rename `customTags` to `tags`

Fixes #51104
2018-06-18 10:11:19 -07:00
Johannes Rieken
3595e26f3c adopt CompletionItem#preselect in TypeScript #35551 2018-06-18 16:15:57 +02:00
Johannes Rieken
b2cbf270ad adjust return type signature, #34968 2018-06-18 15:55:43 +02:00