Skip to content

Commit

Permalink
Merge pull request #217 from redhat-developer/autocompletion-json-7
Browse files Browse the repository at this point in the history
Removed json 4 parser and updated completion to work with json 7 parser
  • Loading branch information
JPinkney committed Jan 16, 2020
2 parents a66f06d + 0040590 commit 76e1472
Show file tree
Hide file tree
Showing 11 changed files with 269 additions and 1,597 deletions.
2 changes: 2 additions & 0 deletions src/languageservice/jsonASTTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export interface BaseASTNode {
readonly length: number;
readonly children?: ASTNode[];
readonly value?: string | boolean | number | null;
location: string;
getNodeFromOffsetEndInclusive(offset: number): ASTNode;
}
export interface ObjectASTNode extends BaseASTNode {
readonly type: 'object';
Expand Down
3 changes: 2 additions & 1 deletion src/languageservice/jsonSchema07.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ export interface JSONSchema {
markdownDescription?: string;
// tslint:disable-next-line: no-any
body?: any;
bodyText?: string; }[]; // VSCode extension: body: a object that will be converted to a JSON string. bodyText: text with \t and \n
bodyText?: string;
}[]; // VSCode extension: body: a object that will be converted to a JSON string. bodyText: text with \t and \n

errorMessage?: string; // VSCode extension
patternErrorMessage?: string; // VSCode extension
Expand Down
Loading

0 comments on commit 76e1472

Please sign in to comment.