modern-monaco 0.0.0-beta.0 → 0.0.0-beta.2
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.
- package/LICENSE +1 -1
- package/README.md +129 -87
- package/dist/cache.js +1 -1
- package/dist/core.js +479 -0
- package/dist/editor-core.js +128 -21
- package/dist/index.js +29166 -449
- package/dist/lsp/css/setup.js +6 -7
- package/dist/lsp/css/worker.js +8961 -1355
- package/dist/lsp/html/setup.js +7 -8
- package/dist/lsp/html/worker.js +6506 -672
- package/dist/lsp/json/setup.js +5 -6
- package/dist/lsp/json/worker.js +395 -393
- package/dist/lsp/language-service.js +21 -21
- package/dist/lsp/typescript/libs.js +11 -9
- package/dist/lsp/typescript/setup.js +6 -7
- package/dist/shiki-wasm.js +1 -1
- package/dist/shiki.js +129 -751
- package/dist/ssr/index.js +13 -18
- package/dist/ssr/workerd.js +13 -18
- package/dist/util.js +7 -3
- package/dist/workspace.js +16 -16
- package/package.json +31 -13
- package/types/core.d.ts +4 -0
- package/types/index.d.ts +31 -8
- package/types/jsonSchema.d.ts +2 -0
- package/types/lsp.d.ts +7 -1
- package/types/ssr.d.ts +5 -5
- package/types/textmate.d.ts +1 -1
- package/types/cache.d.ts +0 -7
package/dist/lsp/json/setup.js
CHANGED
|
@@ -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
|
|
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.
|
|
156
|
-
ls.
|
|
157
|
-
ls.
|
|
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
|
-
|
|
256
|
+
setup
|
|
258
257
|
};
|