volar-service-pug
Advanced tools
Comparing version 0.0.3 to 0.0.4
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.register = void 0; | ||
const vscode = __importStar(require("vscode-languageserver-types")); | ||
function register() { | ||
@@ -47,3 +23,7 @@ return (pugDoc) => { | ||
if (nodeLine !== endLine) { | ||
result.push(vscode.FoldingRange.create(nodeLine, endLine, undefined, undefined, node.type === 'BlockComment' ? vscode.FoldingRangeKind.Comment : undefined)); | ||
result.push({ | ||
startLine: nodeLine, | ||
endLine, | ||
kind: node.type === 'BlockComment' ? 'comment' : undefined, | ||
}); | ||
} | ||
@@ -50,0 +30,0 @@ visitNode(node.block, endLine); |
{ | ||
"name": "volar-service-pug", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"main": "out/index.js", | ||
@@ -16,18 +16,15 @@ "license": "MIT", | ||
"dependencies": { | ||
"@volar/language-service": "*", | ||
"@volar/source-map": "*", | ||
"muggle-string": "^0.3.1", | ||
"pug-lexer": "^5.0.1", | ||
"pug-parser": "^6.0.0", | ||
"volar-service-html": "0.0.3", | ||
"volar-service-html": "0.0.4", | ||
"vscode-html-languageservice": "^5.0.4", | ||
"vscode-languageserver-textdocument": "^1.0.8", | ||
"vscode-languageserver-types": "^3.17.2" | ||
"vscode-languageserver-textdocument": "^1.0.8" | ||
}, | ||
"peerDependencies": { | ||
"@volar/language-service": "*", | ||
"@volar/source-map": "*" | ||
}, | ||
"browser": { | ||
"./out/index.js": "./out/empty.js" | ||
}, | ||
"gitHead": "28896539331e31b4ef1064b6839ea0924d5d28d0" | ||
"gitHead": "f5d49495d6698761f4df8c9ef2747cc01fc777d6" | ||
} |
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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 2 instances 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
8
35541
817
3
+ Added@volar/language-service@*
+ Added@volar/source-map@*
+ Addedvolar-service-html@0.0.4(transitive)
- Removedvscode-languageserver-types@^3.17.2
- Removedvolar-service-html@0.0.3(transitive)
Updatedvolar-service-html@0.0.4