How to use the vscode-json-languageservice.TextDocument.create function in vscode-json-languageservice

To help you get started, we’ve selected a few vscode-json-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 TypeFox / monaco-languageclient / examples / browser / src / client.ts View on Github external
function createDocument(model: monaco.editor.IReadOnlyModel) {
    return TextDocument.create(MODEL_URI, model.getModeId(), model.getVersionId(), model.getValue());
}