@codingame/monaco-vscode-api 1.78.3-next.1 → 1.78.4-next.0
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/snippetsService.js
CHANGED
|
@@ -36,7 +36,7 @@ It's treeshaked out of monaco editor and needs to be reintroduced.
|
|
|
36
36
|
If you're using webpack, you can add a loader that will polyfill it:
|
|
37
37
|
\`\`\`
|
|
38
38
|
{
|
|
39
|
-
test: /node_modules\\/monaco-editor
|
|
39
|
+
test: /node_modules[\\/]monaco-editor/,
|
|
40
40
|
loader: 'vscode/webpack-loader'
|
|
41
41
|
}
|
|
42
42
|
\`\`\`
|
package/dist/webpack-loader.cjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.raw = void 0;
|
|
4
|
+
const path_1 = require("path");
|
|
4
5
|
const monacoPolyfillLoader = function (source) {
|
|
5
|
-
if (this.resourcePath.endsWith(
|
|
6
|
+
if (this.resourcePath.endsWith(`monaco-editor${path_1.sep}esm${path_1.sep}vs${path_1.sep}editor${path_1.sep}contrib${path_1.sep}suggest${path_1.sep}browser${path_1.sep}suggest.js`)) {
|
|
6
7
|
return `${source.toString()}
|
|
7
8
|
export function setSnippetSuggestSupport(support) {
|
|
8
9
|
const old = _snippetSuggestSupport;
|