mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-24 08:37:42 +00:00
docs(web): adds suggested documentation from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
This commit is contained in:
parent
487a28da8e
commit
c4932b7fd1
1 changed files with 4 additions and 0 deletions
|
|
@ -168,6 +168,10 @@ export default class LanguageProcessor extends EventEmitter<LanguageProcessorEve
|
|||
let transcription = outputTarget.buildTranscriptionFrom(outputTarget, null, false);
|
||||
return this.predict_internal(transcription, true, layerId);
|
||||
} else {
|
||||
// if there's no active context source, there's nothing to
|
||||
// provide suggestions for. In that case, there's no reason
|
||||
// to even request suggestions, so bypass the prediction
|
||||
// engine and say that there aren't any.
|
||||
return Promise.resolve([]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue