From 9fd3f186edec275e28edbb1179141556e3afabd3 Mon Sep 17 00:00:00 2001 From: "jorg.vr" Date: Wed, 15 Jan 2025 15:12:50 +0100 Subject: [PATCH] Add psql dialect in editor --- app/assets/javascripts/editor.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/assets/javascripts/editor.ts b/app/assets/javascripts/editor.ts index 2b3b67430d..d800efcaa8 100644 --- a/app/assets/javascripts/editor.ts +++ b/app/assets/javascripts/editor.ts @@ -176,6 +176,14 @@ const additionalLanguages = [ return import("@replit/codemirror-lang-csharp").then(m => m.csharp()); } }), + LanguageDescription.of({ + name: "postgresql", + alias: ["psql"], + extensions: ["sql"], + load() { + return import("@codemirror/lang-sql").then(m => m.sql({ dialect: m.PostgreSQL })); + } + }) ];