Skip to content

Commit 21cc701

Browse files
authored
fix(6527): have the monaco-editor show sql, not pgsql (#6532)
1 parent 4facdef commit 21cc701

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/languageSupport/languages/sql/monaco.sql.syntax.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as pgsql from 'monaco-editor/esm/vs/basic-languages/pgsql/pgsql'
22

33
import {MonacoBasicLanguage} from 'src/types'
44

5-
const LANGID = 'pgsql'
5+
const LANGID = 'sql'
66

77
function addSyntax() {
88
monaco.languages.register({

src/shared/components/SqlMonacoEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const SqlEditorMonaco: FC<Props> = ({
115115
<ErrorBoundary>
116116
<div className={wrapperClassName} data-testid="sql-editor">
117117
<MonacoEditor
118-
language="pgsql"
118+
language={SQLLANGID}
119119
theme={THEME_NAME}
120120
value={script}
121121
onChange={onChange}

0 commit comments

Comments
 (0)