Matt Bierner
f17b33faf2
Use .?method() in more places ( #152112 )
...
Switches simple patterns like:
```ts
if (some.thing) {
some.thing.method();
}
```
to:
```ts
some.thing?.method()
```
This is more concise and avoids having to repeat the `some.thing` part
2022-06-15 16:28:31 +00:00
Johannes
0656d21d11
auto-fixed prefer-const violation
2022-06-08 17:49:21 +02:00
Alexandru Dima
339c3a9b60
Fixes #150176 : Extract code related to encoded token attributes to a separate file ( #150275 )
2022-05-24 13:51:23 +00:00
Henning Dieterichs
9aaa850fe4
Adopts "containsBalancedBrackets" flag from vscode/text-mate.
2022-04-07 00:42:19 +02:00
Henning Dieterichs
6e1e0b1d89
Moves tokenization logic from text model to its own text model part.
2022-04-01 17:37:52 +02:00
Alex Dima
e80e4e6fd2
Fixes #144989
2022-03-15 09:35:08 +01:00
Alex Dima
afe6faf938
Rename nullMode.ts to nullTokenize.ts
2022-02-04 15:10:01 +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
7c1c530051
Move ILanguageService to editor/languages ( #141174 )
2022-01-31 12:38:00 +01:00
Alex Dima
44f7998196
Move tokenizationSupport inside TokenizationStateStore ( #140476 )
2022-01-26 20:04:49 +01:00
Alex Dima
d9ca662b61
Fixes #141171 : Make sure to always set the color map on the TokenizationRegistry, even without a TMGrammarFactory
2022-01-24 23:34:22 +01:00
Alex Dima
6ef782af54
Remove dependencies to /languages/ in languages.ts ( #141174 )
2022-01-21 23:32:44 +01:00
Alex Dima
8e0172c44f
Reduce /model/ deps in model.ts ( #141174 )
2022-01-21 23:01:00 +01:00
Alex Dima
1cffa1d1c3
Move /model/tokens/ to /tokens/ ( #141174 )
2022-01-21 22:38:07 +01:00
Alex Dima
2661e7a3ad
Move token.ts to /languages/ ( #141174 )
2022-01-21 20:35:36 +01:00
Alex Dima
d018132104
Move defaultWorkerFactory.ts to /browser/ ( #140857 )
2022-01-17 17:23:31 +01:00
Alex Dima
973684056e
Rename modes to languages
2021-12-30 18:52:15 +01:00
Alex Dima
1bc85eb39b
Split tokensStore into multiple files
2021-12-30 18:27:49 +01:00
Alex Dima
0934918daf
Move ITextMateService to /browser/
2021-12-30 15:54:30 +01:00
Alex Dima
c8e2fd7bae
Renames
2021-12-29 00:37:35 +01:00
Alex Dima
eabc27b8e6
Remove offsetDelta from tokenization methods
2021-12-28 16:07:55 +01:00
Alex Dima
9714e1f51e
Improve names
2021-12-28 16:07:55 +01:00
Alex Dima
b487b2ccc3
Remove ILanguageService.validateLanguageId
2021-12-28 13:37:22 +01:00
Alex Dima
cc52724137
Create tokenizers for a language without activating the language
2021-12-27 17:12:46 +01:00
Alex Dima
fcf55dce4a
Split isRegisteredMode into isRegisteredLanguageId and isRegisteredMimeType
2021-12-08 14:53:11 +01:00
Alex Dima
91b97cec91
Debt: Rename IModeService to ILanguageService
2021-12-08 14:36:18 +01:00
Alex Dima
a3f6aadf28
Fixes #117264 : Abandon tokenizing a line after 500ms if possible.
2021-11-19 14:49:37 +01:00
Alex Dima
11862795ea
Remove LanguageIdentifier and ensure tests dispose instantiated LanguagesRegistry objects
2021-10-18 10:29:16 +02:00
Henning Dieterichs
1a2749d798
Fixes #132802 by making maxTokenizationLineLength configurable per language and reducing the default for TypeScript.
2021-10-13 16:19:54 +02:00
Alex Dima
2ab5762459
Remove IMode and FrankensteinMode
2021-09-27 14:05:05 +02:00
Alexandru Dima
b543f8cab3
Fixes #121191 : Change notification to a hover
2021-06-04 23:42:46 +02:00
Alexandru Dima
647f872432
Roll back to vscode-textmate@5.2.0
2021-03-25 23:46:44 +01:00
Alex Dima
ab39731a1e
Avoid rolling back vscode-textmate
2021-03-25 23:14:32 +01:00
Alexandru Dima
5cc0aa2849
Add support for including line feeds at the end of lines ( microsoft/monaco-editor#2265 )
2020-12-30 13:38:30 +01:00
Benjamin Pasero
b07d19a768
storage - remove store2 ( #109967 )
2020-11-13 08:42:59 +01:00
Benjamin Pasero
2db5a355bc
storage - adopt some StorageTargets
2020-11-04 16:58:55 +01:00
Benjamin Pasero
7f035b4be7
debt - introduce and adopt FileAccess
...
deprecate amd.ts and require.toUrl methods
2020-09-25 14:11:05 +02:00
Alex Dima
0b770073a4
Reduce usage of .innerHTML ( #106285 )
2020-09-09 10:30:02 +02:00
Benjamin Pasero
9b50b84c4c
use import-type for modules we load async ( #105594 )
2020-08-31 10:58:16 +02:00
Alex Dima
79a64259a0
Add a mechanism to debug TM grammars
2020-04-27 18:21:29 +02:00
Alex Dima
6654073e14
Adopt new package name (vscode-oniguruma)
2020-04-24 17:58:08 +02:00
Alex Dima
a6e59815c8
Adopt vscode-oniguruma-wasm
2020-04-23 11:16:21 +02:00
Martin Aeschlimann
6d4f8310a9
ITheme -> IColorTheme
2020-03-02 22:19:17 +01:00
Martin Aeschlimann
5b96deebf4
inspectEditorToken: to work with no grammar
2020-01-17 15:49:15 +01:00
Martin Aeschlimann
5b70dcfb8e
use token color map in textmate service
2019-11-21 15:59:55 +01:00
Alex Dima
7521ebdeb4
Adopt latest vscode-textmate ( fixes #84401 )
2019-11-21 08:44:26 +01:00
Martin Aeschlimann
100318a63e
styling in settings and themes
2019-11-11 16:04:09 +01:00
Alexandru Dima
0ba9f6631d
Load extension resources using IExtensionResourceLoaderService
2019-10-30 15:52:10 +01:00
Benjamin Pasero
8bd809ffc9
debt - load onigasm lazy
2019-09-10 14:53:42 +02:00
Johannes Rieken
dedf0de944
change type of _serviceBrand from any to undefined, #79918
2019-08-30 15:40:46 +02:00