mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 00:38:56 +00:00
[language server] aquire lock in main thread, fixed syntax highlighting for keywords
This commit is contained in:
parent
66caca99ad
commit
17dd11ef23
2 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ interface IEditorHighlightingConfigurationProvider {
|
|||
[
|
||||
«getStandardPatterns»
|
||||
{
|
||||
match: "\\\\b(?:«keywords.join('|')»)\\\\b",
|
||||
match: "\\b(?:«keywords.join('|')»)\\b",
|
||||
name: "keyword.«languageInfo.shortName»"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -66,8 +66,8 @@ class RequestManager {
|
|||
if (cancelIndicator instanceof CancellableIndicator)
|
||||
cancelIndicators += cancelIndicator
|
||||
|
||||
semaphore.acquire(MAX_PERMITS)
|
||||
return CompletableFuture.runAsync([
|
||||
semaphore.acquire(MAX_PERMITS)
|
||||
try {
|
||||
writeRequest.apply(cancelIndicator)
|
||||
} finally {
|
||||
|
@ -100,8 +100,8 @@ class RequestManager {
|
|||
if (cancelIndicator instanceof CancellableIndicator)
|
||||
cancelIndicators += cancelIndicator
|
||||
|
||||
semaphore.acquire(1)
|
||||
return CompletableFuture.supplyAsync([
|
||||
semaphore.acquire(1)
|
||||
try {
|
||||
return readRequest.apply(cancelIndicator)
|
||||
} finally {
|
||||
|
|
Loading…
Reference in a new issue