Skip to content

Commit

Permalink
Refactored JSONSchemaService to extend json languageservices schema s…
Browse files Browse the repository at this point in the history
  • Loading branch information
JPinkney committed Sep 27, 2019
1 parent 5a985c1 commit 599c6e6
Show file tree
Hide file tree
Showing 11 changed files with 136 additions and 609 deletions.
4 changes: 2 additions & 2 deletions src/languageservice/services/documentSymbols.ts
Expand Up @@ -8,14 +8,14 @@
import { parse as parseYAML } from '../parser/yamlParser07';

import { SymbolInformation, TextDocument, DocumentSymbol } from 'vscode-languageserver-types';
import { JSONSchemaService } from './jsonSchemaService';
import { YAMLSchemaService } from './yamlSchemaService';
import { JSONDocumentSymbols } from 'vscode-json-languageservice/lib/umd/services/jsonDocumentSymbols';

export class YAMLDocumentSymbols {

private jsonDocumentSymbols;

constructor(schemaService: JSONSchemaService) {
constructor(schemaService: YAMLSchemaService) {
this.jsonDocumentSymbols = new JSONDocumentSymbols(schemaService);
}

Expand Down

0 comments on commit 599c6e6

Please sign in to comment.