mirror of
https://github.com/Microsoft/vscode
synced 2024-09-19 02:26:04 +00:00
context keys: parser: fix new parser's return type
This commit is contained in:
parent
08c67e4576
commit
f9f60673fd
|
@ -129,7 +129,7 @@ export abstract class ContextKeyExpr {
|
|||
/**
|
||||
* Warning: experimental; the API might change.
|
||||
*/
|
||||
public static deserializeOrErrorNew(serialized: string | null | undefined): { type: 'ok'; expr: ContextKeyExpr } | { type: 'error'; readonly lexingErrors: string[]; readonly parsingErrors: readonly string[] } {
|
||||
public static deserializeOrErrorNew(serialized: string | null | undefined): { type: 'ok'; expr: ContextKeyExpression } | { type: 'error'; readonly lexingErrors: string[]; readonly parsingErrors: readonly string[] } {
|
||||
if (!serialized) {
|
||||
return { type: 'error', lexingErrors: [], parsingErrors: [] };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue