Skip to content

Commit

Permalink
Fixing example for breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Berthoux committed Aug 16, 2018
1 parent 1726c67 commit fac9a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/browser/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ monaco.languages.registerDocumentRangeFormattingEditProvider(LANGUAGE_ID, {
});

monaco.languages.registerDocumentSymbolProvider(LANGUAGE_ID, {
provideDocumentSymbols(model, token): monaco.languages.SymbolInformation[] | Thenable<monaco.languages.SymbolInformation[]> {
provideDocumentSymbols(model, token): monaco.languages.SymbolInformation[] | Thenable<monaco.languages.DocumentSymbol[]> {
const document = createDocument(model);
const jsonDocument = jsonService.parseJSONDocument(document);
return p2m.asSymbolInformations(jsonService.findDocumentSymbols(document, jsonDocument));
Expand Down

0 comments on commit fac9a58

Please sign in to comment.