thrownewError('Unexpected: offsetDelta should be 0.');
}
...
...
@@ -486,12 +389,39 @@ class TMTokenization implements ITokenizationSupport {
if(line.length>=this._maxTokenizationLineLength){
if(!this._tokenizationWarningAlreadyShown){
this._tokenizationWarningAlreadyShown=true;
this.notificationService.warn(nls.localize('too many characters',"Tokenization is skipped for long lines for performance reasons. The length of a long line can be configured via `editor.maxTokenizationLineLength`."));
this._notificationService.warn(nls.localize('too many characters',"Tokenization is skipped for long lines for performance reasons. The length of a long line can be configured via `editor.maxTokenizationLineLength`."));
}
console.log(`Line (${line.substr(0,15)}...): longer than ${this._maxTokenizationLineLength} characters, tokenization skipped.`);