UI: add cursor options to the script editor (#615)

This commit is contained in:
Aleksei Bezrodnov
2023-06-19 03:17:15 +02:00
committed by GitHub
parent 709875d9ca
commit 9e75621cd2
9 changed files with 70 additions and 16 deletions
+5 -5
View File
@@ -1,19 +1,19 @@
import type { editor, Position } from "monaco-editor";
import type { ContentFilePath } from "../../Paths/ContentFile";
import * as monaco from "monaco-editor";
type ITextModel = monaco.editor.ITextModel;
type ITextModel = editor.ITextModel;
// Holds all the data for a open script
export class OpenScript {
path: ContentFilePath;
code: string;
hostname: string;
lastPosition: monaco.Position;
lastPosition: Position;
model: ITextModel;
isTxt: boolean;
constructor(path: ContentFilePath, code: string, hostname: string, lastPosition: monaco.Position, model: ITextModel) {
constructor(path: ContentFilePath, code: string, hostname: string, lastPosition: Position, model: ITextModel) {
this.path = path;
this.code = code;
this.hostname = hostname;