(newLang: string)
| 890 | } |
| 891 | |
| 892 | changeLanguage(newLang: string): void { |
| 893 | if (!this.selectize) { |
| 894 | // In some initialization flows we get here before creating this.selectize |
| 895 | setTimeout(() => this.changeLanguage(newLang), 0); |
| 896 | } else { |
| 897 | if (newLang === 'cmake') { |
| 898 | const cmakeLang = languagesService.getLanguagesOrFail().cmake; |
| 899 | if (cmakeLang) this.selectize.addOption(cmakeLang); |
| 900 | } |
| 901 | this.selectize.setValue(newLang); |
| 902 | } |
| 903 | } |
| 904 | |
| 905 | clearLinkedLine() { |
| 906 | this.decorations.linkedCode = []; |
no test coverage detected