Commit Graph

436 Commits

Author SHA1 Message Date
Matt Bierner
8244f81b65 Simplify data2String 2018-11-15 18:07:57 -08:00
Matt Bierner
78de541d49 Delete unused log level and type levels 2018-11-15 18:07:20 -08:00
Matt Bierner
07a5118d23 Make sure we dispose of pluginManager 2018-11-15 17:59:35 -08:00
Matt Bierner
0dd2f7487f Don't eagerly construct surveys 2018-11-15 17:56:40 -08:00
Matt Bierner
a0f0ee42e9 Move survey ready logic into Surveyor 2018-11-15 17:54:46 -08:00
Matt Bierner
106cbdec2c Extract api to own file 2018-11-15 17:50:28 -08:00
Matt Bierner
ca68cfd75d Split commands into own files 2018-11-15 17:44:56 -08:00
Matt Bierner
dc03204cc2 Improve names 2018-11-15 17:44:56 -08:00
Matt Bierner
71f86e584d Merge plugin config provider into plugin manager 2018-11-15 17:44:56 -08:00
Matt Bierner
5da4d1188e Encapsulate plugins in plugins manager 2018-11-15 17:44:56 -08:00
Matt Bierner
01511eeb28 Make plugin.languages readonly 2018-11-15 17:44:56 -08:00
Matt Bierner
49fd31af84 Move plugin config provider to plugins file 2018-11-15 17:44:56 -08:00
Matt Bierner
3c78e312c6 Remove extra tslint file 2018-11-15 17:44:56 -08:00
Matt Bierner
ac95482f6d Pick up TS 3.2 rc 2018-11-15 17:44:56 -08:00
Matt Bierner
f31bc50d1c Use correct position for requesting closing jsx tags
Fixes #63178

Make sure we compute the correct line and offset for multi-line changes
2018-11-14 18:37:00 -08:00
Matt Bierner
80aeb774f6 Fix possible undefined access exception when using apply "first" for a code action and no code actions are returned
Fixes #63101
2018-11-14 15:39:34 -08:00
Matt Bierner
813d3aa393 Fixing some more restrictive tslint errors 2018-11-14 14:45:13 -08:00
Matt Bierner
bd314b04a8 Remove extra await 2018-11-14 14:26:46 -08:00
Matt Bierner
3aa49aa583 Improve method names 2018-11-14 14:16:46 -08:00
Matt Bierner
d6b6c51b6e Make sure we dispose of reader properly 2018-11-14 14:15:31 -08:00
Matt Bierner
4737e3efd1 Fixing TS 3.2 compile errors 2018-11-13 17:13:15 -08:00
Matt Bierner
4f227dd88c Use 'references' instead of 'occurrence' to power document highlights
`occurrence` is marked as deprecated
2018-11-13 17:13:15 -08:00
Matt Bierner
fd824ee58e Don't explicitly add folder name to task labels
Fixes #60315

Don't add workspace folder name to task labels as this messes up build task detection.

This change currently causes a regression when you have two folders with the same folder name (but different paths) in a workspace
2018-11-12 15:00:13 -08:00
Matt Bierner
a3fa56b477 Observe isIncomplete metadata passed by from a plugin
Supports cases like https://github.com/Microsoft/typescript-styled-plugin/issues/41

Requires TS 3.2
2018-11-09 16:30:49 -08:00
Matt Bierner
d5c11916a1 Support rendering color completions from a ts plugin as colors in the suggest list
https://github.com/Microsoft/typescript-styled-plugin/issues/80
2018-11-08 17:21:17 -08:00
ImgBotApp
d412f89baf [ImgBot] Optimize images
*Total -- 201.93kb -> 142.81kb (29.28%)

/extensions/npm/images/npm_icon.png -- 3.21kb -> 0.51kb (84.1%)
/src/vs/workbench/parts/debug/electron-browser/media/stepout-tb.png -- 2.89kb -> 0.47kb (83.83%)
/src/vs/workbench/parts/debug/electron-browser/media/stop-tb.png -- 1.50kb -> 0.35kb (76.43%)
/src/vs/workbench/parts/debug/electron-browser/media/pause-tb.png -- 1.55kb -> 0.37kb (76.34%)
/src/vs/workbench/browser/parts/editor/media/forward-tb.png -- 1.57kb -> 0.37kb (76.25%)
/src/vs/workbench/browser/parts/editor/media/back-tb.png -- 1.52kb -> 0.37kb (75.53%)
/src/vs/workbench/parts/debug/electron-browser/media/continue-tb.png -- 1.60kb -> 0.42kb (73.48%)
/src/vs/workbench/parts/debug/electron-browser/media/stepinto-tb.png -- 1.66kb -> 0.47kb (71.51%)
/src/vs/workbench/parts/debug/electron-browser/media/restart-tb.png -- 1.91kb -> 0.59kb (68.84%)
/src/vs/workbench/parts/debug/electron-browser/media/stepover-tb.png -- 1.93kb -> 0.62kb (67.75%)
/resources/linux/code.png -- 5.76kb -> 2.66kb (53.86%)
/extensions/html-language-features/icons/html.png -- 4.40kb -> 2.28kb (48.15%)
/extensions/theme-seti/icons/seti-circular-128x128.png -- 8.73kb -> 4.70kb (46.12%)
/extensions/typescript-language-features/icon.png -- 1.60kb -> 0.97kb (39.15%)
/src/vs/platform/extensionManagement/node/media/defaultIcon.png -- 1.65kb -> 1.03kb (37.49%)
/src/vs/workbench/parts/extensions/electron-browser/media/defaultIcon.png -- 1.65kb -> 1.03kb (37.49%)
/extensions/vscode-api-tests/testWorkspace/sub/image.png -- 35.87kb -> 24.99kb (30.33%)
/extensions/vscode-api-tests/testWorkspace/image.png -- 35.87kb -> 24.99kb (30.33%)
/resources/win32/code_150x150.png -- 0.55kb -> 0.39kb (29.96%)
/extensions/css-language-features/icons/css.png -- 5.07kb -> 3.63kb (28.37%)
/extensions/json-language-features/icons/json.png -- 5.84kb -> 4.33kb (25.89%)
/extensions/markdown-language-features/icon.png -- 1.19kb -> 0.88kb (25.86%)
/src/vs/workbench/parts/extensions/electron-browser/media/theme-icon.png -- 9.90kb -> 7.42kb (25.1%)
/extensions/php-language-features/icons/logo.png -- 10.85kb -> 8.99kb (17.13%)
/extensions/gulp/images/gulp.png -- 7.36kb -> 6.20kb (15.8%)
/extensions/merge-conflict/resources/icons/merge-conflict.png -- 2.47kb -> 2.10kb (14.96%)
/extensions/jake/images/cowboy_hat.png -- 43.85kb -> 41.67kb (4.98%)
2018-11-06 20:46:03 +00:00
Matt Bierner
6e5b0be369 Use set instead instead of regexp for kind modifiers 2018-11-05 16:16:34 -08:00
Matt Bierner
92fc1f1f74 Enable file icons for js/ts path intellisense
Fixes #61625

Requires TS 3.2+. Uses the kind modifier to determine the type of the file being imported
2018-11-05 16:08:44 -08:00
Matt Bierner
edce7e2b8d Version js/ts Api 2018-11-05 15:11:50 -08:00
Matt Bierner
b929dc93d3 Use api for onCompletionAccepted instead of command 2018-11-05 14:29:50 -08:00
Matt Bierner
170077d533 Adding command that is fired when a js/ts completion is accepted 2018-11-05 14:17:17 -08:00
Matt Bierner
1faae7e83f Make sure we activate js/ts extension when someone sends the _typescript.configurePlugin command 2018-10-31 23:30:24 -07:00
Matt Bierner
36790dd767 Fixing a few errors in plugin TS config command
- Make sure we update config after server start
- Fix argument order and add type to ensure it's not as easy to confuse argument order
2018-10-31 10:58:27 -07:00
Matt Bierner
97ad72a02c Dont enable commit characters in case where cursor is at dot preceeded by whitespace
Fixes #59934

Proper fix is upstream https://github.com/Microsoft/TypeScript/issues/27742
2018-10-30 17:19:44 -07:00
Matt Bierner
db02d57569 Introduce plugin config provider
Follow up on #61756

Two fixes:

- Avoid allowing the `_typescript.configurePlugin` to activate the ts extension non-lazily by instead using a `PluginConfigProvider`
- Restrict configurePlugin to TS 3.1.4
2018-10-29 14:11:28 -07:00
Mine Starks
2f18a14a5f Support configuring TypeScript plugins (#61756) 2018-10-29 13:55:52 -07:00
Matt Bierner
1476540297 Always use splice 2018-10-26 17:36:26 -07:00
Matt Bierner
221aa3d632 Introduce RequestQueueingType
Allow for finer control over how requests are queued
2018-10-26 17:36:26 -07:00
Matt Bierner
eafe48e901 Adding basic tests for request queue 2018-10-26 17:36:26 -07:00
Matt Bierner
5919eda976 Move request queue to own file 2018-10-26 17:36:25 -07:00
Matt Bierner
7363dcca25 Move callbackmap to own file 2018-10-26 17:36:25 -07:00
Matt Bierner
855d78e8a3 Move ts server into own directory 2018-10-26 17:36:25 -07:00
Matt Bierner
f4131970f6 Add isRetrigger field to signature help context
#54972

Instead of having a generic `Retrigger` reason, add a new field on the `SignatureHelpContext` that tracks if this was a retrigger or not. This allows retrigger for all the different trigger reasons, including invoke.

Replace the old `Retriggger` trigger reason with `ContentChange` which tracks cursor movement and text updates.
2018-10-25 10:38:44 -07:00
Matt Bierner
758206be09 Don't require selection for showing TS refactorings
Fixes #61655
2018-10-23 16:18:14 -07:00
Matt Bierner
b43d76887d Add more detail to disableAutomaticTypeAcquisition setting description
Fixes #60984
2018-10-17 16:22:25 -07:00
Karthikayan
f891d5a7b0 include priority in requestItem and add to request queue accordingly (#60582)
* include priority in requestItem and add to queue accordingly

* add boolean lowPriority flag to requestItem and add to queue based on that

* set lowPriority flag to optional

* send lowPriority flag from CodeLensProvider

* revert priorityFlag for provider
2018-10-17 15:21:36 -07:00
Matt Bierner
799bc78af5 Fix parameters not having commit characters
Fixes #60907
2018-10-16 17:10:43 -07:00
Ramya Achutha Rao
a975e59eaf Update applicationInsights for #60585 2018-10-16 16:29:08 -07:00
Matt Bierner
a57e7abae2 Remove deprecated js/ts completion settings
These were marked as deprecated in VS Code 1.28 and are now being removed
2018-10-15 17:39:33 -07:00
Emil Hessman
14ef4255d6 Remove duplicate switch case (#59677) 2018-10-15 16:51:35 -07:00