Matt Bierner
5be9e9e7ee
Organize imports for js and ts ( #45237 )
...
* Organize imports for js and ts
Adds a new 'Organize Imports' command for js and ts. This command is only availible on TS 2.8+. We'll hold off on merging this PR until we pick up a TS 2.8 insiders build
Fixes #45108
* Add keybinding for organize imports
2018-03-19 21:30:01 -07:00
Matt Bierner
ca1d4ad266
Use isInString for highlights
2018-03-19 18:21:21 -07:00
Matt Bierner
f15bf0e76e
locations cannot be null
2018-03-19 18:09:42 -07:00
Matt Bierner
62211f51e6
asUrl cannot return null
2018-03-19 18:05:28 -07:00
Matt Bierner
7ab79ffeff
Extract getUri
2018-03-19 18:01:00 -07:00
Matt Bierner
24d305eaa5
Remove old commented out compile on save TS api
2018-03-19 18:01:00 -07:00
Matt Bierner
e84b87c590
Mark client property readonly
2018-03-19 18:01:00 -07:00
Matt Bierner
cba8cb96bf
Add location converter
2018-03-19 18:01:00 -07:00
Matt Bierner
681b0cf103
💄
2018-03-19 18:01:00 -07:00
Matt Bierner
a42fba45a8
Extract toWorkspaceEdit
2018-03-19 18:01:00 -07:00
Matt Bierner
0ea3549a3f
Remove duplicate code edit converter
2018-03-19 18:01:00 -07:00
Matt Bierner
d9f5db3a07
Use consistent name for workspaceedit converters
2018-03-19 17:27:57 -07:00
Matt Bierner
505cddc976
Move workspace edits into type converters
2018-03-19 17:26:26 -07:00
Matt Bierner
8427e92345
Move remaining basic type converters into namespaces
2018-03-19 17:23:13 -07:00
Matt Bierner
9201da12dc
Start moving typeConverters into namespaces
2018-03-19 17:19:25 -07:00
Matt Bierner
c2d2b64320
Rename Convert to typeConverters
2018-03-19 17:12:39 -07:00
Matt Bierner
e769928919
Use additionalTextEdits for edits in the current file
...
Fixes #42859
2018-03-19 17:02:19 -07:00
Matt Bierner
e96cd3b858
Simplify pendingDiagnostics sort
2018-03-19 14:58:13 -07:00
Matt Bierner
e822e655b5
Move logDirectory to ExtensionContext ( #45922 )
...
* Move the logDirectory to extensionContext
Moves the proposed `logDirectory` to `ExtensionContext` and make it synchronous
* Use string for path instead of URI
2018-03-16 14:07:09 -07:00
Matt Bierner
3f99a49f1d
Mark fields readonly
2018-03-15 00:47:32 -07:00
Matt Bierner
2678fffd7f
Fix optional insert text completions
...
Fixes https://github.com/Microsoft/TypeScript/issues/22125
2018-03-13 15:21:26 -07:00
Matt Bierner
dec9d8f05c
Remove any cast since we now have proper types for this
2018-03-13 15:18:16 -07:00
Martin Aeschlimann
c65b881d16
[folding] add maxRanges to folding provider request
2018-03-13 17:49:09 +01:00
Dirk Baeumer
2da853a362
Fixes 36588: TypeScript build task fails when path to tsconfig.json file has spaces
2018-03-12 12:34:49 +01:00
Matt Bierner
b26862c89b
Fix jsx closing tag completions
...
Fixes #45252
2018-03-09 13:33:26 -08:00
Matt Bierner
f0be7824d5
Use _ prefix for private
2018-03-09 11:15:11 -08:00
Matt Bierner
b21e86a9a1
reader onerror is always supplied
2018-03-09 11:15:11 -08:00
Matt Bierner
cadaf1f85f
Don't have DiagnosticsManager dependecy on client
2018-03-09 11:15:11 -08:00
Matt Bierner
edc8a053cf
Use await
2018-03-09 11:15:11 -08:00
Matt Bierner
d6caa2d4d0
Extract SyncedBuffe mapping to own class
2018-03-09 11:15:11 -08:00
Matt Bierner
1ba9d83f25
Use uris instead of string paths in more locations
...
String paths should only be used when talking to the ts server
2018-03-08 17:01:34 -08:00
Matt Bierner
516381065d
Moving syntax and semantic event null checks into dispatcher
2018-03-08 17:01:34 -08:00
Matt Bierner
974d1084cd
Make logging methods private
2018-03-08 17:01:34 -08:00
Matt Bierner
e7672347fa
Remove ITypeScriptServiceClientHost
...
Better decouple host from client
2018-03-08 17:01:34 -08:00
Matt Bierner
a3562fa165
Use events to tell host about syntax diagnostics
...
Better decouple the language host from the language clients by using events instead of direct calls
2018-03-08 17:01:34 -08:00
Matt Bierner
ba44dc249a
Extract duplicated disposeall code
2018-03-08 17:01:34 -08:00
Matt Bierner
e7d3746a56
Use memorize for channel
2018-03-08 17:01:34 -08:00
Matt Bierner
3ec9d1485a
For let -> For const
2018-03-08 17:01:34 -08:00
Matt Bierner
0c8e31f14a
Use memoize for documentSelector
2018-03-08 15:14:27 -08:00
kieferrm
ce02d1d7f5
change classification of tsserver.exitWithCode
2018-02-27 10:35:39 -08:00
Martin Aeschlimann
44a45f8bad
typescript.experimental.syntaxFolding ( #44444 )
2018-02-26 14:06:51 -08:00
Christof Marti
8eddfa2cfb
Fix TypeScript features in Interactive Playground ( fixes #44172 ) ( #44443 )
2018-02-26 14:05:24 -08:00
Benjamin Pasero
a23edada50
debt - avoid deprecated Buffer ctors
2018-02-26 13:09:54 +01:00
Matt Bierner
ee558b001c
Refactoring
...
Extract shouldEnableDotCompletions
Extract getConfigurationForResource
Reorder methods
Format sig
2018-02-23 17:25:47 -08:00
Matt Bierner
a269045780
better scope try catch in provideCompletionItems
...
We only want to swallow exceptions around the request itself
2018-02-23 17:11:30 -08:00
Matt Bierner
ec3e57e946
Remove TS 2.6.1 import path workaround since this was fixed in TS 2.6.2+
2018-02-23 17:04:55 -08:00
Matt Bierner
a16e650dcf
Remove unused cast
2018-02-23 17:01:00 -08:00
Matt Bierner
b0add1e84f
Use vscode namespace instead of specific imports
2018-02-23 16:57:44 -08:00
Matt Bierner
0d5bb310d9
Extract should trigger to new method
2018-02-23 16:54:30 -08:00
Benjamin Pasero
393aa4f985
notifications - polish some extension messages
2018-02-23 18:19:55 +01:00