Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vscode-json-languageservice

Package Overview
Dependencies
Maintainers
7
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-json-languageservice - npm Package Compare versions

Comparing version 3.11.0 to 4.0.0

5

CHANGELOG.md

@@ -0,1 +1,6 @@

4.0.0 / 2020-12-14
================
* Update to `vscode-languageserver-types@3.16`
* Removed deprecated `findColorSymbols`
3.11.0 / 2020-11-30

@@ -2,0 +7,0 @@ ================

2

lib/esm/jsonLanguageService.d.ts

@@ -19,4 +19,2 @@ import { Thenable, ASTNode, Color, ColorInformation, ColorPresentation, LanguageServiceParams, LanguageSettings, DocumentLanguageSettings, FoldingRange, JSONSchema, SelectionRange, FoldingRangesContext, DocumentSymbolsContext, ColorInformationContext as DocumentColorsContext, TextDocument, Position, CompletionItem, CompletionList, Hover, Range, SymbolInformation, Diagnostic, TextEdit, FormattingOptions, DocumentSymbol, DefinitionLink, MatchingSchema } from './jsonLanguageTypes';

findDocumentSymbols2(document: TextDocument, doc: JSONDocument, context?: DocumentSymbolsContext): DocumentSymbol[];
/** deprecated, use findDocumentColors instead */
findColorSymbols(document: TextDocument, doc: JSONDocument): Thenable<Range[]>;
findDocumentColors(document: TextDocument, doc: JSONDocument, context?: DocumentColorsContext): Thenable<ColorInformation[]>;

@@ -23,0 +21,0 @@ getColorPresentations(document: TextDocument, doc: JSONDocument, color: Color, range: Range): ColorPresentation[];

@@ -45,3 +45,2 @@ /*---------------------------------------------------------------------------------------------

findDocumentSymbols2: jsonDocumentSymbols.findDocumentSymbols2.bind(jsonDocumentSymbols),
findColorSymbols: function (d, s) { return jsonDocumentSymbols.findDocumentColors(d, s).then(function (s) { return s.map(function (s) { return s.range; }); }); },
findDocumentColors: jsonDocumentSymbols.findDocumentColors.bind(jsonDocumentSymbols),

@@ -48,0 +47,0 @@ getColorPresentations: jsonDocumentSymbols.getColorPresentations.bind(jsonDocumentSymbols),

@@ -19,4 +19,2 @@ import { Thenable, ASTNode, Color, ColorInformation, ColorPresentation, LanguageServiceParams, LanguageSettings, DocumentLanguageSettings, FoldingRange, JSONSchema, SelectionRange, FoldingRangesContext, DocumentSymbolsContext, ColorInformationContext as DocumentColorsContext, TextDocument, Position, CompletionItem, CompletionList, Hover, Range, SymbolInformation, Diagnostic, TextEdit, FormattingOptions, DocumentSymbol, DefinitionLink, MatchingSchema } from './jsonLanguageTypes';

findDocumentSymbols2(document: TextDocument, doc: JSONDocument, context?: DocumentSymbolsContext): DocumentSymbol[];
/** deprecated, use findDocumentColors instead */
findColorSymbols(document: TextDocument, doc: JSONDocument): Thenable<Range[]>;
findDocumentColors(document: TextDocument, doc: JSONDocument, context?: DocumentColorsContext): Thenable<ColorInformation[]>;

@@ -23,0 +21,0 @@ getColorPresentations(document: TextDocument, doc: JSONDocument, color: Color, range: Range): ColorPresentation[];

@@ -67,3 +67,2 @@ /*---------------------------------------------------------------------------------------------

findDocumentSymbols2: jsonDocumentSymbols.findDocumentSymbols2.bind(jsonDocumentSymbols),
findColorSymbols: function (d, s) { return jsonDocumentSymbols.findDocumentColors(d, s).then(function (s) { return s.map(function (s) { return s.range; }); }); },
findDocumentColors: jsonDocumentSymbols.findDocumentColors.bind(jsonDocumentSymbols),

@@ -70,0 +69,0 @@ getColorPresentations: jsonDocumentSymbols.getColorPresentations.bind(jsonDocumentSymbols),

{
"name": "vscode-json-languageservice",
"version": "3.11.0",
"version": "4.0.0",
"description": "Language service for JSON",

@@ -30,3 +30,3 @@ "main": "./lib/umd/jsonLanguageService.js",

"vscode-languageserver-textdocument": "^1.0.1",
"vscode-languageserver-types": "3.16.0-next.2",
"vscode-languageserver-types": "^3.16.0",
"vscode-nls": "^5.0.0",

@@ -33,0 +33,0 @@ "vscode-uri": "^2.1.2"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc