Apply suggestions from code review

Co-authored-by: Koen Vlaswinkel <koesie10@users.noreply.github.com>
This commit is contained in:
Anders Starcke Henriksen
2023-10-13 09:48:28 +02:00
committed by GitHub
parent d2b17e1676
commit cc3feabe66
2 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ import {
} from "../common/query-language";
const ALL_LANGUAGE_SELECTION_OPTIONS = [
undefined, // All langauges
undefined, // All languages
QueryLanguage.Cpp,
QueryLanguage.CSharp,
QueryLanguage.Go,
@@ -24,7 +24,7 @@ const ALL_LANGUAGE_SELECTION_OPTIONS = [
QueryLanguage.Swift,
];
// A tree view items consisting of of a language (or undefined for all languages
// A tree view items consisting of of a language (or undefined for all languages)
// and a boolean indicating whether it is selected or not.
export class LanguageSelectionTreeViewItem extends TreeItem {
constructor(

View File

@@ -57,7 +57,7 @@ describe("LanguageSelectionTreeDataProvider", () => {
expectSelected(items, undefined);
});
it("When language is changed then the selected element change", async () => {
it("When language is changed then the selected element changes", async () => {
await languageContext.setLanguageContext(QueryLanguage.CSharp);
const items = dataProvider.getChildren();
expectSelected(items, QueryLanguage.CSharp);