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

volar-service-emmet

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

volar-service-emmet - npm Package Compare versions

Comparing version 0.0.47 to 0.0.48

1

empty.js

@@ -8,2 +8,3 @@ "use strict";

name: 'emmet (stub)',
capabilities: {},
create() {

@@ -10,0 +11,0 @@ return {};

15

index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.create = void 0;
const vscode_uri_1 = require("vscode-uri");
const abbreviationActions_1 = require("./lib/abbreviationActions");
const parseDocument_1 = require("./lib/parseDocument");
const util_1 = require("./lib/util");
const abbreviationActions_1 = require("./lib/abbreviationActions");
function create({ mappedLanguages = {}, } = {}) {
return {
name: 'emmet',
// https://docs.emmet.io/abbreviations/syntax/
triggerCharacters: '>+^*()#.[]$@-{}'.split(''),
// @ts-expect-error Need to update @volar/language-service
capabilities: {
completionProvider: {
// https://docs.emmet.io/abbreviations/syntax/
triggerCharacters: '>+^*()#.[]$@-{}'.split(''),
},
},
create(context, languageService) {

@@ -167,3 +171,4 @@ let lastCompletionType;

else {
const documentUri = context.decodeEmbeddedDocumentUri(document.uri)?.[0] ?? document.uri;
const uri = vscode_uri_1.URI.parse(document.uri);
const documentUri = context.decodeEmbeddedDocumentUri(uri)?.[0] ?? uri;
isNoisePromise = languageService.findDocumentSymbols(documentUri).then(symbols => {

@@ -170,0 +175,0 @@ return !!symbols && symbols.some(x => abbreviation === x.name || (abbreviation.startsWith(x.name + '.') && !/>|\*|\+/.test(abbreviation)));

@@ -14,6 +14,6 @@ /// <reference path="typings/EmmetFlatNode.d.ts" />

*/
export declare function isValidLocationForEmmetAbbreviation(context: vscode.ServiceContext, document: vscode.TextDocument, rootNode: Node | undefined, currentNode: Node | undefined, syntax: string, offset: number, abbreviationRange: vscode.Range): Promise<boolean>;
export declare function getSyntaxFromArgs(context: vscode.ServiceContext, args: {
export declare function isValidLocationForEmmetAbbreviation(context: vscode.LanguageServiceContext, document: vscode.TextDocument, rootNode: Node | undefined, currentNode: Node | undefined, syntax: string, offset: number, abbreviationRange: vscode.Range): Promise<boolean>;
export declare function getSyntaxFromArgs(context: vscode.LanguageServiceContext, args: {
[x: string]: string;
}): Promise<string | undefined>;
//# sourceMappingURL=abbreviationActions.d.ts.map

@@ -7,3 +7,3 @@ /// <reference path="typings/EmmetFlatNode.d.ts" />

export declare function isStyleSheet(syntax: string): boolean;
export declare function getMappingForIncludedLanguages(context: vscode.ServiceContext): Promise<Record<string, string>>;
export declare function getMappingForIncludedLanguages(context: vscode.LanguageServiceContext): Promise<Record<string, string>>;
/**

@@ -35,3 +35,3 @@ * Get the corresponding emmet mode for given vscode language mode

export declare function getHtmlFlatNode(documentText: string, root: FlatNode | undefined, offset: number, includeNodeBoundary: boolean): HtmlFlatNode | undefined;
export declare function getEmmetConfiguration(context: vscode.ServiceContext, syntax: string): Promise<{
export declare function getEmmetConfiguration(context: vscode.LanguageServiceContext, syntax: string): Promise<{
preferences: any;

@@ -38,0 +38,0 @@ showExpandedAbbreviation: any;

{
"name": "volar-service-emmet",
"version": "0.0.47",
"version": "0.0.48",
"description": "Integrate @vscode/emmet-helper into Volar",

@@ -29,3 +29,4 @@ "homepage": "https://github.com/volarjs/services/tree/master/packages/emmet",

"@emmetio/html-matcher": "^1.3.0",
"@vscode/emmet-helper": "^2.9.2"
"@vscode/emmet-helper": "^2.9.2",
"vscode-uri": "^3.0.8"
},

@@ -36,3 +37,3 @@ "devDependencies": {

"peerDependencies": {
"@volar/language-service": "~2.2.3"
"@volar/language-service": "~2.3.0-alpha.0"
},

@@ -47,3 +48,3 @@ "peerDependenciesMeta": {

},
"gitHead": "d53f4dfa7007e77409af3ef28cc165e9940e7313"
"gitHead": "6a80c92133e154907a79eefa05603f63994214c3"
}
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