
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
@johnsoncodehk/vscode-html-languageservice
Advanced tools
HTML language service extracted from VSCode to be reused, e.g in the Monaco editor.
The vscode-html-languageservice contains the language smarts behind the HTML editing experience of Visual Studio Code and the Monaco editor.
doComplete / doComplete2 (async) provide completion proposals for a given location.
setCompletionParticipants allows participant to provide suggestions for specific tokens.
doHover provides hover information at a given location.
format formats the code at the given range.
findDocumentLinks finds all links in the document.
findDocumentSymbols finds all the symbols in the document.
getFoldingRanges return folding ranges for the given document.
getSelectionRanges return the selection ranges for the given document. ...
For the complete API see htmlLanguageService.ts and htmlLanguageTypes.ts
npm install --save vscode-html-languageservice
npm test
to compile and run testsHow can I run and debug the service?
htmlCompletion.ts
How can I run and debug the service inside an instance of VSCode?
vscode-html-languageservice
repo to vscode/extensions/html-language-features/server
to run VSCode with the latest changes from that folder:
vscode-html-languageservice
, npm link
vscode/extensions/html-language-features/server
, npm link vscode-html-languageservice
vscode/scripts/code.sh|bat
) and open a .html
filevscode-html-languageservice
sources, run command Debug: Attach to Node process
and pick the code-oss
process with the html-language-features
path
htmlCompletion.ts
.html
file(MIT License)
Copyright 2016-2023, Microsoft
src/languageFacts/data/webCustomData.ts
(shipped as lib/esm/languageFacts/data/webCustomData.ts
and lib/umd/languageFacts/data/webCustomData.ts
)
are built upon content from Mozilla Developer Network and distributed under CC BY-SA 2.5.
FAQs
Language service for HTML
The npm package @johnsoncodehk/vscode-html-languageservice receives a total of 4,230 weekly downloads. As such, @johnsoncodehk/vscode-html-languageservice popularity was classified as popular.
We found that @johnsoncodehk/vscode-html-languageservice demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.