modern-monaco 0.0.0-beta.0 → 0.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -112,7 +112,7 @@ var schemas = [
112
112
 
113
113
  // src/lsp/json/setup.ts
114
114
  import * as ls from "../language-service.js";
115
- async function setup2(monaco, languageId, workspace, languageSettings, formattingOptions) {
115
+ async function setup(monaco, languageId, workspace, languageSettings, formattingOptions) {
116
116
  const { editor, languages } = monaco;
117
117
  const createData = {
118
118
  settings: {
@@ -152,10 +152,9 @@ async function setup2(monaco, languageId, workspace, languageSettings, formattin
152
152
  resetSchema(event.model.uri);
153
153
  }
154
154
  });
155
- ls.setup(monaco);
156
- ls.enableBasicFeatures(languageId, worker, [" ", ":", '"'], workspace);
157
- ls.enableColorPresentation(languageId, worker);
158
- ls.enableDocumentLinks(languageId, worker);
155
+ ls.registerBasicFeatures(languageId, worker, [" ", ":", '"'], workspace);
156
+ ls.registerColorPresentation(languageId, worker);
157
+ ls.registerDocumentLinks(languageId, worker);
159
158
  languages.registerCodeLensProvider(languageId, {
160
159
  provideCodeLenses: function(model, _token) {
161
160
  const isImportMap = model.uri.scheme == "file" && ["importmap.json", "import_map.json", "import-map.json", "importMap.json"].some((name) => model.uri.path === "/" + name);
@@ -254,5 +253,5 @@ function getWorkerUrl() {
254
253
  }
255
254
  export {
256
255
  getWorkerUrl,
257
- setup2 as setup
256
+ setup
258
257
  };