Johannes Rieken
099d99b76c
wip
2018-08-24 14:54:50 +02:00
Matt Bierner
ad68ff316c
Remove std-fork
2018-08-21 17:05:46 +02:00
Johannes Rieken
27c72d4ea4
remove logDirectory, #43275
2018-08-20 15:42:09 +02:00
Matt Bierner
7c6c7ac5fe
Allow extends to work without json suffix
...
Fixes #16905
2018-08-02 10:36:07 +02:00
Matt Bierner
3086c88d21
Don't try closing tags when you type > after another >
2018-07-30 15:57:41 +01:00
Matt Bierner
eb0688ed63
Remove extra check
...
This is already handled by using a resource map
2018-07-27 14:21:18 -07:00
Matt Bierner
6ffbde1f4a
Don't lowercase all file paths on case insensitive file-sysystems for geterr
...
Instead, we should always use the casing of the first file we see with a given path
2018-07-27 14:00:52 -07:00
Matt Bierner
8e35b4272b
Disable interuptGetErr until next release. Needs more testing
2018-07-27 13:22:27 -07:00
Matt Bierner
0edee5d228
Support clickable folder projects refences
...
A project reference may point either to a tsconfig or to a folder containing a `tsconfig.json` file
2018-07-27 11:52:46 -07:00
Matt Bierner
d96cf918b7
Try to interupt getErr request for user opetions
2018-07-26 18:34:18 -07:00
Matt Bierner
01989b1c67
Set global user preferences on updatePaths
...
https://github.com/Microsoft/TypeScript/issues/25739
2018-07-26 17:36:11 -07:00
Matt Bierner
21bb402655
Fix projectInfo call signature for TS 3.0
2018-07-26 17:36:11 -07:00
Matt Bierner
e49f6543a6
Reduce duplication and improve errors around TypeScript execute types
2018-07-26 17:36:11 -07:00
Matt Bierner
52db14c9e6
Sort definitions
2018-07-26 17:36:11 -07:00
Matt Bierner
74b5247504
Use more explicit types for ts server execute
...
- Only allow known strings to be used as commands
- Simplify overloading. Introduce new `executeWithoutWaitingForResponse` function for calls that are fire and forget
- Always require a token for execture calls
2018-07-26 17:36:11 -07:00
Matt Bierner
633e386b18
Remove extra conditional
2018-07-26 16:06:05 -07:00
Matt Bierner
5e40bd7df9
Expand js/ts document symbols to have entries for each span
...
Fixes #54855
2018-07-26 16:01:34 -07:00
Matt Bierner
341013c0ef
Log warning when returned code action will be dropped ( #55090 )
...
* Add extension logging when returned code action will be dropped
Fixes #54803
Adds a loggin warning when a code action provider returns code actions that will be dropped. Warn in the the following cases:
- A provider returns code actions (not commands)
- And a specific code action type is requested.
- And the returned code actions either don't set kind or are of the wrong kind
* Use log service
* Include extension id in warning
2018-07-26 15:14:16 -07:00
Matt Bierner
e8b1ee0b4d
Use more standard scheme across providers for getting TS response body
...
- Avoids extra checks when response cannot be null
2018-07-25 18:50:16 -07:00
Matt Bierner
a1af04f571
Prefer namespace imports for 'vscode'
2018-07-25 18:34:12 -07:00
Matt Bierner
410509137b
Add base Disposable class to help manage disposables
2018-07-25 18:17:56 -07:00
Matt Bierner
f97c743507
Use VersionDependentRegistration for update paths on rename
...
Avoids registering class on unsupported ts versions
2018-07-25 17:56:08 -07:00
Matt Bierner
d5855b35b2
Cleanup
...
- Remove noop optional method
- Use double quotes for strings
- Mark fields readonly
2018-07-25 17:51:05 -07:00
Matt Bierner
42e0c43645
Use resource map for storing formatting options
...
Try to normalize file cases on case-insensitive file systems
2018-07-25 17:47:06 -07:00
Matt Bierner
edc6b2acdd
Always invoke quick fix command
...
Make sure we always invoke the applyCodeActionCommand. This is needed for telemetry to be sent properly
2018-07-25 17:29:35 -07:00
Matt Bierner
9e6a525723
Fixing fix all not applying correct commands on edit
2018-07-25 17:27:03 -07:00
Matt Bierner
690744c3c6
Only return a single all code action per quick fix fixId
...
Fixes #55065
2018-07-25 17:19:33 -07:00
Matt Bierner
ccf9f4badd
Use VersionDependentRegistration
2018-07-25 17:19:33 -07:00
Matt Bierner
5347a06a46
Don't convert diagnostic set to array
2018-07-25 17:19:33 -07:00
Matt Bierner
8531a230e5
Use flatten in a few places to improve readability
2018-07-20 17:58:43 -07:00
Matt Bierner
f500f659e6
Create links for files section in tsconfig
2018-07-20 17:52:01 -07:00
Matt Bierner
91d55c965a
Make sure we disable suggestions properly
2018-07-20 14:32:21 -07:00
Matt Bierner
9fb3229377
Use single diagnostic collection for js and ts
...
Refactors the ts DiagnosticManager to be shared between language providers. To do this:
- Make sure we always maintain a complete list of diagnostics in the extension. But only update the vscode.DiagnosticCollection with the ones we care about
- Add the concept of a diagnostic language. This is needed now that we only have a single collection. Use the diagnostic language to determine which diagnostics to filter out using `typescript.validate` and `javascript.validate`
- Add a diagnosticSetting class to track settings for different languages (js and ts)
Fixes #54359
2018-07-20 14:16:28 -07:00
Matt Bierner
44cd521ced
Finalize definition link ( #54424 )
...
Finalize the definition link api
- Gives fields more explicit names (target and origin)
- Moves api to vscode.d.ts
- Makes other definition providers (such as type definition provider and implementation provider) also return definition links
Fixes #54101
2018-07-18 16:32:27 -07:00
Matt Bierner
533c6deb79
Move cancellation files to own dir
...
Fixes #53423
2018-07-18 14:28:55 -07:00
Matt Bierner
b9bc23bb58
Only exec server call in try catch
2018-07-18 14:28:54 -07:00
Matt Bierner
3331d725e5
Use toFileLocationRequestArgs
2018-07-18 14:28:54 -07:00
Matt Bierner
708b16a96c
Remove unused property
2018-07-18 14:28:54 -07:00
Matt Bierner
6c2818d42e
Clean up provideDocumentSymbols
...
- Returned undefined instead of empty array
- Only execute server call in try catch
2018-07-18 14:28:54 -07:00
Matt Bierner
4c003dbbc1
Remove old navtree call
...
This API has been replaced with navbar. The code related to navbar is not being tested and a very small number of users are using < 2.1 in their workspaces
2018-07-18 14:28:54 -07:00
Matt Bierner
966bec8650
Reducing scope of try catch to just exec
...
We want to be alerted if an exception is thrown outside of execute
2018-07-18 14:28:54 -07:00
Matt Bierner
b6e9dc253b
Fix visual match for string types
...
Fixes #53962
2018-07-16 16:46:08 -07:00
Matt Bierner
f5c36f4bb8
Add telemetry on organize imports
...
This is needed to understand if users are running this action and how we can improve discoverablity
2018-07-16 13:00:46 -07:00
Matt Bierner
cbcafcc284
Don't enable commit characters when isNewIdentifierLocation is true
...
Fixes #54386
2018-07-16 13:00:46 -07:00
Matt Bierner
eaa535ff3e
Use properties for commitCharacters
2018-07-13 11:42:58 -07:00
Matt Bierner
b179deefe5
Only use isNewIdentifierLocation to disable commit characers instead of all suggestions
...
Fixes #54267
2018-07-13 09:17:14 -07:00
Matt Bierner
b64ff63750
Remove extra await
2018-07-13 09:17:14 -07:00
Matt Bierner
ba9c869b6a
Organize all imports in ts extension
2018-07-12 16:32:18 -07:00
Matt Bierner
0986ab3633
Move resource map to utils
2018-07-12 16:30:34 -07:00
Matt Bierner
dc08cbdfa9
Also support regular json files for tsconfig document links
2018-07-12 16:25:14 -07:00