Commit Graph

2149 Commits

Author SHA1 Message Date
Alex Dima c15001e11d Fixes #22832: Consider fullwidth characters when rendering tabs 2018-03-01 12:22:12 +01:00
Alexandru Dima bae62c11c0 Merge pull request #44259 from yh1224/fulllwidth
Treat full-width character as two visible columns.
2018-03-01 12:00:45 +01:00
Alexandru Dima 2db30013bd Merge pull request #44353 from rcjsuen/patch-1
Update typings in model.ts to allow nulls
2018-03-01 10:51:59 +01:00
Alex Dima 45e78ce0b8 Fixes Microsoft/monaco-editor#719 2018-02-28 15:24:19 +01:00
Peng Lyu 1d5d103f8a re ##42260. cache for last visited line content. 2018-02-27 14:13:29 -08:00
Peng Lyu 020afb768d re #42260. use getValueInRange in SplitLine. 2018-02-27 14:13:29 -08:00
Alex Dima 814be2fd75 Fixes #39266: Don't run diff for computing edits in case of model update 2018-02-26 23:45:26 +01:00
Alex Dima 74b681b08a Avoid view model inconsistency 2018-02-26 22:12:18 +01:00
Alex Dima 20ed3d9632 Fixes #44424: Add proposed API - TextEditor.visibleRanges 2018-02-26 21:28:09 +01:00
Alex Dima f8cc441e21 Fixes #29033 2018-02-26 13:05:59 +01:00
Remy Suen 18c5888b9a Update typings in model.ts to allow nulls
The searching functions in ITextModel allow one of its parameters to
be null but the typings does not have this declared. If someone is
compiling code in strict null checking mode then a false positive
error will be flagged.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
2018-02-25 18:13:10 +09:00
Peng Lyu 9af08bac39 Merge pull request #42301 from usernamehw/theming_active_line_number
Support theming of active line number
2018-02-23 10:54:02 -08:00
Yoshiharu Hirose ba7354f61f Treat full-width character as two visible columns. 2018-02-23 19:10:25 +09:00
Martin Aeschlimann 0faa5d117c folding provider: first version 2018-02-22 14:13:22 +01:00
Alex Dima b27a905d2d Make code snapshot-friendly 2018-02-16 11:12:41 +01:00
Martin Aeschlimann d019a5bed2 [theming] Make contrastActiveBorder around text optional/themeable. Fixes #43761 2018-02-15 21:49:34 +01:00
Alex Dima c869fef06c Do not include line number value in exception message 2018-02-15 13:01:19 +01:00
Peng Lyu 0051c12c17 Avoid cons-string flattern in indentation guesser. 2018-02-07 15:23:21 -08:00
Peng Lyu df02c1869d Turn on PieceTree. 2018-02-07 14:41:40 -08:00
Peng Lyu fa8b3a6686 When EOL is normalized, we can simply do substring instead of replace. 2018-02-07 14:41:40 -08:00
Peng Lyu ce9eeab79f add search cache. 2018-02-07 14:41:40 -08:00
Peng Lyu bceb4dd93c Do not create new object for nodeAt2 method call. 2018-02-07 14:41:40 -08:00
Peng Lyu c0c64c6322 If eol is normalized and there is no CR, we don't need to validate. 2018-02-07 14:41:40 -08:00
Benas Svipas f2e1b405ed minor changes which fixes #42795 2018-02-06 08:59:11 +02:00
Peng Lyu e34fe5aae0 Fix #42979. Turn off globalFindClipboar for macOS by default. 2018-02-05 11:14:31 -08:00
Johannes Rieken 80a11d95c7 more names #42477 2018-02-01 17:06:44 +01:00
Joao Moreno 6f5520d57e fixes #42716 2018-02-01 11:29:01 +01:00
Alex Dima 1cdf4aec30 Have the default be TextBufferType.LinesArray, add VSCODE_PIECE_TREE env 2018-01-29 17:36:05 +01:00
Alex 7aab321058 Support theming of active line number 2018-01-29 11:34:30 +03:00
Ramya Achutha Rao 17b1aaf768 Rename to cursorWidth as per feedback 2018-01-26 14:23:05 -08:00
Johannes Rieken 403d5d410a Merge branch 'master' into resolveInitialRenameValue 2018-01-26 17:08:21 +01:00
Johannes Rieken faa7f4c659 better settings name, #41060 2018-01-26 15:46:20 +01:00
Johannes Rieken 6bff9705c0 add setting, need to finalize on names, #41060 2018-01-26 14:22:19 +01:00
Peng Lyu 3c2082e49c Fix #42111. use Array.concat instead of join. The footprint is larger but concat is faster, especially when array is large. 2018-01-24 14:56:56 -08:00
Alex Dima 65c8b8a925 Better wording for configuration option 2018-01-24 17:23:02 +01:00
Alex Dima 4347b51e0f Make it possible to change the minimap position setting dynamically 2018-01-24 17:21:08 +01:00
Alex Dima 5069af739d Simplify code 2018-01-24 17:07:25 +01:00
Alex Dima 365cbaf609 Merge remote-tracking branch 'origin/master' into saighost-master 2018-01-24 16:05:00 +01:00
Benjamin Pasero 93f3fc711b avoid loading entire backup content for hot exit
fixes #41986
2018-01-24 11:18:44 +01:00
Johannes Rieken 0f2cc682a0 Merge branch 'master' into rename-workspaceedit-proto 2018-01-23 17:19:06 +01:00
Alexandru Dima 91e8887218 Merge pull request #39314 from PoiSoNz/master
Increase minimum limit for fontSize and lineHeight
2018-01-23 12:27:43 +01:00
Peng Lyu 95dfbe4410 Move rbtree logic out of piecetreebase. 2018-01-22 20:55:16 -08:00
Peng Lyu fa455a7249 Revert "First attempt of search caching."
This reverts commit 0f907abc02.
2018-01-22 19:45:50 -08:00
Peng Lyu 220f4b56cc fix integration test save for untitle file 2018-01-22 13:04:59 -08:00
Peng Lyu 09c9d52e3f snapshot for empty file 2018-01-22 13:04:59 -08:00
Matt Bierner eccf728e64 CodeActionScope (#41782)
* Add CodeActionScope

* Replace matches with contains, try using in ts extension

* Move filtering to getCodeActions

* Basic test

* Docs

* Fix tests

* Hooking up requested scope

* Add basic test for requestedScope

* Added auto apply logic

* Gate refactor provider to only compute refactorings when requested

* Making suggested renames

* Clean up code action trigger impl to use single Trrigger info object

* Rename codeActionScope file and internal CodeActionScope class

* Add quick fix base type

* Make keybinding API more similar to insertSnippet

Take args as an object instead of as an array of values

* Clean up docs

* scope -> kind

* Fixing examples to match Refactor kind
2018-01-22 11:45:22 -08:00
Peng Lyu ad3f4f2784 turn on piece tree for insider. 2018-01-22 10:04:13 -08:00
Benjamin Pasero 59e50838af Merge pull request #41972 from Microsoft/ben/write-large-files
Allow to write large files (> 256 MB)
2018-01-22 18:17:03 +01:00
Alex Dima 73d60bd4c8 Fixes #41503: Add fast path for searching for \n 2018-01-22 17:56:40 +01:00
Benjamin Pasero 56b067cfdf adopt more snapshots 2018-01-22 16:10:00 +01:00