add auto-highlighting of selected/updated code

This commit is contained in:
undergroundwires
2020-08-25 16:52:38 +01:00
parent 5df458739d
commit b789250cb8
39 changed files with 1163 additions and 175 deletions

View File

@@ -13,10 +13,11 @@ export class ApplicationStub implements IApplication {
return this;
}
public findCategory(categoryId: number): ICategory {
throw new Error('Method not implemented.');
return this.getAllCategories().find(
(category) => category.id === categoryId);
}
public getRecommendedScripts(): readonly IScript[] {
throw new Error('Method not implemented.');
throw new Error('Method not implemented: getRecommendedScripts');
}
public findScript(scriptId: string): IScript {
return this.getAllScripts().find((script) => scriptId === script.id);