mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-01 13:27:08 +02:00
EDITOR: changed editor tabs to have their own editor mode (#1372)
This commit is contained in:
+2
-1
@@ -72,6 +72,7 @@ import { MathJaxContext } from "better-react-mathjax";
|
||||
import { useRerender } from "./React/hooks";
|
||||
import { HistoryProvider } from "./React/Documentation";
|
||||
import { GoRoot } from "../Go/ui/GoRoot";
|
||||
import { Settings } from "../Settings/Settings";
|
||||
import { isBitNodeFinished } from "../BitNode/BitNodeUtils";
|
||||
|
||||
const htmlLocation = location;
|
||||
@@ -252,7 +253,7 @@ export function GameRoot(): React.ReactElement {
|
||||
<ScriptEditorRoot
|
||||
files={pageWithContext.files ?? new Map()}
|
||||
hostname={pageWithContext.options?.hostname ?? Player.getCurrentServer().hostname}
|
||||
vim={!!pageWithContext.options?.vim}
|
||||
vim={pageWithContext.options === undefined ? Settings.MonacoDefaultToVim : pageWithContext.options.vim}
|
||||
/>
|
||||
);
|
||||
break;
|
||||
|
||||
+1
-1
@@ -89,7 +89,7 @@ export type PageWithContext =
|
||||
| { page: SimplePage };
|
||||
|
||||
export interface ScriptEditorRouteOptions {
|
||||
vim?: boolean;
|
||||
vim: boolean;
|
||||
hostname?: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user