Skip to content

Commit 8557932

Browse files
committed
context keys: parser: report a parsing error on an empty string
1 parent 4bb4ae5 commit 8557932

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vs/platform/contextkey/common/contextkey.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ export class Parser {
332332
parse(input: string): ContextKeyExpression | undefined {
333333

334334
if (input === '') {
335+
this._parsingErrors.push('Expected an expression but got an empty string');
335336
return undefined;
336337
}
337338

0 commit comments

Comments
 (0)