Commit Graph

278 Commits

Author SHA1 Message Date
Johannes Rieken
ac03e62afc last round of making changes smaller 2019-02-13 15:20:29 +01:00
Johannes Rieken
58d2b5be06 disable event for now, remove extension location from provider 2019-02-13 14:46:31 +01:00
Johannes Rieken
44b7588362 remove getNamedCustomer, connect MainThreadWebview with CodeInsetController 2019-02-13 12:47:46 +01:00
Johannes Rieken
8246c1648f workbenchs/parts became workbench/contrib 2019-02-13 12:47:46 +01:00
Johannes Rieken
ace73c05b7 move rest code code inset to workbench out of (monaco) editor 2019-02-13 12:47:46 +01:00
Rob DeLine
066dfef8f7 Add Code Inset Feature 2019-02-13 12:46:25 +01:00
Matt Bierner
f9687fc5ec Strict null work on extHostLanguageFeatures 2019-02-11 09:31:13 -08:00
Matt Bierner
f1afe72087 Add getDocument helper method
Many places  in `extHostLanguageFeatures` were calling `getDocumentData` without checking if the result is undefined. Add an `getDocument` that cannot return undefined values and instead throws an error if there is no document
2019-02-11 09:31:13 -08:00
Matt Bierner
9ee6077373 Strict null work in extHost 2019-02-11 09:31:13 -08:00
Johannes Rieken
52d134aacb update proposed api to have multiple positions, #41838 2019-02-11 12:08:27 +01:00
Johannes Rieken
d50b568d87 multiple cursor in internal api of smart select, #41838 2019-02-11 11:34:09 +01:00
Johannes Rieken
0693cb7afc debt - don't track recursive but explict, #67694 2019-02-07 13:56:26 +01:00
Johannes Rieken
1cb6e26ab2 es6 compile attempts 2019-02-06 11:44:11 +01:00
Matt Bierner
71ee61ef2d Fix active signature not being propagated properly
#33413
2019-01-28 14:46:29 -08:00
Johannes Rieken
97ed8aba29 add developer command that prints available formatters to console, #41882 2019-01-21 18:19:02 -08:00
Matt Bierner
bcc2281e45 Rename CodeAction.canAutoApply -> CodeAction.preferred
Part of #62110

Use the more generic name as suggested in https://github.com/Dart-Code/Dart-Code/issues/1393. This makes the intent of the field more clear and also allows us to extend the concept of preferred code actions to refactorings and other classes of code actions

Experimentally also allows a `preferred` value for `apply` when configuring code aciton keyboard shortcuts. This applies the preferred code action returned from the list of code actions returned
2019-01-21 14:09:30 -08:00
rebornix
ee3a616601 Max code actions per file is 1000 2019-01-17 17:11:28 -08:00
Matt Bierner
1904cd8d84 Prototype auto fixable quick fixes
Part of #62110

- Adds a new field `canAutoApply` to code actions. This field indicates that a code action can be applied without additional user input. For quick fixes, this should be set if the fix properly addresses the error

- Enable auto fixes for TS spelling errors

- Added a `editor.action.autoFix` command to triggers auto fixes at the current cursor position
2019-01-16 17:56:22 -08:00
Johannes Rieken
14ce5183db renames, #58649 2019-01-11 16:18:56 +01:00
Matt Bierner
6ac9ea2af7 Revert "Revert "Add activeSignatureHelp to SignatureHelpContext (#65440)""
This reverts commit 7b375fcb82.

Reapplies 4a38520d59 with a fix for #66202

Fixes #66202
2019-01-08 11:49:32 -08:00
Johannes Rieken
f9dac59254 add warning/'missing name'-message when symbol has no name, fixes #65545 2019-01-08 12:55:42 +01:00
Joao Moreno
7b375fcb82 Revert "Add activeSignatureHelp to SignatureHelpContext (#65440)"
This reverts commit 4a38520d59.
2019-01-08 10:09:47 +01:00
Matt Bierner
4a38520d59 Add activeSignatureHelp to SignatureHelpContext (#65440)
For #33413

Adds the active `SignatureHelp` object (along with the active signature) to the `SignatureHelpContext`.
2019-01-07 13:55:58 -08:00
Alex Dima
9cf36cdf8f Rename CanonicalExtensionIdentifier to ExtensionIdentifier 2019-01-07 12:00:54 +01:00
Matt Bierner
c109d319fe Second pass converting for index based looping to for-of loops
More manual conversion of index based for loops to for-of loops
2019-01-04 12:03:23 -08:00
Rob Lourens
ef2547d547 replace void 0 with undefined 2019-01-03 11:20:19 -08:00
Alex Dima
25417553be Adopt case insensitive extension identifiers 2018-12-21 12:41:41 +01:00
Johannes Rieken
514ec620de add SelectionRange and SelectionRangeKind, #63935 2018-12-17 15:10:18 +01:00
Johannes Rieken
c6c7edaa9f debt - asThenable -> asPromise because it returns a promise 2018-12-13 11:45:48 +01:00
Johannes Rieken
653280d133 debt - Thenable -> Promise 2018-12-13 11:31:54 +01:00
Johannes Rieken
48a452dcee towards strict null and completion model, #63454 2018-12-11 17:00:19 +01:00
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