Commit Graph

28 Commits

Author SHA1 Message Date
Shane Liesegang
e927158b93
Fixing return values from TextMarker.Find
Find doesn't return a standard Range object; the `from` and `to` values are just positions and not callable.
2018-03-18 13:08:16 -04:00
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Joseph Safwat Khella
c7450fa320 Update index.d.ts in @types/codemirror (#22595)
* Update index.d.ts

* Remove BOM
2018-01-03 00:08:09 -08:00
Shane Liesegang
05433b1022 Update index.d.ts (#22518)
cleanliness updates
2018-01-02 12:31:40 -08:00
Armando Aguirre
1a6e0c31c5
Merge pull request #21615 from peterbartha/master
Add 'setSelections' to CodeMirror
2017-11-27 16:14:28 -08:00
Peter Bartha
59ce8d03df Change properties of argument options 2017-11-26 21:07:32 +01:00
Noah Chen
fdc843c5a3
Update index.d.ts 2017-11-22 15:52:12 -05:00
Noah Chen
ee36a4cf48
Add onUpdateLinting callback to LintStateOptions 2017-11-22 15:46:57 -05:00
Peter Bartha
4bf9699f26 Add optional 'options' parameter to the setSelection and setSelections method in CodeMirror. 2017-11-21 19:56:38 +01:00
Peter Bartha
10e05d7aa2 Add 'setSelections' to CodeMirror 2017-11-18 20:07:33 +01:00
Dmitry Demeshkin
9d9387ceae Codemirror: text parameter should be an array in EditorChangeCancellable.update method 2017-11-07 16:10:21 +08:00
Philipp Shestakov
ece1a683b4 Added types for CodeMirror (#21005)
* Added definitions for clusterize.js

* Fixed definitions author.

* Review fixes.

* Review fix.

* Added execCommand and isReadOnly CodeMirror.Editor functions.
2017-10-25 11:39:44 -07:00
Andy
19f89399e4 Ensure every package has a tslint.json (#21009)
* Ensure every package has a tslint.json

* Fixes
2017-10-25 11:13:50 -07:00
Richard Jedlička
f5a5123320 [codemirror] Fix charCoord and getTokenAt methods according to docs (#20593)
* [codemirror] Fix methods according to docs

- `charCoords` method should have `mode` param optional: http://codemirror.net/doc/manual.html#charCoords
- `getTokenAt` method should have second optional parameter `precise`: http://codemirror.net/doc/manual.html#getTokenAt

* [codemirror] Fix coords mode methods parameter

Fix mode parameter of methods `cursorCoords`, `charCoords`, `coordsChar`, `lineAtHeight` and add missing method `heightAtLine`.
2017-10-16 15:21:29 -07:00
kekraft
447df163c1 Fix left chunks and right chunks typing. (#20567)
leftChunks() and rightChunks() returns an array of MergeViewDiffChunk.
2017-10-13 15:09:17 -07:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
bodeyb
a06bec94c5 Adds missing scrollbarStyle EditorConfiguration attribute (#20050)
[Codemirror documentation](http://codemirror.net/doc/manual.html) (search for `scrollbarStyle`)
2017-09-26 11:41:14 -07:00
Josh Abernathy
68dd475c86 Add getSelections to CodeMirror
See https://codemirror.net/doc/manual.html#api_selection
2017-08-18 09:00:23 -04:00
Bernard, Nicholas (ETW - FLEX)
54cf4c673b Add getLineTokens method 2017-08-15 12:37:17 -07:00
Josh Abernathy
84e67a17f6 Add CodeMirror DOM events (#18824)
* Support the 'copy' event

* Make it generic over DOM events
2017-08-14 11:14:05 -07:00
Kirill Gagarski
12ced24cf2 Explicitly specify possibly nullable types in CodeMirror (#18371)
* Explicitly specify possibly nullable types in CodeMirror

* scrollTo optional args
2017-08-01 10:22:11 -07:00
mbilsing
6cfc342e87 . 2017-06-29 14:32:40 +02:00
mbilsing
20dae297ab Changes typings of CodeMirror's show-hint module to use the Editor object in most parameters instead of the Doc object.
.
2017-06-29 12:00:42 +02:00
Ludovic L'Hours
b56761f148 [codemirror] Linter function can either be sync or async 2017-06-17 22:44:01 +02:00
rasmusvhansen
dd69d6de4e class_ argument is optional in removeLineClass (#16347) 2017-05-05 09:36:05 -07:00
Dmitry Kharitonov
73fb208f98 Update index.d.ts (#16212)
Add `origin` param to `doc.replaceRange`
2017-04-28 14:06:09 -07:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00