Commit Graph

500 Commits

Author SHA1 Message Date
Johannes Rieken
da4dae447a add option editor.suggest.snippetsPreventQuickSuggestions #50776 2018-07-06 10:15:49 +02:00
Johannes Rieken
bc067a8188 disable quick suggestions when in snippet mode, #50776 2018-07-06 10:07:44 +02:00
Johannes Rieken
ef035db4c3 add missing monaco.d.ts changes 2018-07-04 16:24:33 +02:00
Alex Dima
560c87ffd3 Fixes #53152 2018-07-03 15:52:40 +02:00
Alex Dima
e3dc63dd0f Fixes Microsoft/monaco-editor#939 2018-07-02 14:07:34 +02:00
Johannes Rieken
7a8040ada7 move snippet-suggest option to new internal model, #42750 2018-07-02 12:56:53 +02:00
Johannes Rieken
32d9f16388 add editor.suggest-options bag, toward #42750 and configure graceful filtering for #52789 2018-07-02 11:20:06 +02:00
Johannes Rieken
9ba606df0e add recrusive-flag to deleteFile-function, #52941 2018-06-27 15:01:33 +02:00
Alex Dima
5befa5a362 Add an option to configure hover stickiness (#15667) 2018-06-25 16:49:19 +02:00
Martin Aeschlimann
1f79465e8c monaco tokenize API polish 2018-06-22 16:34:56 +02:00
Martin Aeschlimann
940ad8198f tokenizer2 APIs for monaco 2018-06-22 16:34:56 +02:00
Alex Dima
40a823ba60 Make hover delay time configurable (#15667) 2018-06-22 14:55:54 +02:00
Alex Dima
291c8e5806 Allow editor.hover to be an object 2018-06-22 12:12:59 +02:00
Alex Dima
a092059929 Merge remote-tracking branch 'origin/master' into pr/CoenraadS/49298 2018-06-21 13:59:21 +02: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
257ae9f76c add ignoreIfExists-option #10659 2018-06-20 15:57:49 +02:00
Johannes Rieken
f0ec28b499 override -> overwrite, #10659 2018-06-20 13:16:53 +02:00
Johannes Rieken
97f48d7bba rename/create should be able to define override behaviour #10659 2018-06-20 12:46:57 +02:00
Matt Bierner
2e5253d493 Move diagnostic tags api out of proposed
Also rename `customTags` to `tags`

Fixes #51104
2018-06-18 10:11:19 -07:00
Johannes Rieken
7753381eb6 renames: range/selectionRange #34968 2018-06-18 15:46:04 +02:00
Johannes Rieken
ec60aab39f outline - use Provider#displayName instead of extension id 2018-06-15 15:14:04 +02:00
Alex Dima
e7c9022f91 Use URIs for language configuration files 2018-06-14 12:33:11 +02:00
Johannes Rieken
ae9063f094 add DocumentSymbol#detail, #34968 2018-06-13 16:14:15 +02:00
Matt Bierner
94a491940d Add editor.showUnused setting. Fade out unused instead of full grey out
Changes unused variables to be faded out instead of greyed out. Add a new theme color `editorUnnecessaryCode.opacity` that controls the alpha for this fade

Fixes #51152
2018-06-12 14:39:08 -07:00
Johannes Rieken
7fa40d8a12 internally talk about DocumentSymbols and WorkspaceSymbols. #34968 2018-06-12 12:47:26 +02:00
Rob Lourens
ff75d80b9e Update monaco.d.ts 2018-06-04 22:10:14 -07:00
Peng Lyu
1c2fed7389 monaco.d.ts update 2018-06-04 16:52:49 -07:00
Rachel Macfarlane
e4f21842e3 Merge pull request #50501 from Microsoft/rmacfarlane/review 2018-06-04 16:31:57 -07:00
Matt Bierner
5065397f9b Build VS Code with TS 2.9
Fixes #51102
2018-06-04 11:50:05 -07:00
Peng Lyu
ad635f2b4c Merge remote-tracking branch 'upstream/master' into rmacfarlane/review 2018-06-04 11:14:31 -07:00
h-h-h-h
bf38abadf8 Edited the "editor.wrappingIndent" preference to allow the value "deepIndent".
The preference value "indent" adds 1 tab to the indentation of continuation lines, additionally to the indentation of the line of text in memory. "deepIndent" adds 2 tabs.
2018-05-28 02:53:24 +02:00
Peng Lyu
c4efd00309 show diff view editor for outdated comments. 2018-05-22 11:37:14 -07:00
Peng Lyu
9acfd66aa0 Merge remote-tracking branch 'upstream/master' into rebornix/review 2018-05-18 10:16:19 -07:00
Matt Bierner
8bb27cd255 Add unused diagnostic subtype (#49646)
* Add unused diagnostic subtype

Fixes #15710

Adds a new `DiagnosticTag` class that provide additional information about a diagnostic. Introduce `DiagnosticTag.Unnecessary` to mark when a diagnostic is for unused / unnecessary code

The design comes from Rosyln's diagnostic object and allows us to modify how a diagnostic is rendered without changing its serverity.

Hooks up JS and TS to use this new tag. This is controlled by the `javascript.showUnused.enabled` setting which is enabled by default

- Introduce a new diagnostic severity for unused.

    However, using this approach, if a user sets `noUnusedLocals` in their `tsconfig.json`, the resulting diagnostic could only show the squiggly OR be grayed out. Using `customTags` allows us to support both graying out and showing the squiggly

- Custom JS/TS implementation using decorators

    Not themable. We want a standard experience across languages.

* - Move to proposed
- Use numeric enum
2018-05-17 15:43:59 -07:00
Peng Lyu
41f1722166 use explict api instead of commands for commenting. 2018-05-16 19:14:24 -07:00
Johannes Rieken
2a270de217 add extensionId to DocumentSymbolProvider interface 2018-05-14 14:27:26 +02:00
Alex Ross
8f0d370203 Fixes #33621: Added check for intersection to SelectionHighlighter 2018-05-07 03:01:41 -07:00
Coenraad Stijne
99759a805a typo 2018-05-06 14:17:27 +02:00
Coenraad Stijne
24108c457e Add setting for highlightActiveIndentGuide 2018-05-06 10:39:04 +02:00
Johannes Rieken
6b4f88991b experiment with internal hierarchical model, #34968 2018-05-04 18:49:39 +02:00
Alex Dima
aac0b16646 Fixes #23539 2018-05-04 16:47:51 +02:00
Alex Dima
292732cd19 Clarify editor focus related methods 2018-05-04 15:22:56 +02:00
Alex Dima
dac897f3a1 Fixes #10143: Add minWidthInPx to view zones 2018-04-27 19:48:49 +02:00
Alex Dima
f5fdb8e041 Fixes #43208: Add editor.scrollBeyondLastColumn 2018-04-27 19:48:05 +02:00
Peng Lyu
cbee2c0ce5 Merge remote-tracking branch 'upstream/master' into rebornix/review 2018-04-24 08:23:32 -07:00
Rachel Macfarlane
1920a28289 Separate WorkspaceCommentProvider and DocumentCommentProvider 2018-04-20 15:15:50 -07:00
Peng Lyu
5a3c4d1930 commentProvider can control collapse state of a thread 2018-04-20 15:04:00 -07:00
Matt Bierner
c29f432de5 Add editor.codeActionsOnSave (#48086)
* Add editor.codeActionsOnSave

Fixes #42092

Adds a way to run code actions on save using the `editor.codeActionsOnSave` setting. This setting lists code action kinds to be executed automatically when  the document is saved.

* Use  object instead of array for config option

* Adding timeout

* Fix description

* Fix relative path
2018-04-20 13:46:25 -07:00
Peng Lyu
55198cb554 huge refactoring, remove getNewCommentRange 2018-04-19 11:49:45 -07:00
Peng Lyu
8730f9688f explicit reply comment thread command 2018-04-19 10:36:28 -07:00