monaco-editor
Version:
A browser based code editor
33 lines • 1.77 kB
JavaScript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
;
import { createScanner } from './parser/htmlScanner.js';
import { parse } from './parser/htmlParser.js';
import { HTMLCompletion } from './services/htmlCompletion.js';
import { doHover } from './services/htmlHover.js';
import { format } from './services/htmlFormatter.js';
import { findDocumentLinks } from './services/htmlLinks.js';
import { findDocumentHighlights } from './services/htmlHighlighting.js';
import { findDocumentSymbols } from './services/htmlSymbolsProvider.js';
import { getFoldingRanges } from './services/htmlFolding.js';
export * from './htmlLanguageTypes.js';
export * from './../vscode-languageserver-types/main.js';
export function getLanguageService() {
var htmlCompletion = new HTMLCompletion();
return {
createScanner: createScanner,
parseHTMLDocument: function (document) { return parse(document.getText()); },
doComplete: htmlCompletion.doComplete.bind(htmlCompletion),
setCompletionParticipants: htmlCompletion.setCompletionParticipants.bind(htmlCompletion),
doHover: doHover,
format: format,
findDocumentHighlights: findDocumentHighlights,
findDocumentLinks: findDocumentLinks,
findDocumentSymbols: findDocumentSymbols,
getFoldingRanges: getFoldingRanges,
doTagComplete: htmlCompletion.doTagComplete.bind(htmlCompletion),
};
}
//# sourceMappingURL=htmlLanguageService.js.map