fix: less truncation for monaco
This commit is contained in:
parent
5b941bb5a9
commit
0dbedc27f3
4 changed files with 42 additions and 5 deletions
|
@ -26,5 +26,10 @@
|
||||||
"typescript": "^5.7.3",
|
"typescript": "^5.7.3",
|
||||||
"vite": "^5.4.11",
|
"vite": "^5.4.11",
|
||||||
"vite-plugin-solid": "^2.11.0"
|
"vite-plugin-solid": "^2.11.0"
|
||||||
|
},
|
||||||
|
"pnpm": {
|
||||||
|
"patchedDependencies": {
|
||||||
|
"monaco-editor@0.52.0": "patches/monaco-editor@0.52.0.patch"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,6 +52,7 @@ const compilerOptions: languages.typescript.CompilerOptions = {
|
||||||
jsx: languages.typescript.JsxEmit.Preserve,
|
jsx: languages.typescript.JsxEmit.Preserve,
|
||||||
allowNonTsExtensions: true,
|
allowNonTsExtensions: true,
|
||||||
allowImportingTsExtensions: true,
|
allowImportingTsExtensions: true,
|
||||||
|
noErrorTruncation: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
languages.typescript.typescriptDefaults.setCompilerOptions(compilerOptions)
|
languages.typescript.typescriptDefaults.setCompilerOptions(compilerOptions)
|
||||||
|
|
26
patches/monaco-editor@0.52.0.patch
Normal file
26
patches/monaco-editor@0.52.0.patch
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
diff --git a/dev/vs/language/typescript/tsWorker.js b/dev/vs/language/typescript/tsWorker.js
|
||||||
|
index cb194f17086a8fa0c6c15a125f3403af1a8e106f..7d6042767cc5a09262bd2ad9e313b2f252b28e3e 100644
|
||||||
|
--- a/dev/vs/language/typescript/tsWorker.js
|
||||||
|
+++ b/dev/vs/language/typescript/tsWorker.js
|
||||||
|
@@ -19471,7 +19471,7 @@ ${lanes.join("\n")}
|
||||||
|
init_ts2();
|
||||||
|
resolvingEmptyArray = [];
|
||||||
|
externalHelpersModuleNameText = "tslib";
|
||||||
|
- defaultMaximumTruncationLength = 160;
|
||||||
|
+ defaultMaximumTruncationLength = 1600;
|
||||||
|
noTruncationMaximumTruncationLength = 1e6;
|
||||||
|
stringWriter = createSingleLineStringWriter();
|
||||||
|
getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
||||||
|
diff --git a/esm/vs/language/typescript/ts.worker.js b/esm/vs/language/typescript/ts.worker.js
|
||||||
|
index 2858333c5e9fe2cf3e59848c966be36031afac3d..549429bc362fdb86c4be8c15d77ccc7881d526a0 100644
|
||||||
|
--- a/esm/vs/language/typescript/ts.worker.js
|
||||||
|
+++ b/esm/vs/language/typescript/ts.worker.js
|
||||||
|
@@ -19453,7 +19453,7 @@ ${lanes.join("\n")}
|
||||||
|
init_ts2();
|
||||||
|
resolvingEmptyArray = [];
|
||||||
|
externalHelpersModuleNameText = "tslib";
|
||||||
|
- defaultMaximumTruncationLength = 160;
|
||||||
|
+ defaultMaximumTruncationLength = 1600;
|
||||||
|
noTruncationMaximumTruncationLength = 1e6;
|
||||||
|
stringWriter = createSingleLineStringWriter();
|
||||||
|
getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
@ -4,6 +4,11 @@ settings:
|
||||||
autoInstallPeers: true
|
autoInstallPeers: true
|
||||||
excludeLinksFromLockfile: false
|
excludeLinksFromLockfile: false
|
||||||
|
|
||||||
|
patchedDependencies:
|
||||||
|
monaco-editor@0.52.0:
|
||||||
|
hash: etwqtd55ssq6d52kxjt3dxlzre
|
||||||
|
path: patches/monaco-editor@0.52.0.patch
|
||||||
|
|
||||||
importers:
|
importers:
|
||||||
|
|
||||||
.:
|
.:
|
||||||
|
@ -100,13 +105,13 @@ importers:
|
||||||
version: 2.3.0
|
version: 2.3.0
|
||||||
monaco-editor:
|
monaco-editor:
|
||||||
specifier: 0.52.0
|
specifier: 0.52.0
|
||||||
version: 0.52.0
|
version: 0.52.0(patch_hash=etwqtd55ssq6d52kxjt3dxlzre)
|
||||||
monaco-editor-core:
|
monaco-editor-core:
|
||||||
specifier: 0.52.0
|
specifier: 0.52.0
|
||||||
version: 0.52.0
|
version: 0.52.0
|
||||||
monaco-editor-textmate:
|
monaco-editor-textmate:
|
||||||
specifier: ^4.0.0
|
specifier: ^4.0.0
|
||||||
version: 4.0.0(monaco-editor@0.52.0)(monaco-textmate@3.0.1(onigasm@2.2.5))
|
version: 4.0.0(monaco-editor@0.52.0(patch_hash=etwqtd55ssq6d52kxjt3dxlzre))(monaco-textmate@3.0.1(onigasm@2.2.5))
|
||||||
monaco-textmate:
|
monaco-textmate:
|
||||||
specifier: ^3.0.1
|
specifier: ^3.0.1
|
||||||
version: 3.0.1(onigasm@2.2.5)
|
version: 3.0.1(onigasm@2.2.5)
|
||||||
|
@ -5102,12 +5107,12 @@ snapshots:
|
||||||
|
|
||||||
monaco-editor-core@0.52.0: {}
|
monaco-editor-core@0.52.0: {}
|
||||||
|
|
||||||
monaco-editor-textmate@4.0.0(monaco-editor@0.52.0)(monaco-textmate@3.0.1(onigasm@2.2.5)):
|
monaco-editor-textmate@4.0.0(monaco-editor@0.52.0(patch_hash=etwqtd55ssq6d52kxjt3dxlzre))(monaco-textmate@3.0.1(onigasm@2.2.5)):
|
||||||
dependencies:
|
dependencies:
|
||||||
monaco-editor: 0.52.0
|
monaco-editor: 0.52.0(patch_hash=etwqtd55ssq6d52kxjt3dxlzre)
|
||||||
monaco-textmate: 3.0.1(onigasm@2.2.5)
|
monaco-textmate: 3.0.1(onigasm@2.2.5)
|
||||||
|
|
||||||
monaco-editor@0.52.0: {}
|
monaco-editor@0.52.0(patch_hash=etwqtd55ssq6d52kxjt3dxlzre): {}
|
||||||
|
|
||||||
monaco-textmate@3.0.1(onigasm@2.2.5):
|
monaco-textmate@3.0.1(onigasm@2.2.5):
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
Loading…
Reference in a new issue