volar-service-emmet
Advanced tools
Comparing version 0.0.34 to 0.0.35
@@ -1,3 +0,3 @@ | ||
import type { ServicePlugin } from '@volar/language-service'; | ||
export declare function create(): ServicePlugin; | ||
import type { LanguageServicePlugin } from '@volar/language-service'; | ||
export declare function create(): LanguageServicePlugin; | ||
//# sourceMappingURL=empty.d.ts.map |
@@ -1,3 +0,3 @@ | ||
import type { ServicePlugin } from '@volar/language-service'; | ||
export declare function create(): ServicePlugin; | ||
import type { LanguageServicePlugin } from '@volar/language-service'; | ||
export declare function create(): LanguageServicePlugin; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -31,4 +31,5 @@ "use strict"; | ||
const syntax = emmet.getEmmetMode(textDocument.languageId === 'vue' ? 'html' : textDocument.languageId); | ||
if (!syntax) | ||
if (!syntax) { | ||
return; | ||
} | ||
// fix https://github.com/vuejs/language-tools/issues/1329 | ||
@@ -49,4 +50,5 @@ if (syntax === 'html') { | ||
// monkey fix https://github.com/johnsoncodehk/volar/issues/1105 | ||
if (syntax === 'jsx') | ||
if (syntax === 'jsx') { | ||
return; | ||
} | ||
const emmetConfig = await getEmmetConfig(syntax); | ||
@@ -53,0 +55,0 @@ return emmet.doComplete(textDocument, position, syntax, emmetConfig); |
{ | ||
"name": "volar-service-emmet", | ||
"version": "0.0.34", | ||
"version": "0.0.35", | ||
"description": "Integrate @vscode/emmet-helper into Volar", | ||
@@ -31,3 +31,3 @@ "homepage": "https://github.com/volarjs/services/tree/master/packages/emmet", | ||
"peerDependencies": { | ||
"@volar/language-service": "~2.1.0" | ||
"@volar/language-service": "~2.2.0-alpha.0" | ||
}, | ||
@@ -42,3 +42,3 @@ "peerDependenciesMeta": { | ||
}, | ||
"gitHead": "aafefd1d65541462b3e99208f14dbb2cd8477ae9" | ||
"gitHead": "cbd8ef0ada6eae9656286535599c9b289134d1e3" | ||
} |
7270
103