sachabruttin/CosmosDbExplorer

SQL Comment Fix

dprice opened this issue · 0 comments

I noticed that the commenting was not correct for SQL queries. It would do the C# "\\" comments. This seems to work locally for me:

        private static string GetCommentPrefix(TextEditor? textEditor)
        {
            return textEditor?.SyntaxHighlighting.Name switch
            {
                "DocumentDb" => "--",
                "DocumentDbSql" => "--",  // <============================
                _ => "//",
            };
        }