Skip to content

Commit

Permalink
Development: Remove the unused Ace code editor component (#8832)
Browse files Browse the repository at this point in the history
  • Loading branch information
pzdr7 authored Jul 2, 2024
1 parent d0c3b8d commit 0059ca7
Show file tree
Hide file tree
Showing 28 changed files with 65 additions and 1,467 deletions.
2 changes: 1 addition & 1 deletion src/main/webapp/app/entities/build-log.model.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { safeUnescape } from 'app/shared/util/security.util';
import { Annotation } from 'app/exercises/programming/shared/code-editor/ace/code-editor-ace.component';
import { Annotation } from 'app/exercises/programming/shared/code-editor/monaco/code-editor-monaco.component';
import { ProgrammingLanguage, ProjectType } from 'app/entities/programming-exercise.model';

export enum BuildLogType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ <h4 class="mb-0 me-1">Online Code Editor</h4>
}
</div>
<jhi-code-editor-container
[useMonacoEditor]="true"
[editable]="!repositoryIsLocked"
[participation]="studentParticipation"
[showEditorInstructions]="showEditorInstructions"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
>
@if (!loadingParticipation && !participationCouldNotBeFetched) {
<jhi-code-editor-container
[useMonacoEditor]="true"
[editable]="false"
[participation]="participation"
[feedbackSuggestions]="feedbackSuggestions"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,8 @@ export class CodeEditorTutorAssessmentContainerComponent implements OnInit, OnDe
}

private highlightLines(firstLine: number, lastLine: number) {
this.codeEditorContainer.highlightLines(firstLine, lastLine);
// We add 1 to make the lines 1-based.
this.codeEditorContainer.highlightLines(firstLine + 1, lastLine + 1);
}

/**
Expand Down Expand Up @@ -541,7 +542,7 @@ export class CodeEditorTutorAssessmentContainerComponent implements OnInit, OnDe

/**
* Remove a feedback suggestion because it was accepted or discarded.
* The actual feedback creation when accepting happens in code-editor-ace-component/unreferenced-feedback because they have full control over the suggestion cards.
* The actual feedback creation when accepting happens in code-editor-monaco-component/unreferenced-feedback because they have full control over the suggestion cards.
* @param feedback Feedback suggestion that is removed
*/
removeSuggestion(feedback: Feedback) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
[buildable]="selectedRepository !== REPOSITORY.TEST"
[course]="course"
[allowHiddenFiles]="true"
[useMonacoEditor]="true"
(onResizeEditorInstructions)="onResizeEditorInstructions()"
>
<div editorTitle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
}
@if (!loadingParticipation && !participationCouldNotBeFetched) {
<jhi-code-editor-container
[useMonacoEditor]="true"
[editable]="!repositoryIsLocked"
[participation]="participation"
[showEditorInstructions]="showEditorInstructions"
Expand Down

This file was deleted.

Loading

0 comments on commit 0059ca7

Please sign in to comment.