This commit is contained in:
Alex Dima
2020-02-17 22:19:03 +01:00
parent 0f9807a7e7
commit 7169e432d8
4 changed files with 49 additions and 1 deletions

View File

@@ -1916,4 +1916,10 @@ export class ExtHostLanguageFeatures implements extHostProtocol.ExtHostLanguageF
this._proxy.$setLanguageConfiguration(handle, languageId, serializedConfiguration);
return this._createDisposable(handle);
}
$setWordDefinitions(wordDefinitions: extHostProtocol.ILanguageWordDefinitionDto[]): void {
for (const wordDefinition of wordDefinitions) {
this._documents.setWordDefinitionFor(wordDefinition.languageId, new RegExp(wordDefinition.regexSource, wordDefinition.regexFlags));
}
}
}