Open havremunken opened 5 years ago
Is there a way to disable auto formatting but keep the intellisense features? That would be fine as a stop gap measure.
Just found a hack/workaround for this!! By appending comments to each line it formats a bit better. Still not ideal but it's a workable improvement.
So in a strange way this extension rewards good documentation. ;)
CREATE TABLE public.users -- public.users
(
id serial, -- PK
login character varying(100) NOT NULL, -- username
displayname varchar(100) NOT NULL, -- handle
password_hash character varying(255) NOT NULL, -- pass
created_at timestamp with time zone NOT NULL, -- default now
updated_at timestamp with time zone NOT NULL, -- last update
PRIMARY KEY (id), -- pk constraing
CONSTRAINT login UNIQUE (login) -- unique login
)--
WITH (--
OIDS = FALSE --
);
Duplicate of #24
Same problem here
Steps to Reproduce:
This is just some example SQL I got from pgAdmin. It seems to happen regardless of the SQL in question. It does not happen with this extension disabled (i.e. it is the only extension I currently have installed that offers a formatter for sql files).
Similar to #47 but not limited to JSON queries.