Commit Graph

355 Commits

Author SHA1 Message Date
Alexandru Dima
5c2438b2c3 Convert IMouseTargetViewZone.detail to model coordinates before emitting the event (#179387)
Fixes #179114: Convert `IMouseTargetViewZone.detail` to model coordinates before emitting the event
2023-04-06 16:22:05 +02:00
Alex Dima
e8a3e2ef8b Implement a different method to render whitespace, using a separate layer 2022-12-09 22:27:16 +01:00
Alex Dima
db744ee9de Support wordBreak also in the advanced wrapping strategy and react to changing the option at runtime 2022-11-19 08:22:41 +01:00
Alex Dima
baf7391f4b Rename StringBuilder methods 2022-10-22 14:38:02 +02:00
Alex Dima
ba61231268 Simplify code 2022-10-14 22:38:17 +02:00
Alex Dima
dfc8776b46 First scroll and then update the selection when dragging (#40890) 2022-09-21 09:42:57 +02:00
Matt Bierner
6958e011d2 Remove stringbuilder code for when TextDecoder doesn't exist (#157952)
All of the environments we run in now have `TextDecoder`
2022-08-26 01:24:13 +02:00
Henning Dieterichs
420a637d21 Some code cleanup (#158279)
* Some code cleanup

* Fixes compile errors.
2022-08-16 20:40:52 +02:00
Matt Bierner
f7e12a3a92 Use optional method calls in more places (#151634)
This replaces code like:

```ts
if (foo.bar) {
    foo.bar(cat);
}
```

with:

```ts
foo.bar?.(cat)
```

Which is more concise but has the same meaning
2022-06-09 15:04:28 -07:00
Alex Dima
ed57930901 Debt: replace ViewLinesChangedEvent.toLineNumber with .count 2022-03-02 16:19:15 +01:00
Henning Dieterichs
e35085719e Don't do a word selection when double clicking on injected text. 2022-02-22 13:00:20 +01:00
Johannes Rieken
4a130c40ed enable @typescript-eslint/member-delimiter-style, https://github.com/microsoft/vscode/issues/140391 2022-02-02 14:35:33 +01:00
Alex Dima
6578db0170 Move coreCommands out of /controller/ (#141174) 2022-02-01 23:03:57 +01:00
Alex Dima
f879b1d16f Move view.ts out (#141174) 2022-02-01 23:03:57 +01:00
Alex Dima
342ab4e38e Reduce IViewModel surface 2022-02-01 23:03:56 +01:00
Alex Dima
25be28623b Extract EditorTheme to its own file 2022-02-01 13:43:25 +01:00
Alex Dima
a9c9ba025f Reduce IViewModel method count 2022-02-01 13:38:58 +01:00
Alex Dima
c625704094 Renames 2022-02-01 13:38:58 +01:00
Alex Dima
1289a28691 Move modelLineProjectionData out of /viewModel/ (#141174) 2022-01-31 10:47:01 +01:00
Alex Dima
1e5cda3d42 Move viewModel interfaces out of /viewModel/ (#141174) 2022-01-31 10:47:00 +01:00
Alex Dima
8e0172c44f Reduce /model/ deps in model.ts (#141174) 2022-01-21 23:01:00 +01:00
Alex Dima
c50fa8fee4 Move renderingContext to /browser/ 2022-01-21 22:30:58 +01:00
Alex Dima
138ca59804 Move viewEvents and viewContext to /viewModel/ (#141174) 2022-01-21 21:34:36 +01:00
Alexandru Dima
acac174fe4 Fixes #138240: Use matchMedia to detect device pixel ratio changes 2022-01-12 22:08:23 +01:00
Alex Dima
b0a27ab641 Convert IMouseTarget to an OR-type 2022-01-07 16:31:05 +01:00
iamkun
42b3d8a06d refactor: remove duplicate if statement (#140085) 2022-01-05 13:51:08 -08:00
Alex Dima
c3b617f9b0 let -> const 2021-12-30 15:27:45 +01:00
Alex Dima
2dca5a69f3 Renames 2021-12-29 15:35:19 +01:00
Alex Dima
3328807661 Extract applyFontInfo to a separate file 2021-12-29 15:35:19 +01:00
Alex Dima
4e5452258a Simplify Configuration 2021-12-29 12:14:54 +01:00
Alex Dima
c8e2fd7bae Renames 2021-12-29 00:37:35 +01:00
Alex Dima
b1cc6fd349 Improve textarea rendering when it is visible for IME input (#138704) 2021-12-17 20:24:09 +01:00
Alex Dima
1d8839096b Remove type hints 2021-11-20 15:55:37 +01:00
Henning Dieterichs
c833f69a9b Moves modelLineProjectionData into its own file. 2021-11-09 11:41:33 +01:00
Henning Dieterichs
0b5e7026d2 Renames LineBreakData to ModelLineProjectionData 2021-11-09 11:35:21 +01:00
Henning Dieterichs
fd04883947 Reorders LineBreakData constructor arguments to better model their logical dependency. 2021-11-02 12:51:24 +01:00
Henning Dieterichs
f21e467f36 Moving some definitions around, mostly in splitLinesCollection.ts. 2021-11-02 10:44:29 +01:00
Patrick Plenefisch
4acd587bc0 Don't ignore the indent settings in advanced wrapping mode
Fixes #132220
Fixes #120844

This still works in one pass by using negative text-indent with matching
padding to generate a CSS-based hanging indent that we can measure.
This could be upgraded to the `hanging` modifier in the far future.
2021-09-29 03:13:10 -04:00
Matt Bierner
0762d23ae7 Build VS Code using TS 4.4 (#127823)
* Build VS Code using TS 4.4

* Remove usages of deprecated `ClientRectList`

* Add any casts for missing `caretRangeFromPoint`

* Add temporary any casts for `zoom` css propery

This non-standard css property no longer exists in lib.dom.d.ts

* MouseWheelEvent -> WheelEvent

* Pick up new TS nightly

Co-authored-by: Alexandru Dima <alexdima@microsoft.com>
2021-07-08 14:27:39 -07:00
Henning Dieterichs
991cd8dc85 Implements support for decorations for injected text. 2021-07-02 11:43:55 +02:00
Henning Dieterichs
0de738926d Fixes #127410. 2021-06-29 11:31:40 +02:00
Henning Dieterichs
9c45a3026d Adds support for injected text to domLineBreaksComputer 2021-06-21 18:06:57 +02:00
Henning Dieterichs
fc3a992600 Removes unneeded injection widths. 2021-06-21 17:27:28 +02:00
Alex Dima
ad00f29c67 Add ModelRawLineChanged.injectedText 2021-06-16 21:53:59 +02:00
Henning Dieterichs
ddab7a7171 Implements token correction. 2021-06-15 12:23:17 +02:00
Alex Dima
8a9ac9a851 Scaffold injected text 2021-06-14 13:24:42 +02:00
Matt Bierner
e1f0f8f513 Add override keyword in codebase (#120755)
For #120675

This uses a script to add the override keyword to places that need it in the codebase

Note that we can't enable the --noImplicitOverride setting yet since there are still around 200 errors that require further attention
2021-04-08 10:05:20 -07:00
Alex Dima
9b5eceb1f6 💄 2021-03-19 09:09:47 +01:00
Alexandru Dima
20f3ece2e0 Handle input on Android
Fixes microsoft/vscode#107524
Fixes microsoft/monaco-editor#48
Fixes microsoft/monaco-editor#528
Fixes microsoft/monaco-editor#562
Fixes microsoft/monaco-editor#563
Fixes microsoft/monaco-editor#1538
Fixes microsoft/monaco-editor#2261
Refs microsoft/vscode#107602
2021-02-05 13:09:15 +01:00
Alexandru Dima
5c7fc5da28 Fixes #112382: Use replacement characters when doing dom based line break computin 2021-02-01 11:03:14 +01:00