@marko/language-server 1.1.5 → 1.1.6
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/dist/index.js +3 -4
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +2 -3
- package/dist/index.mjs.map +2 -2
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1974,8 +1974,6 @@ var format2 = async (doc, params, cancel) => {
|
|
|
1974
1974
|
const options = {
|
|
1975
1975
|
parser: "marko",
|
|
1976
1976
|
filepath,
|
|
1977
|
-
markoCompiler: Project3.getCompiler(dir),
|
|
1978
|
-
markoCompilerConfig: Project3.getConfig(dir),
|
|
1979
1977
|
plugins: [markoPrettier],
|
|
1980
1978
|
tabWidth: params.options.tabSize,
|
|
1981
1979
|
useTabs: params.options.insertSpaces === false,
|
|
@@ -1985,6 +1983,7 @@ var format2 = async (doc, params, cancel) => {
|
|
|
1985
1983
|
};
|
|
1986
1984
|
if (cancel.isCancellationRequested)
|
|
1987
1985
|
return;
|
|
1986
|
+
markoPrettier.setCompiler(Project3.getCompiler(dir), Project3.getConfig(dir));
|
|
1988
1987
|
const ret = [
|
|
1989
1988
|
TextEdit6.replace(
|
|
1990
1989
|
{
|
|
@@ -2034,7 +2033,7 @@ import {
|
|
|
2034
2033
|
// src/ts-plugin/host.ts
|
|
2035
2034
|
import path6 from "path";
|
|
2036
2035
|
import * as defaultCompiler from "@marko/compiler";
|
|
2037
|
-
import
|
|
2036
|
+
import defaultConfig from "@marko/compiler/config";
|
|
2038
2037
|
import * as defaultTranslator from "@marko/translator-default";
|
|
2039
2038
|
import {
|
|
2040
2039
|
Processors,
|