How to use the vscode-css-languageservice.TextDocument function in vscode-css-languageservice

To help you get started, we’ve selected a few vscode-css-languageservice examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github runem / lit-analyzer / packages / lit-analyzer / src / analyze / document-analyzer / css / lit-css-vscode-service.ts View on Github external
function makeVscTextDocument(cssDocument: CssDocument): vscode.TextDocument {
	return vscode.TextDocument.create("untitled://embedded.css", "css", 1, cssDocument.virtualDocument.text);
}