Syntax highlighting changes based on what file you are editing (#1176)

Co-authored-by: Robert Brennan <accounts@rbren.io>
This commit is contained in:
Justus
2024-04-17 12:10:45 -05:00
committed by GitHub
parent 16fc728696
commit 8472436fe8

View File

@@ -61,7 +61,11 @@ function CodeEditor(): JSX.Element {
<div className="flex grow">
<Editor
height="100%"
defaultLanguage="python"
path={
selectedFileName === ""
? "welcome.txt"
: selectedFileName.toLocaleLowerCase()
}
defaultValue="# Welcome to OpenDevin!"
value={code}
onMount={handleEditorDidMount}