Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jul 6, 2022. It is now read-only.
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

[VSCODE] Should Preserve the Space between OR and REPLACE SQL Keywords #87

Copy link
Copy link

Description

@dulara1994
Issue body actions

Describe the bug
It removes the space between OR and REPLACE. in other words it converts OR REPLACE to ORREPLACE

To Reproduce

Try to format something like this one.
CREATE OR REPLACE FUNCTION "public" . "set_current_timestamp_updated_at"() RETURNS TRIGGER AS $$

Expected behavior
It should preserve the space between the OR and REPLACE Keywords. which should remain two words.

Screenshots

Peek 2022-05-17 07-09

Usage

  • Occurred with PostgreSQL, Not sure about other SQL standards
  • VSCode version? Version 1.66.2
  • What are your currently configured VSCode settings for the prettier-sql extension, if relevant to the issue?

// following setting is under the settings.json file. but no entry with the key "prettier-sql"
"[plsql]": {
"editor.defaultFormatter": "inferrinizzard.prettier-sql-vscode"
},

Additional context
Pl. comment if you need anything specific to hunt this bug.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    vscodeRelated to the VSCode ExtensionRelated to the VSCode Extension

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.