mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-22 09:13:07 +02:00
UI: add cursor options to the script editor (#615)
This commit is contained in:
committed by
GitHub
parent
709875d9ca
commit
9e75621cd2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user