mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-05 01:25:45 -05:00
Fix to not add parens for global variable built in functions (#940)
This commit is contained in:
@@ -74,8 +74,11 @@ namespace Microsoft.SqlTools.ServiceLayer.LanguageServices.Completion
|
||||
case DeclarationType.BuiltInFunction:
|
||||
case DeclarationType.ScalarValuedFunction:
|
||||
case DeclarationType.TableValuedFunction:
|
||||
// Functions we add on the () at the end since they'll always have them
|
||||
InsertText = WithDelimitedIdentifier(FunctionPostfix, DeclarationTitle);
|
||||
// Add ()'s for all functions except global variable system functions (which all start with @@)
|
||||
if (!DeclarationTitle.StartsWith("@@"))
|
||||
{
|
||||
InsertText = WithDelimitedIdentifier(FunctionPostfix, DeclarationTitle);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user