Commit Graph

247 Commits

Author SHA1 Message Date
Matt Bierner
100adeb3e9 Use more generic word pattern for markdown
Try to better support handle of unicode in markdown by using a word definition that use unicode character class

Fixes #15177
2018-12-10 18:24:10 -08:00
Johannes Rieken
daae50ab21 ensure a range contains its previous range, #63935 2018-12-03 12:05:50 +01:00
Johannes Rieken
07be58bbad add proposed api for smart select, #63935 2018-12-03 11:29:12 +01:00
Johannes Rieken
253a4f6d17 log provider failure as errors, #63831 2018-12-03 08:47:39 +01:00
Johannes Rieken
58d5205e5a naming and doc tweak for #62839 2018-11-16 16:05:58 +01:00
Johannes Rieken
988f7683df Merge pull request #63150 from YisraelV/customNameForOutline
custom name when there are multiple outline providers - feature request #62839
2018-11-16 16:02:01 +01:00
Johannes Rieken
01d8ba6b8c add keepWhitespace-flag to completion item, #62057 2018-11-16 10:59:37 +01:00
Matt Bierner
30b2a5fd94 Replace !isFalsyOrEmpty with isNonEmptyArray
This new call works as a type guard and can help avoid writing double negations

Avoid either call in cases where we were iterating over the possibly undefined value. Use `|| []` for these
2018-11-14 16:06:13 -08:00
Yisrael
5a8087c60e custom name when there are multiple outline providers 2018-11-14 18:13:52 +02:00
Johannes Rieken
33c89529be fix #63062 2018-11-14 09:39:18 +01:00
Johannes Rieken
201b6dac6a add proposed api for declaration provider, add test, add ipc logic, #62483 2018-11-12 11:05:59 +01:00
Johannes Rieken
0b99867455 working on markdown string dto 2018-11-09 10:50:20 +01:00
Johannes Rieken
488fa952c0 add log messages for all language features (IntelliSense, formatting etc) fixes #43099 2018-11-06 11:56:24 +01:00
Matt Bierner
e377ec6ed2 Use to for converting to extension host
Fixes #61141
2018-10-17 16:25:57 -07:00
Johannes Rieken
078b1415e4 add proposed api for CompletionItemInsertTextRule, #57093 2018-10-17 15:10:15 +02:00
Johannes Rieken
349c18db22 add CompletionItemInsertTextRules on modes.ts so that we can have that in vscode.d.ts, #57093 2018-10-17 15:10:15 +02:00
Matt Bierner
2f51e97117 Add retrigger characters to SignatureHelpProvider
Introduces the concept of a re-trigger character to the signature help provider. This is a seperate set of characters that are registered with the provider. Typing a retrigger character fires a new signature help request if signature help is already showing.

#54972
2018-10-05 16:01:02 -07:00
Johannes Rieken
7d7c27cf3e less strict checking of rename locations, #58907 2018-10-03 16:49:09 +02:00
Matt Bierner
8087b0a8d8 Remove use strict directives in main vs code ts files (part 2)
We compile using the alwaysStrict flag so these directives are not needed

This part removes most `use strict` directives that are right after the file header
2018-10-02 16:11:05 -07:00
Johannes Rieken
e808161b9e perf - pre-compute and cache lower case variants for label, sortText, and filterText 2018-10-02 17:46:04 +02:00
Johannes Rieken
d00e5cb041 debt - replace CompletionItem#overwriteBefore/After with CompletionItem#range 2018-10-02 15:31:47 +02:00
Johannes Rieken
3f12ef35a8 debt - modes.ISuggestSupport becomes modes.CompletionItemProvider 2018-10-02 15:31:47 +02:00
Johannes Rieken
81b995a25d debt - less TPromise usage 2018-10-01 14:01:17 +02:00
Johannes Rieken
f79b59416b debt - SuggestionType -> SuggestionKind 2018-09-24 15:58:05 +02:00
Johannes Rieken
01e438743c debt - remove SnippetType 2018-09-17 12:57:34 +02:00
Alex Dima
f9d8addc07 Merge remote-tracking branch 'origin/master' into pr/limerickgds/51557 2018-09-11 15:30:40 +02:00
Johannes Rieken
01f615e016 better error handling when calling prep-rename, #58394 2018-09-11 11:39:21 +02:00
Matt Bierner
d33b1c3063 Initial work on signature help context (#58135)
* Initial work on signature help context

Fixes #54972

Adds `SignatureHelpContext`. This tells providers why signature help was requested

TODO:

- [ ] Better understand semantics of retrigger. Should `retrigger` be an flag instead of a `triggerReason`?
- [ ]  Fix skipped test
- [ ] Add more tests for trigger reasons / trigger characters

* Fix unit test

* Make sure we retrigger sig help if it is already showing

* Add test for dismiss and re-invoke

* Extract some constants

* Extract createMockEditor
2018-09-10 17:44:21 -07:00
Alex Dima
efd8f4a4b2 Adopt CancellationToken in ExtHostLanguageFeaturesShape 2018-09-04 15:33:40 +02:00
Alex Dima
a5ff3ce6c4 Add support for CancellationToken as last argument in RPC communication 2018-09-04 14:54:20 +02:00
Johannes Rieken
3c727a6d01 uri - replace usages of default export with named export (part 2) 2018-09-03 11:04:26 +02:00
Matt Bierner
bd1e8d40fd Fix unit test 2018-07-26 15:42:24 -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
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
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
Johannes Rieken
97f48d7bba rename/create should be able to define override behaviour #10659 2018-06-20 12:46:57 +02:00
Johannes Rieken
8be8f65468 fix compile error 2018-06-18 17:53:25 +02:00
Johannes Rieken
62e0f34a35 add CompletionItem#preselect, #35551 2018-06-18 16:15:56 +02:00
Johannes Rieken
7753381eb6 renames: range/selectionRange #34968 2018-06-18 15:46:04 +02:00
Matt Bierner
d3a54049da remove reference to triggerKind 2018-06-15 11:23:57 -07:00
Johannes Rieken
ec60aab39f outline - use Provider#displayName instead of extension id 2018-06-15 15:14:04 +02:00
Johannes Rieken
cecfdcde22 update proposed API to DocumentSymbol-type, #34968 2018-06-12 12:47:27 +02:00
Johannes Rieken
7fa40d8a12 internally talk about DocumentSymbols and WorkspaceSymbols. #34968 2018-06-12 12:47:26 +02:00
习古
81f58337a9 fixed:generator method of class autocomplete causes star(*) to be added to next line 2018-06-11 01:26:47 +08:00
Johannes Rieken
e3a2077949 fill in document uri when document symbol location lacks uri, #51297 2018-06-07 11:03:08 +02:00
Johannes Rieken
9a86a83b50 back to more conventinal api proposal, #34968 2018-06-05 17:05:23 +02:00
Johannes Rieken
c562bd257d fix #50207 2018-05-30 14:48:33 +02:00
Johannes Rieken
f5300ced7f fix #50321 2018-05-29 16:06:08 +02:00
Matt Bierner
0a0d3d5e45 Add code action trigger to proposed API
#50248
2018-05-21 16:19:10 -07:00
Matt Bierner
2cfe96f451 Use member shorthand for more adapters 2018-05-21 11:54:30 -07:00