@mdsvex/language-server 0.1.0-next.2 → 0.1.0-next.4

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.
Files changed (3) hide show
  1. package/dist/index.js +6 -0
  2. package/dist/server.cjs +8043 -7137
  3. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -369,6 +369,12 @@ function start() {
369
369
  async (params, token) => without_self(await handler(params, token), params.textDocument.uri, params.position)
370
370
  );
371
371
  };
372
+ for (const method of ["onDocumentColor", "onColorPresentation"]) {
373
+ const register = connection[method].bind(connection);
374
+ connection[method] = (handler) => register(
375
+ async (params, token) => await handler(params, token) ?? []
376
+ );
377
+ }
372
378
  const server = createServer(connection);
373
379
  connection.listen();
374
380
  const watched = /* @__PURE__ */ new Set();