vscode-html-languageservice
Advanced tools
Comparing version 1.0.0-next.8 to 1.0.0-next.9
@@ -86,2 +86,3 @@ import { TextDocument, Position, CompletionItem, CompletionList, Hover, Range, SymbolInformation, Diagnostic, TextEdit, DocumentHighlight, FormattingOptions, MarkedString, DocumentLink } from 'vscode-languageserver-types'; | ||
doComplete(document: TextDocument, position: Position, htmlDocument: HTMLDocument, options?: CompletionConfiguration): CompletionList; | ||
doHover(document: TextDocument, position: Position, htmlDocument: HTMLDocument): Hover; | ||
format(document: TextDocument, range: Range, options: HTMLFormatConfiguration): TextEdit[]; | ||
@@ -88,0 +89,0 @@ findDocumentLinks(document: TextDocument, documentContext: DocumentContext): DocumentLink[]; |
@@ -6,3 +6,3 @@ (function (factory) { | ||
else if (typeof define === 'function' && define.amd) { | ||
define(["require", "exports", './parser/htmlScanner', './parser/htmlParser', './services/htmlCompletion', './services/htmlFormatter', './services/htmlLinks', './services/htmlHighlighting', 'vscode-languageserver-types'], factory); | ||
define(["require", "exports", './parser/htmlScanner', './parser/htmlParser', './services/htmlCompletion', './services/htmlHover', './services/htmlFormatter', './services/htmlLinks', './services/htmlHighlighting', 'vscode-languageserver-types'], factory); | ||
} | ||
@@ -18,2 +18,3 @@ })(function (require, exports) { | ||
var htmlCompletion_1 = require('./services/htmlCompletion'); | ||
var htmlHover_1 = require('./services/htmlHover'); | ||
var htmlFormatter_1 = require('./services/htmlFormatter'); | ||
@@ -79,2 +80,3 @@ var htmlLinks_1 = require('./services/htmlLinks'); | ||
doComplete: htmlCompletion_1.doComplete, | ||
doHover: htmlHover_1.doHover, | ||
format: htmlFormatter_1.format, | ||
@@ -81,0 +83,0 @@ findDocumentHighlights: htmlHighlighting_1.findDocumentHighlights, |
@@ -6,3 +6,3 @@ (function (factory) { | ||
else if (typeof define === 'function' && define.amd) { | ||
define(["require", "exports", '../parser/htmlScanner', '../parser/htmlTags', '../parser/razorTags'], factory); | ||
define(["require", "exports", '../parser/htmlScanner', './tagProviders'], factory); | ||
} | ||
@@ -16,10 +16,3 @@ })(function (require, exports) { | ||
var htmlScanner_1 = require('../parser/htmlScanner'); | ||
var htmlTags_1 = require('../parser/htmlTags'); | ||
var razorTags_1 = require('../parser/razorTags'); | ||
var allTagProviders = [ | ||
htmlTags_1.getHTML5TagProvider(), | ||
htmlTags_1.getAngularTagProvider(), | ||
htmlTags_1.getIonicTagProvider(), | ||
razorTags_1.getRazorTagProvider() | ||
]; | ||
var tagProviders_1 = require('./tagProviders'); | ||
function doComplete(document, position, htmlDocument, settings) { | ||
@@ -30,3 +23,3 @@ var result = { | ||
}; | ||
var tagProviders = allTagProviders.filter(function (p) { return p.isApplicable(document.languageId) && (!settings || !!settings[p.getId()]); }); | ||
var tagProviders = tagProviders_1.allTagProviders.filter(function (p) { return p.isApplicable(document.languageId) && (!settings || !!settings[p.getId()]); }); | ||
var offset = document.offsetAt(position); | ||
@@ -33,0 +26,0 @@ var node = htmlDocument.findNodeBefore(offset); |
{ | ||
"name": "vscode-html-languageservice", | ||
"version": "1.0.0-next.8", | ||
"version": "1.0.0-next.9", | ||
"description": "Language service for HTML", | ||
@@ -5,0 +5,0 @@ "main": "./lib/htmlLanguageService.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
294829
31
4913