[language server] aquire lock in main thread, fixed syntax highlighting for keywords

This commit is contained in:
Sven Efftinge 2016-06-07 15:48:04 +02:00
parent 66caca99ad
commit 17dd11ef23
2 changed files with 3 additions and 3 deletions

View file

@ -35,7 +35,7 @@ interface IEditorHighlightingConfigurationProvider {
[
«getStandardPatterns»
{
match: "\\\\b(?:«keywords.join('|')»)\\\\b",
match: "\\b(?:«keywords.join('|')»)\\b",
name: "keyword.«languageInfo.shortName»"
}
]

View file

@ -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 {