Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@neo4j-cypher/language-support

Package Overview
Dependencies
Maintainers
0
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neo4j-cypher/language-support - npm Package Compare versions

Comparing version 2.0.0-canary-68f66d0 to 2.0.0-canary-690f150

558

dist/types/generated-parser/CypherCmdLexer.d.ts

@@ -36,279 +36,283 @@ import { ATN, CharStream, DFA, Lexer } from "antlr4";

static readonly AT = 33;
static readonly BAR = 34;
static readonly BINDINGS = 35;
static readonly BOOL = 36;
static readonly BOOLEAN = 37;
static readonly BOOSTED = 38;
static readonly BOTH = 39;
static readonly BREAK = 40;
static readonly BRIEF = 41;
static readonly BTREE = 42;
static readonly BUILT = 43;
static readonly BY = 44;
static readonly CALL = 45;
static readonly CASE = 46;
static readonly CHANGE = 47;
static readonly CIDR = 48;
static readonly COLLECT = 49;
static readonly COLON = 50;
static readonly COLONCOLON = 51;
static readonly COMMA = 52;
static readonly COMMAND = 53;
static readonly COMMANDS = 54;
static readonly COMMIT = 55;
static readonly COMPOSITE = 56;
static readonly CONCURRENT = 57;
static readonly CONSTRAINT = 58;
static readonly CONSTRAINTS = 59;
static readonly CONTAINS = 60;
static readonly COPY = 61;
static readonly CONTINUE = 62;
static readonly COUNT = 63;
static readonly CREATE = 64;
static readonly CSV = 65;
static readonly CURRENT = 66;
static readonly DATA = 67;
static readonly DATABASE = 68;
static readonly DATABASES = 69;
static readonly DATE = 70;
static readonly DATETIME = 71;
static readonly DBMS = 72;
static readonly DEALLOCATE = 73;
static readonly DEFAULT = 74;
static readonly DEFINED = 75;
static readonly DELETE = 76;
static readonly DENY = 77;
static readonly DESC = 78;
static readonly DESCENDING = 79;
static readonly DESTROY = 80;
static readonly DETACH = 81;
static readonly DIFFERENT = 82;
static readonly DOLLAR = 83;
static readonly DISTINCT = 84;
static readonly DIVIDE = 85;
static readonly DOT = 86;
static readonly DOTDOT = 87;
static readonly DOUBLEBAR = 88;
static readonly DRIVER = 89;
static readonly DROP = 90;
static readonly DRYRUN = 91;
static readonly DUMP = 92;
static readonly DURATION = 93;
static readonly EACH = 94;
static readonly EDGE = 95;
static readonly ENABLE = 96;
static readonly ELEMENT = 97;
static readonly ELEMENTS = 98;
static readonly ELSE = 99;
static readonly ENCRYPTED = 100;
static readonly END = 101;
static readonly ENDS = 102;
static readonly EQ = 103;
static readonly EXECUTABLE = 104;
static readonly EXECUTE = 105;
static readonly EXIST = 106;
static readonly EXISTENCE = 107;
static readonly EXISTS = 108;
static readonly ERROR = 109;
static readonly FAIL = 110;
static readonly FALSE = 111;
static readonly FIELDTERMINATOR = 112;
static readonly FINISH = 113;
static readonly FLOAT = 114;
static readonly FOR = 115;
static readonly FOREACH = 116;
static readonly FROM = 117;
static readonly FULLTEXT = 118;
static readonly FUNCTION = 119;
static readonly FUNCTIONS = 120;
static readonly GE = 121;
static readonly GRANT = 122;
static readonly GRAPH = 123;
static readonly GRAPHS = 124;
static readonly GROUP = 125;
static readonly GROUPS = 126;
static readonly GT = 127;
static readonly HEADERS = 128;
static readonly HOME = 129;
static readonly IF = 130;
static readonly IMPERSONATE = 131;
static readonly IMMUTABLE = 132;
static readonly IN = 133;
static readonly INDEX = 134;
static readonly INDEXES = 135;
static readonly INF = 136;
static readonly INFINITY = 137;
static readonly INSERT = 138;
static readonly INT = 139;
static readonly INTEGER = 140;
static readonly IS = 141;
static readonly JOIN = 142;
static readonly KEY = 143;
static readonly LABEL = 144;
static readonly LABELS = 145;
static readonly AMPERSAND = 146;
static readonly EXCLAMATION_MARK = 147;
static readonly LBRACKET = 148;
static readonly LCURLY = 149;
static readonly LE = 150;
static readonly LEADING = 151;
static readonly LIMITROWS = 152;
static readonly LIST = 153;
static readonly LOAD = 154;
static readonly LOCAL = 155;
static readonly LOOKUP = 156;
static readonly LPAREN = 157;
static readonly LT = 158;
static readonly MANAGEMENT = 159;
static readonly MAP = 160;
static readonly MATCH = 161;
static readonly MERGE = 162;
static readonly MINUS = 163;
static readonly PERCENT = 164;
static readonly INVALID_NEQ = 165;
static readonly NEQ = 166;
static readonly NAME = 167;
static readonly NAMES = 168;
static readonly NAN = 169;
static readonly NFC = 170;
static readonly NFD = 171;
static readonly NFKC = 172;
static readonly NFKD = 173;
static readonly NEW = 174;
static readonly NODE = 175;
static readonly NODETACH = 176;
static readonly NODES = 177;
static readonly NONE = 178;
static readonly NORMALIZE = 179;
static readonly NORMALIZED = 180;
static readonly NOT = 181;
static readonly NOTHING = 182;
static readonly NOWAIT = 183;
static readonly NULL = 184;
static readonly OF = 185;
static readonly ON = 186;
static readonly ONLY = 187;
static readonly OPTIONAL = 188;
static readonly OPTIONS = 189;
static readonly OPTION = 190;
static readonly OR = 191;
static readonly ORDER = 192;
static readonly OUTPUT = 193;
static readonly PASSWORD = 194;
static readonly PASSWORDS = 195;
static readonly PATH = 196;
static readonly PATHS = 197;
static readonly PERIODIC = 198;
static readonly PLAINTEXT = 199;
static readonly PLUS = 200;
static readonly PLUSEQUAL = 201;
static readonly POINT = 202;
static readonly POPULATED = 203;
static readonly POW = 204;
static readonly PRIMARY = 205;
static readonly PRIMARIES = 206;
static readonly PRIVILEGE = 207;
static readonly PRIVILEGES = 208;
static readonly PROCEDURE = 209;
static readonly PROCEDURES = 210;
static readonly PROPERTIES = 211;
static readonly PROPERTY = 212;
static readonly QUESTION = 213;
static readonly RANGE = 214;
static readonly RBRACKET = 215;
static readonly RCURLY = 216;
static readonly READ = 217;
static readonly REALLOCATE = 218;
static readonly REDUCE = 219;
static readonly RENAME = 220;
static readonly REGEQ = 221;
static readonly REL = 222;
static readonly RELATIONSHIP = 223;
static readonly RELATIONSHIPS = 224;
static readonly REMOVE = 225;
static readonly REPEATABLE = 226;
static readonly REPLACE = 227;
static readonly REPORT = 228;
static readonly REQUIRE = 229;
static readonly REQUIRED = 230;
static readonly RETURN = 231;
static readonly REVOKE = 232;
static readonly ROLE = 233;
static readonly ROLES = 234;
static readonly ROW = 235;
static readonly ROWS = 236;
static readonly RPAREN = 237;
static readonly SCAN = 238;
static readonly SEC = 239;
static readonly SECOND = 240;
static readonly SECONDARY = 241;
static readonly SECONDARIES = 242;
static readonly SECONDS = 243;
static readonly SEEK = 244;
static readonly SEMICOLON = 245;
static readonly SERVER = 246;
static readonly SERVERS = 247;
static readonly SET = 248;
static readonly SETTING = 249;
static readonly SETTINGS = 250;
static readonly SHORTEST_PATH = 251;
static readonly SHORTEST = 252;
static readonly SHOW = 253;
static readonly SIGNED = 254;
static readonly SINGLE = 255;
static readonly SKIPROWS = 256;
static readonly START = 257;
static readonly STARTS = 258;
static readonly STATUS = 259;
static readonly STOP = 260;
static readonly STRING = 261;
static readonly SUPPORTED = 262;
static readonly SUSPENDED = 263;
static readonly TARGET = 264;
static readonly TERMINATE = 265;
static readonly TEXT = 266;
static readonly THEN = 267;
static readonly TIME = 268;
static readonly TIMES = 269;
static readonly TIMESTAMP = 270;
static readonly TIMEZONE = 271;
static readonly TO = 272;
static readonly TOPOLOGY = 273;
static readonly TRAILING = 274;
static readonly TRANSACTION = 275;
static readonly TRANSACTIONS = 276;
static readonly TRAVERSE = 277;
static readonly TRIM = 278;
static readonly TRUE = 279;
static readonly TYPE = 280;
static readonly TYPED = 281;
static readonly TYPES = 282;
static readonly UNION = 283;
static readonly UNIQUE = 284;
static readonly UNIQUENESS = 285;
static readonly UNWIND = 286;
static readonly URL = 287;
static readonly USE = 288;
static readonly USER = 289;
static readonly USERS = 290;
static readonly USING = 291;
static readonly VALUE = 292;
static readonly VARCHAR = 293;
static readonly VECTOR = 294;
static readonly VERBOSE = 295;
static readonly VERTEX = 296;
static readonly WAIT = 297;
static readonly WHEN = 298;
static readonly WHERE = 299;
static readonly WITH = 300;
static readonly WITHOUT = 301;
static readonly WRITE = 302;
static readonly XOR = 303;
static readonly YIELD = 304;
static readonly ZONED = 305;
static readonly IDENTIFIER = 306;
static readonly ARROW_LINE = 307;
static readonly ARROW_LEFT_HEAD = 308;
static readonly ARROW_RIGHT_HEAD = 309;
static readonly ErrorChar = 310;
static readonly AUTH = 34;
static readonly BAR = 35;
static readonly BINDINGS = 36;
static readonly BOOL = 37;
static readonly BOOLEAN = 38;
static readonly BOOSTED = 39;
static readonly BOTH = 40;
static readonly BREAK = 41;
static readonly BRIEF = 42;
static readonly BTREE = 43;
static readonly BUILT = 44;
static readonly BY = 45;
static readonly CALL = 46;
static readonly CASE = 47;
static readonly CHANGE = 48;
static readonly CIDR = 49;
static readonly COLLECT = 50;
static readonly COLON = 51;
static readonly COLONCOLON = 52;
static readonly COMMA = 53;
static readonly COMMAND = 54;
static readonly COMMANDS = 55;
static readonly COMMIT = 56;
static readonly COMPOSITE = 57;
static readonly CONCURRENT = 58;
static readonly CONSTRAINT = 59;
static readonly CONSTRAINTS = 60;
static readonly CONTAINS = 61;
static readonly COPY = 62;
static readonly CONTINUE = 63;
static readonly COUNT = 64;
static readonly CREATE = 65;
static readonly CSV = 66;
static readonly CURRENT = 67;
static readonly DATA = 68;
static readonly DATABASE = 69;
static readonly DATABASES = 70;
static readonly DATE = 71;
static readonly DATETIME = 72;
static readonly DBMS = 73;
static readonly DEALLOCATE = 74;
static readonly DEFAULT = 75;
static readonly DEFINED = 76;
static readonly DELETE = 77;
static readonly DENY = 78;
static readonly DESC = 79;
static readonly DESCENDING = 80;
static readonly DESTROY = 81;
static readonly DETACH = 82;
static readonly DIFFERENT = 83;
static readonly DOLLAR = 84;
static readonly DISTINCT = 85;
static readonly DIVIDE = 86;
static readonly DOT = 87;
static readonly DOTDOT = 88;
static readonly DOUBLEBAR = 89;
static readonly DRIVER = 90;
static readonly DROP = 91;
static readonly DRYRUN = 92;
static readonly DUMP = 93;
static readonly DURATION = 94;
static readonly EACH = 95;
static readonly EDGE = 96;
static readonly ENABLE = 97;
static readonly ELEMENT = 98;
static readonly ELEMENTS = 99;
static readonly ELSE = 100;
static readonly ENCRYPTED = 101;
static readonly END = 102;
static readonly ENDS = 103;
static readonly EQ = 104;
static readonly EXECUTABLE = 105;
static readonly EXECUTE = 106;
static readonly EXIST = 107;
static readonly EXISTENCE = 108;
static readonly EXISTS = 109;
static readonly ERROR = 110;
static readonly FAIL = 111;
static readonly FALSE = 112;
static readonly FIELDTERMINATOR = 113;
static readonly FINISH = 114;
static readonly FLOAT = 115;
static readonly FOR = 116;
static readonly FOREACH = 117;
static readonly FROM = 118;
static readonly FULLTEXT = 119;
static readonly FUNCTION = 120;
static readonly FUNCTIONS = 121;
static readonly GE = 122;
static readonly GRANT = 123;
static readonly GRAPH = 124;
static readonly GRAPHS = 125;
static readonly GROUP = 126;
static readonly GROUPS = 127;
static readonly GT = 128;
static readonly HEADERS = 129;
static readonly HOME = 130;
static readonly ID = 131;
static readonly IF = 132;
static readonly IMPERSONATE = 133;
static readonly IMMUTABLE = 134;
static readonly IN = 135;
static readonly INDEX = 136;
static readonly INDEXES = 137;
static readonly INF = 138;
static readonly INFINITY = 139;
static readonly INSERT = 140;
static readonly INT = 141;
static readonly INTEGER = 142;
static readonly IS = 143;
static readonly JOIN = 144;
static readonly KEY = 145;
static readonly LABEL = 146;
static readonly LABELS = 147;
static readonly AMPERSAND = 148;
static readonly EXCLAMATION_MARK = 149;
static readonly LBRACKET = 150;
static readonly LCURLY = 151;
static readonly LE = 152;
static readonly LEADING = 153;
static readonly LIMITROWS = 154;
static readonly LIST = 155;
static readonly LOAD = 156;
static readonly LOCAL = 157;
static readonly LOOKUP = 158;
static readonly LPAREN = 159;
static readonly LT = 160;
static readonly MANAGEMENT = 161;
static readonly MAP = 162;
static readonly MATCH = 163;
static readonly MERGE = 164;
static readonly MINUS = 165;
static readonly PERCENT = 166;
static readonly INVALID_NEQ = 167;
static readonly NEQ = 168;
static readonly NAME = 169;
static readonly NAMES = 170;
static readonly NAN = 171;
static readonly NFC = 172;
static readonly NFD = 173;
static readonly NFKC = 174;
static readonly NFKD = 175;
static readonly NEW = 176;
static readonly NODE = 177;
static readonly NODETACH = 178;
static readonly NODES = 179;
static readonly NONE = 180;
static readonly NORMALIZE = 181;
static readonly NORMALIZED = 182;
static readonly NOT = 183;
static readonly NOTHING = 184;
static readonly NOWAIT = 185;
static readonly NULL = 186;
static readonly OF = 187;
static readonly ON = 188;
static readonly ONLY = 189;
static readonly OPTIONAL = 190;
static readonly OPTIONS = 191;
static readonly OPTION = 192;
static readonly OR = 193;
static readonly ORDER = 194;
static readonly OUTPUT = 195;
static readonly PASSWORD = 196;
static readonly PASSWORDS = 197;
static readonly PATH = 198;
static readonly PATHS = 199;
static readonly PERIODIC = 200;
static readonly PLAINTEXT = 201;
static readonly PLUS = 202;
static readonly PLUSEQUAL = 203;
static readonly POINT = 204;
static readonly POPULATED = 205;
static readonly POW = 206;
static readonly PRIMARY = 207;
static readonly PRIMARIES = 208;
static readonly PRIVILEGE = 209;
static readonly PRIVILEGES = 210;
static readonly PROCEDURE = 211;
static readonly PROCEDURES = 212;
static readonly PROPERTIES = 213;
static readonly PROPERTY = 214;
static readonly PROVIDER = 215;
static readonly PROVIDERS = 216;
static readonly QUESTION = 217;
static readonly RANGE = 218;
static readonly RBRACKET = 219;
static readonly RCURLY = 220;
static readonly READ = 221;
static readonly REALLOCATE = 222;
static readonly REDUCE = 223;
static readonly RENAME = 224;
static readonly REGEQ = 225;
static readonly REL = 226;
static readonly RELATIONSHIP = 227;
static readonly RELATIONSHIPS = 228;
static readonly REMOVE = 229;
static readonly REPEATABLE = 230;
static readonly REPLACE = 231;
static readonly REPORT = 232;
static readonly REQUIRE = 233;
static readonly REQUIRED = 234;
static readonly RETURN = 235;
static readonly REVOKE = 236;
static readonly ROLE = 237;
static readonly ROLES = 238;
static readonly ROW = 239;
static readonly ROWS = 240;
static readonly RPAREN = 241;
static readonly SCAN = 242;
static readonly SEC = 243;
static readonly SECOND = 244;
static readonly SECONDARY = 245;
static readonly SECONDARIES = 246;
static readonly SECONDS = 247;
static readonly SEEK = 248;
static readonly SEMICOLON = 249;
static readonly SERVER = 250;
static readonly SERVERS = 251;
static readonly SET = 252;
static readonly SETTING = 253;
static readonly SETTINGS = 254;
static readonly SHORTEST_PATH = 255;
static readonly SHORTEST = 256;
static readonly SHOW = 257;
static readonly SIGNED = 258;
static readonly SINGLE = 259;
static readonly SKIPROWS = 260;
static readonly START = 261;
static readonly STARTS = 262;
static readonly STATUS = 263;
static readonly STOP = 264;
static readonly STRING = 265;
static readonly SUPPORTED = 266;
static readonly SUSPENDED = 267;
static readonly TARGET = 268;
static readonly TERMINATE = 269;
static readonly TEXT = 270;
static readonly THEN = 271;
static readonly TIME = 272;
static readonly TIMES = 273;
static readonly TIMESTAMP = 274;
static readonly TIMEZONE = 275;
static readonly TO = 276;
static readonly TOPOLOGY = 277;
static readonly TRAILING = 278;
static readonly TRANSACTION = 279;
static readonly TRANSACTIONS = 280;
static readonly TRAVERSE = 281;
static readonly TRIM = 282;
static readonly TRUE = 283;
static readonly TYPE = 284;
static readonly TYPED = 285;
static readonly TYPES = 286;
static readonly UNION = 287;
static readonly UNIQUE = 288;
static readonly UNIQUENESS = 289;
static readonly UNWIND = 290;
static readonly URL = 291;
static readonly USE = 292;
static readonly USER = 293;
static readonly USERS = 294;
static readonly USING = 295;
static readonly VALUE = 296;
static readonly VARCHAR = 297;
static readonly VECTOR = 298;
static readonly VERBOSE = 299;
static readonly VERTEX = 300;
static readonly WAIT = 301;
static readonly WHEN = 302;
static readonly WHERE = 303;
static readonly WITH = 304;
static readonly WITHOUT = 305;
static readonly WRITE = 306;
static readonly XOR = 307;
static readonly YIELD = 308;
static readonly ZONED = 309;
static readonly IDENTIFIER = 310;
static readonly ARROW_LINE = 311;
static readonly ARROW_LEFT_HEAD = 312;
static readonly ARROW_RIGHT_HEAD = 313;
static readonly ErrorChar = 314;
static readonly EOF: number;

@@ -315,0 +319,0 @@ static readonly channelNames: string[];

@@ -21,3 +21,3 @@ {

],
"version": "2.0.0-canary-68f66d0",
"version": "2.0.0-canary-690f150",
"main": "./dist/cjs/index.cjs",

@@ -24,0 +24,0 @@ "module": "./dist/esm/index.mjs",

@@ -620,20 +620,27 @@ import { Token } from 'antlr4';

// parameters are valid values in all cases of symbolicAliasName
const baseSuggestions = parameterCompletions(
const parameterSuggestions = parameterCompletions(
dbSchema,
ExpectedParameterType.String,
);
const rulesCreatingNewAliasOrDb = [
CypherParser.RULE_createAlias,
const rulesCreatingNewDb = [
CypherParser.RULE_createDatabase,
CypherParser.RULE_createCompositeDatabase,
];
// avoid suggesting existing database names when creating a new alias or database
// avoid suggesting existing database names when creating a new database
if (
rulesCreatingNewAliasOrDb.some((rule) =>
candidateRule.ruleList.includes(rule),
)
rulesCreatingNewDb.some((rule) => candidateRule.ruleList.includes(rule))
) {
return baseSuggestions;
return parameterSuggestions;
}
// For `CREATE ALIAS aliasName FOR DATABASE databaseName`
// Should not suggest existing aliases for aliasName but should suggest existing databases for databaseName
// so we return base suggestions if we're at the `aliasName` rule
if (
candidateRule.ruleList.includes(CypherParser.RULE_createAlias) &&
candidateRule.ruleList.includes(CypherParser.RULE_aliasName)
) {
return parameterSuggestions;
}
const rulesThatOnlyAcceptAlias = [

@@ -650,3 +657,3 @@ CypherParser.RULE_dropAlias,

return [
...baseSuggestions,
...parameterSuggestions,
...(dbSchema?.aliasNames ?? []).map((aliasName) => ({

@@ -661,3 +668,3 @@ label: aliasName,

return [
...baseSuggestions,
...parameterSuggestions,
...(dbSchema.databaseNames ?? [])

@@ -678,3 +685,3 @@ .concat(dbSchema.aliasNames ?? [])

// parameters are valid values in all cases of symbolic name
const baseSuggestions = parameterCompletions(
const parameterSuggestions = parameterCompletions(
dbSchema,

@@ -704,3 +711,3 @@ inferExpectedParameterTypeFromContext(candidateRule),

) {
return baseSuggestions;
return parameterSuggestions;
}

@@ -717,3 +724,3 @@

const result = [
...baseSuggestions,
...parameterSuggestions,
...(dbSchema?.userNames ?? []).map((userName) => ({

@@ -736,3 +743,3 @@ label: userName,

return [
...baseSuggestions,
...parameterSuggestions,
...(dbSchema?.roleNames ?? []).map((roleName) => ({

@@ -739,0 +746,0 @@ label: roleName,

@@ -118,2 +118,3 @@ import CypherLexer from './generated-parser/CypherCmdLexer';

CypherLexer.AT,
CypherLexer.AUTH,
CypherLexer.BINDINGS,

@@ -203,2 +204,3 @@ CypherLexer.BOOL,

CypherLexer.HOME,
CypherLexer.ID,
CypherLexer.IF,

@@ -273,2 +275,4 @@ CypherLexer.IMMUTABLE,

CypherLexer.PROPERTY,
CypherLexer.PROVIDER,
CypherLexer.PROVIDERS,
CypherLexer.RANGE,

@@ -275,0 +279,0 @@ CypherLexer.READ,

@@ -114,2 +114,48 @@ import { CompletionItemKind } from 'vscode-languageserver-types';

test('Correctly completes database name even in a create alias statement', () => {
testCompletions({
query: 'CREATE ALIAS fo for DATABASE ',
dbSchema,
expected: [
{ label: 'db1', kind: CompletionItemKind.Value },
{ label: 'db2', kind: CompletionItemKind.Value },
{ label: 'movies', kind: CompletionItemKind.Value },
{ label: 'myMovies', kind: CompletionItemKind.Value },
{ label: 'scoped.alias', kind: CompletionItemKind.Value },
{ label: 'a.b.c.d', kind: CompletionItemKind.Value },
{ label: '$param1', kind: CompletionItemKind.Variable },
],
excluded: [
// validate invalid keyword bug isn't present
{ label: '', kind: CompletionItemKind.Keyword },
// do not suggest non-string parameters
{ label: '$param2', kind: CompletionItemKind.Variable },
{ label: '$param3', kind: CompletionItemKind.Variable },
],
});
});
test('Correctly completes database name even in a create alias statement including extra of spaces', () => {
testCompletions({
query: 'CREATE ALIAS foo FOR DATABASE ',
dbSchema,
expected: [
{ label: 'db1', kind: CompletionItemKind.Value },
{ label: 'db2', kind: CompletionItemKind.Value },
{ label: 'movies', kind: CompletionItemKind.Value },
{ label: 'myMovies', kind: CompletionItemKind.Value },
{ label: 'scoped.alias', kind: CompletionItemKind.Value },
{ label: 'a.b.c.d', kind: CompletionItemKind.Value },
{ label: '$param1', kind: CompletionItemKind.Variable },
],
excluded: [
// validate invalid keyword bug isn't present
{ label: '', kind: CompletionItemKind.Keyword },
// do not suggest non-string parameters
{ label: '$param2', kind: CompletionItemKind.Variable },
{ label: '$param3', kind: CompletionItemKind.Variable },
],
});
});
test('Suggests only aliases when dropping alias', () => {

@@ -116,0 +162,0 @@ const query = 'DROP ALIAS ';

@@ -815,3 +815,3 @@ import { getDiagnosticsForQuery } from './helpers';

{
message: 'Expected a string or a parameter',
message: 'Expected any of CHANGE, a string or a parameter',
offsets: {

@@ -818,0 +818,0 @@ end: 39,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc