diff --git a/package.json b/package.json index 04a646e9..b1d7e499 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "monaco-html", - "version": "1.1.0", + "version": "1.1.0-next.1", "description": "HTML plugin for the Monaco Editor", "scripts": { "compile": "gulp compile", @@ -29,7 +29,7 @@ "object-assign": "^4.1.0", "rimraf": "^2.5.2", "typescript": "2.0.3", - "vscode-html-languageservice": "^1.0.0-next.2", + "vscode-html-languageservice": "^1.0.0-next.5", "vscode-languageserver-types": "^1.0.4-next.2" } } diff --git a/src/htmlWorker.ts b/src/htmlWorker.ts index 1db002ea..a0d37536 100644 --- a/src/htmlWorker.ts +++ b/src/htmlWorker.ts @@ -47,9 +47,9 @@ export class HTMLWorker { let highlights = this._languageService.findDocumentHighlights(document, position, htmlDocument); return Promise.as(highlights); } - findDocumentLinks(uri: string, workspacePath: string): Promise { + findDocumentLinks(uri: string): Promise { let document = this._getTextDocument(uri); - let links = this._languageService.findDocumentLinks(document, workspacePath); + let links = this._languageService.findDocumentLinks(document, null); return Promise.as(links); } private _getTextDocument(uri: string): ls.TextDocument { diff --git a/src/languageFeatures.ts b/src/languageFeatures.ts index aeb8fb05..39b9b0b7 100644 --- a/src/languageFeatures.ts +++ b/src/languageFeatures.ts @@ -371,7 +371,7 @@ export class DocumentLinkAdapter implements monaco.languages.LinkProvider { public provideLinks(model: monaco.editor.IReadOnlyModel, token: CancellationToken): Thenable { const resource = model.uri; - return wireCancellationToken(token, this._worker(resource).then(worker => worker.findDocumentLinks(resource.toString(), null)).then(items => { + return wireCancellationToken(token, this._worker(resource).then(worker => worker.findDocumentLinks(resource.toString())).then(items => { if (!items) { return; }