these are taken from VS Code documentation and allow indenting/dedenting on enter
they are not yet present in the vs code plugin this language configuration is taken from, so this solution requires either manual updating each time that plugin updates, or should be replaced with some other solution
(cherry picked from commit 77af558e37b0311cdd20a24759053f10944cb698)
FLEET-MR-2737
GitOrigin-RevId: 9137aa5bf0524d6f68b675c8f96af32e2be06cad
Generally, it's fine for grammar to not have a scope name, clients should be ready for that.
Likely the real reason is hidden behind resource loader, it's going to be propagated in futher changes
GitOrigin-RevId: 1512971574c40df1e6df670663063d94395b5438
Look at the snippet below:
```
val initializationJob = scope.launch {
bundlePaths.map { bundlePath ->
launch(Dispatchers.IO) {
print("hello world")
}
}
}
```
The pitfall is that initially it starts a coroutine in the default thread pool, which has a hard limit of concurrently launched tasks. Only when there is a free thread, the coroutine launches and schedules new coroutines in another, unlimited thread pool from Dispatchers.IO.
This becomes more dangerous when this asynchronous approach is combined with blocking approach. Here, `ProgressIndicatorUtils.awaitWithCheckCanceled(initializationJob.asCompletableFuture())` can be executed in a thread from the very same limited thread pool, increasing the probability of thread starvation.
GitOrigin-RevId: b9e7f765547ca8199ab32b9df35b7b6b60712166
The origin of it is incorrect handling of non-ascii characters by joni. In some places the index is incremented by 1, where it should be incremented by the length of the code point.
Normally this exception should not happen, so once the library fixes it, the catch can be removed.
GitOrigin-RevId: b2749a934c380bf6f0d0debb7cac1d6785edf81e
Update TextMate bundle registration to run in parallel using kotlinx.coroutines to improve performance. Also refactor variable and method names for better readability and consistency.
The changes in this commit:
- Replace some of the imports in the bundlesLoader.kt to better suit the updated implementation.
- Modify the registerBundlesInParallel function to run the registration tasks in parallel using kotlinx.coroutines.
- Change the TextMateServiceImpl.java variable and method names for better readability and consistency.
- Update TextMateService.java and TextMateEditorUtils.java to use the refactored names.
- Update TextMateCustomLiveTemplate.java to use the refactored snippet registry name.
GitOrigin-RevId: 849b65da8ba899ca959dc196bf974f1e941c18ff
in case of VSC bundles we have a lot of information, such as "fileNameMatchers" without it and can delay grammar loading
GitOrigin-RevId: f6a13ec024a2774f2af0773dc940231b7de6d537
- do not store enabled built-in bundles (IDEA-279427, IDEA-243584, IDEA-235637, IDEA-256584)
- do not show paths for built-in bundles on windows (IDEA-275447)
- make disabling built-in bundles settings roamable
- store user defined bundles and disabled built-in bundles in config directory in order to preserve them during IDE upgrade
GitOrigin-RevId: 5fb8849909c659f368897a907364a8f447b6355f
while detecting file type in injection try to use languageId as both matchers: as file name and as file extension
GitOrigin-RevId: 2ac6fbc6dd8f1bbde84858aa28737a7317ac6ebc
- support different types of file name matchers
- more precise setting scope name for snippets and language configuration
- a way to implement custom plist content loader
GitOrigin-RevId: e03e682e60396ad5e9f207c9e4a647566d393cd5