vscode-html-languageservice
Advanced tools
Comparing version 3.0.4-next.15 to 3.1.0-next.0
@@ -1,4 +0,6 @@ | ||
3.0.4 / | ||
3.1.0 / | ||
================== | ||
* Use `TextDocument` from `vscode-languageserver-textdocument` | ||
* Fix formatting for `<p>` tags with optional closing | ||
* New API `findOnTypeRenameRanges` | ||
@@ -5,0 +7,0 @@ 3.0.3 / 2019-07-25 |
// copied from js-beautify/js/lib/beautify-css.js | ||
// version: 1.10.3 | ||
// version: 1.11.0 | ||
/* AUTO-GENERATED. DO NOT MODIFY. */ | ||
@@ -4,0 +4,0 @@ /* |
@@ -24,5 +24,5 @@ import { Position, CompletionList, Hover, Range, SymbolInformation, TextEdit, DocumentHighlight, DocumentLink, FoldingRange, SelectionRange, WorkspaceEdit } from 'vscode-languageserver-types'; | ||
findMatchingTagPosition(document: TextDocument, position: Position, htmlDocument: HTMLDocument): Position | null; | ||
findSyncedRegions(document: TextDocument, position: Position, htmlDocument: HTMLDocument): Range[] | null; | ||
findOnTypeRenameRanges(document: TextDocument, position: Position, htmlDocument: HTMLDocument): Range[] | null; | ||
} | ||
export declare function getLanguageService(options?: LanguageServiceOptions): LanguageService; | ||
export declare function newHTMLDataProvider(id: string, customData: HTMLDataV1): IHTMLDataProvider; |
@@ -15,3 +15,3 @@ /*--------------------------------------------------------------------------------------------- | ||
import { findMatchingTagPosition } from './services/htmlMatchingTagPosition'; | ||
import { findSyncedRegions } from './services/htmlSyncedRegions'; | ||
import { findOnTypeRenameRanges } from './services/htmlSyncedRegions'; | ||
import { getFoldingRanges } from './services/htmlFolding'; | ||
@@ -45,3 +45,3 @@ import { getSelectionRanges } from './services/htmlSelectionRange'; | ||
findMatchingTagPosition: findMatchingTagPosition, | ||
findSyncedRegions: findSyncedRegions | ||
findOnTypeRenameRanges: findOnTypeRenameRanges | ||
}; | ||
@@ -48,0 +48,0 @@ } |
@@ -6,3 +6,3 @@ /*--------------------------------------------------------------------------------------------- | ||
import { Range } from 'vscode-languageserver-types'; | ||
export function findSyncedRegions(document, position, htmlDocument) { | ||
export function findOnTypeRenameRanges(document, position, htmlDocument) { | ||
var offset = document.offsetAt(position); | ||
@@ -9,0 +9,0 @@ var node = htmlDocument.findNodeAt(offset); |
// copied from js-beautify/js/lib/beautify-css.js | ||
// version: 1.10.3 | ||
// version: 1.11.0 | ||
/* AUTO-GENERATED. DO NOT MODIFY. */ | ||
@@ -4,0 +4,0 @@ /* |
@@ -24,5 +24,5 @@ import { Position, CompletionList, Hover, Range, SymbolInformation, TextEdit, DocumentHighlight, DocumentLink, FoldingRange, SelectionRange, WorkspaceEdit } from 'vscode-languageserver-types'; | ||
findMatchingTagPosition(document: TextDocument, position: Position, htmlDocument: HTMLDocument): Position | null; | ||
findSyncedRegions(document: TextDocument, position: Position, htmlDocument: HTMLDocument): Range[] | null; | ||
findOnTypeRenameRanges(document: TextDocument, position: Position, htmlDocument: HTMLDocument): Range[] | null; | ||
} | ||
export declare function getLanguageService(options?: LanguageServiceOptions): LanguageService; | ||
export declare function newHTMLDataProvider(id: string, customData: HTMLDataV1): IHTMLDataProvider; |
@@ -59,3 +59,3 @@ /*--------------------------------------------------------------------------------------------- | ||
findMatchingTagPosition: htmlMatchingTagPosition_1.findMatchingTagPosition, | ||
findSyncedRegions: htmlSyncedRegions_1.findSyncedRegions | ||
findOnTypeRenameRanges: htmlSyncedRegions_1.findOnTypeRenameRanges | ||
}; | ||
@@ -62,0 +62,0 @@ } |
@@ -17,3 +17,3 @@ /*--------------------------------------------------------------------------------------------- | ||
var vscode_languageserver_types_1 = require("vscode-languageserver-types"); | ||
function findSyncedRegions(document, position, htmlDocument) { | ||
function findOnTypeRenameRanges(document, position, htmlDocument) { | ||
var offset = document.offsetAt(position); | ||
@@ -39,3 +39,3 @@ var node = htmlDocument.findNodeAt(offset); | ||
} | ||
exports.findSyncedRegions = findSyncedRegions; | ||
exports.findOnTypeRenameRanges = findOnTypeRenameRanges; | ||
}); |
{ | ||
"name": "vscode-html-languageservice", | ||
"version": "3.0.4-next.15", | ||
"version": "3.1.0-next.0", | ||
"description": "Language service for HTML", | ||
@@ -18,15 +18,17 @@ "main": "./lib/umd/htmlLanguageService.js", | ||
"devDependencies": { | ||
"@types/mocha": "^5.2.7", | ||
"@types/mocha": "^7.0.2", | ||
"@types/node": "^10.12.21", | ||
"js-beautify": "^1.10.3", | ||
"mocha": "^7.0.1", | ||
"rimraf": "^3.0.0", | ||
"tslint": "^6.0.0", | ||
"typescript": "^3.7.5", | ||
"@typescript-eslint/eslint-plugin": "^2.30.0", | ||
"@typescript-eslint/parser": "^2.30.0", | ||
"eslint": "^6.8.0", | ||
"js-beautify": "^1.11.0", | ||
"mocha": "^7.1.2", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^3.8.3", | ||
"vscode-web-custom-data": "^0.1.3" | ||
}, | ||
"dependencies": { | ||
"vscode-languageserver-textdocument": "^1.0.1-next.1", | ||
"vscode-languageserver-textdocument": "^1.0.1", | ||
"vscode-languageserver-types": "^3.15.1", | ||
"vscode-nls": "^4.1.1", | ||
"vscode-nls": "^4.1.2", | ||
"vscode-uri": "^2.1.1" | ||
@@ -43,3 +45,3 @@ }, | ||
"test": "npm run compile && mocha && npm run lint", | ||
"lint": "tslint src/**/*.ts", | ||
"lint": "eslint src/**/*.ts", | ||
"install-types-next": "yarn add vscode-languageserver-types@next -f -S && yarn add vscode-languageserver-textdocument@next -f -S", | ||
@@ -46,0 +48,0 @@ "copy-jsbeautify": "node ./build/copy-jsbeautify.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1488616
75
31336
10