mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-20 09:35:38 -05:00
PlaceCommasBeforeNextStatement should handle correctly formatted text (#247)
- Fixed handling of PlaceCommasBeforeNextStatement so that it doesn't add whitespace unnecessarily. This ensures that repeated formats of the same text shouldn't keep adding whitespace - Added tests covering a number of scenarios related to this
This commit is contained in:
committed by
Raymond Martin
parent
7f20f84add
commit
0c0bd3125b
@@ -0,0 +1,10 @@
|
||||
|
||||
CREATE PROCEDURE [dbo].[sp1]
|
||||
AS
|
||||
SELECT
|
||||
c1
|
||||
,c2
|
||||
,c3
|
||||
FROM
|
||||
[dbo].[T1]
|
||||
RETURN 0
|
||||
@@ -0,0 +1,6 @@
|
||||
|
||||
CREATE PROCEDURE [dbo].[sp1]
|
||||
AS
|
||||
SELECT c1 ,c2 ,c3
|
||||
FROM [dbo].[T1]
|
||||
RETURN 0
|
||||
Reference in New Issue
Block a user