stream-monaco 0.0.18 → 0.0.20
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/README.md +224 -58
- package/README.zh-CN.md +197 -62
- package/dist/{index.base-8XcpTBc-.d.cts → index.base-Bt_RWV_F.d.ts} +122 -46
- package/dist/{index.base-vwv4Hlby.d.ts → index.base-DMJ2aLjO.d.cts} +122 -45
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/index.legacy.cjs +11 -11
- package/dist/index.legacy.d.cts +2 -2
- package/dist/index.legacy.d.ts +2 -2
- package/dist/index.legacy.js +21 -21
- package/dist/preloadMonacoWorkers.shared-B2kXtXTi.cjs +6139 -0
- package/dist/preloadMonacoWorkers.shared-C-OxtyGI.js +6057 -0
- package/package.json +18 -2
- package/dist/chunk-CHLpw0oG.js +0 -25
- package/dist/preloadMonacoWorkers.shared-BNWvrH2U.cjs +0 -2976
- package/dist/preloadMonacoWorkers.shared-CieE-OSf.js +0 -2871
|
@@ -1,16 +1,35 @@
|
|
|
1
|
-
import { __export, __reExport } from "./chunk-CHLpw0oG.js";
|
|
2
|
-
import * as _monaco from "monaco-editor/esm/vs/editor/editor.api";
|
|
3
|
-
import { Highlighter, SpecialTheme, ThemeInput } from "shiki";
|
|
4
1
|
import * as monaco_editor0 from "monaco-editor";
|
|
5
|
-
import * as monaco
|
|
2
|
+
import * as monaco from "monaco-editor";
|
|
3
|
+
import { Highlighter, SpecialTheme, ThemeInput } from "shiki";
|
|
6
4
|
|
|
7
5
|
//#region src/type.d.ts
|
|
8
6
|
type ShikiHighlighter = Highlighter | any;
|
|
9
|
-
type MonacoEditorInstance = monaco
|
|
10
|
-
type MonacoDiffEditorInstance = monaco
|
|
7
|
+
type MonacoEditorInstance = monaco.editor.IStandaloneCodeEditor;
|
|
8
|
+
type MonacoDiffEditorInstance = monaco.editor.IStandaloneDiffEditor;
|
|
11
9
|
type MonacoTheme = 'andromeeda' | 'aurora-x' | 'ayu-dark' | 'catppuccin-frappe' | 'catppuccin-latte' | 'catppuccin-macchiato' | 'catppuccin-mocha' | 'dark-plus' | 'dracula' | 'dracula-soft' | 'everforest-dark' | 'everforest-light' | 'github-dark' | 'github-dark-default' | 'github-dark-dimmed' | 'github-dark-high-contrast' | 'github-light' | 'github-light-default' | 'github-light-high-contrast' | 'gruvbox-dark-hard' | 'gruvbox-dark-medium' | 'gruvbox-dark-soft' | 'gruvbox-light-hard' | 'gruvbox-light-medium' | 'gruvbox-light-soft' | 'houston' | 'kanagawa-dragon' | 'kanagawa-lotus' | 'kanagawa-wave' | 'laserwave' | 'light-plus' | 'material-theme' | 'material-theme-darker' | 'material-theme-lighter' | 'material-theme-ocean' | 'material-theme-palenight' | 'min-dark' | 'min-light' | 'monokai' | 'night-owl' | 'nord' | 'one-dark-pro' | 'one-light' | 'plastic' | 'poimandres' | 'red' | 'rose-pine' | 'rose-pine-dawn' | 'rose-pine-moon' | 'slack-dark' | 'slack-ochin' | 'snazzy-light' | 'solarized-dark' | 'solarized-light' | 'synthwave-84' | 'tokyo-night' | 'vesper' | 'vitesse-black' | 'vitesse-dark' | 'vitesse-light' | ThemeInput | string | SpecialTheme;
|
|
12
10
|
type MonacoLanguage = 'abap' | 'actionscript-3' | 'ada' | 'angular-html' | 'angular-ts' | 'apache' | 'apex' | 'apl' | 'applescript' | 'ara' | 'asciidoc' | 'asm' | 'astro' | 'awk' | 'ballerina' | 'bat' | 'beancount' | 'berry' | 'bibtex' | 'bicep' | 'blade' | 'bsl' | 'c' | 'cadence' | 'cairo' | 'clarity' | 'clojure' | 'cmake' | 'cobol' | 'codeowners' | 'codeql' | 'coffee' | 'common-lisp' | 'coq' | 'cpp' | 'crystal' | 'csharp' | 'css' | 'csv' | 'cue' | 'cypher' | 'd' | 'dart' | 'dax' | 'desktop' | 'diff' | 'docker' | 'dotenv' | 'dream-maker' | 'edge' | 'elixir' | 'elm' | 'emacs-lisp' | 'erb' | 'erlang' | 'fennel' | 'fish' | 'fluent' | 'fortran-fixed-form' | 'fortran-free-form' | 'fsharp' | 'gdresource' | 'gdscript' | 'gdshader' | 'genie' | 'gherkin' | 'git-commit' | 'git-rebase' | 'gleam' | 'glimmer-js' | 'glimmer-ts' | 'glsl' | 'gnuplot' | 'go' | 'graphql' | 'groovy' | 'hack' | 'haml' | 'handlebars' | 'haskell' | 'haxe' | 'hcl' | 'hjson' | 'hlsl' | 'html' | 'html-derivative' | 'http' | 'hxml' | 'hy' | 'imba' | 'ini' | 'java' | 'javascript' | 'jinja' | 'jison' | 'json' | 'json5' | 'jsonc' | 'jsonl' | 'jsonnet' | 'jssm' | 'jsx' | 'julia' | 'kotlin' | 'kusto' | 'latex' | 'lean' | 'less' | 'liquid' | 'llvm' | 'log' | 'logo' | 'lua' | 'luau' | 'make' | 'markdown' | 'marko' | 'matlab' | 'mdc' | 'mdx' | 'mermaid' | 'mipsasm' | 'mojo' | 'move' | 'narrat' | 'nextflow' | 'nginx' | 'nim' | 'nix' | 'nushell' | 'objective-c' | 'objective-cpp' | 'ocaml' | 'pascal' | 'perl' | 'php' | 'plsql' | 'po' | 'polar' | 'postcss' | 'powerquery' | 'powershell' | 'prisma' | 'prolog' | 'proto' | 'pug' | 'puppet' | 'purescript' | 'python' | 'qml' | 'qmldir' | 'qss' | 'r' | 'racket' | 'raku' | 'razor' | 'reg' | 'regexp' | 'rel' | 'riscv' | 'rst' | 'ruby' | 'rust' | 'sas' | 'sass' | 'scala' | 'scheme' | 'scss' | 'sdbl' | 'shaderlab' | 'shellscript' | 'shellsession' | 'smalltalk' | 'solidity' | 'soy' | 'sparql' | 'splunk' | 'sql' | 'ssh-config' | 'stata' | 'stylus' | 'svelte' | 'swift' | 'system-verilog' | 'systemd' | 'talonscript' | 'tasl' | 'tcl' | 'templ' | 'terraform' | 'tex' | 'toml' | 'ts-tags' | 'tsv' | 'tsx' | 'turtle' | 'twig' | 'typescript' | 'typespec' | 'typst' | 'v' | 'vala' | 'vb' | 'verilog' | 'vhdl' | 'viml' | 'vue' | 'vue-html' | 'vyper' | 'wasm' | 'wenyan' | 'wgsl' | 'wikitext' | 'wit' | 'wolfram' | 'xml' | 'xsl' | 'yaml' | 'zenscript' | 'zig' | string;
|
|
13
|
-
|
|
11
|
+
type DiffHideUnchangedRegions = boolean | NonNullable<monaco.editor.IDiffEditorConstructionOptions['hideUnchangedRegions']>;
|
|
12
|
+
type DiffLineStyle = 'background' | 'bar';
|
|
13
|
+
type DiffAppearance = 'auto' | 'light' | 'dark';
|
|
14
|
+
type DiffUnchangedRegionStyle = 'line-info' | 'line-info-basic' | 'metadata' | 'simple';
|
|
15
|
+
interface DiffModels {
|
|
16
|
+
original: monaco.editor.ITextModel | null;
|
|
17
|
+
modified: monaco.editor.ITextModel | null;
|
|
18
|
+
}
|
|
19
|
+
interface DiffModelPair {
|
|
20
|
+
original: monaco.editor.ITextModel;
|
|
21
|
+
modified: monaco.editor.ITextModel;
|
|
22
|
+
}
|
|
23
|
+
interface DiffModelTransitionOptions {
|
|
24
|
+
codeLanguage?: MonacoLanguage;
|
|
25
|
+
preserveViewState?: boolean;
|
|
26
|
+
}
|
|
27
|
+
interface DiffCodeValue {
|
|
28
|
+
original: string;
|
|
29
|
+
modified: string;
|
|
30
|
+
}
|
|
31
|
+
type MonacoCodeValue = string | DiffCodeValue | null;
|
|
32
|
+
interface MonacoOptions extends monaco.editor.IStandaloneEditorConstructionOptions, monaco.editor.IDiffEditorConstructionOptions {
|
|
14
33
|
MAX_HEIGHT?: number | string;
|
|
15
34
|
readOnly?: boolean;
|
|
16
35
|
themes?: MonacoTheme[];
|
|
@@ -44,6 +63,60 @@ interface MonacoOptions extends monaco$1.editor.IStandaloneEditorConstructionOpt
|
|
|
44
63
|
* 默认 true(与单编辑器体验保持一致)。
|
|
45
64
|
*/
|
|
46
65
|
diffAutoScroll?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Controls Monaco's diff unchanged-region folding behavior.
|
|
68
|
+
* - `true`: use stream-monaco defaults (enabled with compact context lines)
|
|
69
|
+
* - `false`: disable unchanged-region folding
|
|
70
|
+
* - object: forward to Monaco `hideUnchangedRegions`
|
|
71
|
+
*
|
|
72
|
+
* Default: `true`
|
|
73
|
+
*/
|
|
74
|
+
diffHideUnchangedRegions?: DiffHideUnchangedRegions;
|
|
75
|
+
/**
|
|
76
|
+
* Controls how changed lines are visually emphasized in the diff editor.
|
|
77
|
+
* - `background`: richer filled blocks for added/removed lines
|
|
78
|
+
* - `bar`: subtler fill with stronger leading bars, closer to review UIs
|
|
79
|
+
*
|
|
80
|
+
* Default: `background`
|
|
81
|
+
*/
|
|
82
|
+
diffLineStyle?: DiffLineStyle;
|
|
83
|
+
/**
|
|
84
|
+
* Controls the overall chrome appearance of the diff editor shell.
|
|
85
|
+
* - `auto`: infer light/dark appearance from the active Monaco theme
|
|
86
|
+
* - `light`: force light diff chrome
|
|
87
|
+
* - `dark`: force dark diff chrome
|
|
88
|
+
*
|
|
89
|
+
* Token colors still follow the active Monaco/Shiki theme.
|
|
90
|
+
*
|
|
91
|
+
* Default: `auto`
|
|
92
|
+
*/
|
|
93
|
+
diffAppearance?: DiffAppearance;
|
|
94
|
+
/**
|
|
95
|
+
* Controls how collapsed unchanged regions are rendered in the diff editor.
|
|
96
|
+
* - `line-info`: line-info bars with line-number-width reveal buttons
|
|
97
|
+
* - `line-info-basic`: legacy line-info bars with full-width reveal rail
|
|
98
|
+
* - `metadata`: unified-diff-style hunk metadata such as `@@ -59,9 +59,11 @@`
|
|
99
|
+
* - `simple`: minimal gray placeholder bar without text
|
|
100
|
+
*
|
|
101
|
+
* Default: `line-info`
|
|
102
|
+
*/
|
|
103
|
+
diffUnchangedRegionStyle?: DiffUnchangedRegionStyle;
|
|
104
|
+
/**
|
|
105
|
+
* Enable hover actions for each diff hunk split part (upper/lower):
|
|
106
|
+
* local `revert` and `stage`.
|
|
107
|
+
* Default: `false` (must be explicitly enabled).
|
|
108
|
+
*/
|
|
109
|
+
diffHunkActionsOnHover?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Hide delay (ms) for diff hunk hover action widgets after mouse leaves.
|
|
112
|
+
* Default: `160`.
|
|
113
|
+
*/
|
|
114
|
+
diffHunkHoverHideDelayMs?: number;
|
|
115
|
+
/**
|
|
116
|
+
* Optional interception callback for hunk hover actions.
|
|
117
|
+
* Return `false` to prevent the built-in model edit behavior.
|
|
118
|
+
*/
|
|
119
|
+
onDiffHunkAction?: (context: DiffHunkActionContext) => void | boolean | Promise<void | boolean>;
|
|
47
120
|
/**
|
|
48
121
|
* Debounce time (ms) to coalesce multiple reveal requests into a single
|
|
49
122
|
* reveal. Useful for streaming/append scenarios. Default: 75
|
|
@@ -91,7 +164,7 @@ interface MonacoOptions extends monaco$1.editor.IStandaloneEditorConstructionOpt
|
|
|
91
164
|
* library will fall back to full `setValue` instead of attempting minimal edit.
|
|
92
165
|
*/
|
|
93
166
|
minimalEditMaxChangeRatio?: number;
|
|
94
|
-
onBeforeCreate?: (monaco: typeof monaco_editor0) => monaco
|
|
167
|
+
onBeforeCreate?: (monaco: typeof monaco_editor0) => monaco.IDisposable[];
|
|
95
168
|
/**
|
|
96
169
|
* Optional callback that is invoked after a theme change has been applied.
|
|
97
170
|
* This callback will be awaited when possible so callers can track completion
|
|
@@ -104,6 +177,41 @@ declare enum RevealStrategy {
|
|
|
104
177
|
CenterIfOutside = "centerIfOutside",
|
|
105
178
|
Center = "center",
|
|
106
179
|
}
|
|
180
|
+
type DiffHunkActionKind = 'revert' | 'stage';
|
|
181
|
+
type DiffHunkSide = 'upper' | 'lower';
|
|
182
|
+
interface DiffHunkActionContext {
|
|
183
|
+
action: DiffHunkActionKind;
|
|
184
|
+
side: DiffHunkSide;
|
|
185
|
+
lineChange: monaco.editor.ILineChange;
|
|
186
|
+
originalModel: monaco.editor.ITextModel;
|
|
187
|
+
modifiedModel: monaco.editor.ITextModel;
|
|
188
|
+
}
|
|
189
|
+
interface UseMonacoReturn {
|
|
190
|
+
createEditor: (container: HTMLElement, code: string, language: string) => Promise<monaco.editor.IStandaloneCodeEditor>;
|
|
191
|
+
createDiffEditor: (container: HTMLElement, originalCode: string, modifiedCode: string, language: string) => Promise<monaco.editor.IStandaloneDiffEditor>;
|
|
192
|
+
cleanupEditor: () => void;
|
|
193
|
+
safeClean: () => void;
|
|
194
|
+
updateCode: (newCode: string, codeLanguage: string) => void;
|
|
195
|
+
appendCode: (appendText: string, codeLanguage?: string) => void;
|
|
196
|
+
updateDiff: (originalCode: string, modifiedCode: string, codeLanguage?: string) => void;
|
|
197
|
+
updateOriginal: (newCode: string, codeLanguage?: string) => void;
|
|
198
|
+
updateModified: (newCode: string, codeLanguage?: string) => void;
|
|
199
|
+
appendOriginal: (appendText: string, codeLanguage?: string) => void;
|
|
200
|
+
appendModified: (appendText: string, codeLanguage?: string) => void;
|
|
201
|
+
setDiffModels: (models: DiffModelPair, options?: DiffModelTransitionOptions) => Promise<void>;
|
|
202
|
+
setTheme: (theme: MonacoTheme, force?: boolean) => Promise<void>;
|
|
203
|
+
refreshDiffPresentation: () => void;
|
|
204
|
+
setLanguage: (language: MonacoLanguage) => void;
|
|
205
|
+
getCurrentTheme: () => string;
|
|
206
|
+
getEditor: () => typeof monaco.editor;
|
|
207
|
+
getEditorView: () => monaco.editor.IStandaloneCodeEditor | null;
|
|
208
|
+
getDiffEditorView: () => monaco.editor.IStandaloneDiffEditor | null;
|
|
209
|
+
getDiffModels: () => DiffModels;
|
|
210
|
+
getMonacoInstance: () => typeof monaco;
|
|
211
|
+
setUpdateThrottleMs: (ms: number) => void;
|
|
212
|
+
getUpdateThrottleMs: () => number;
|
|
213
|
+
getCode: () => MonacoCodeValue;
|
|
214
|
+
}
|
|
107
215
|
//#endregion
|
|
108
216
|
//#region src/code.detect.d.ts
|
|
109
217
|
/**
|
|
@@ -137,12 +245,6 @@ declare function detectLanguage(code: string, additionalLanguages?: LanguageDefi
|
|
|
137
245
|
//#endregion
|
|
138
246
|
//#region src/constant.d.ts
|
|
139
247
|
declare const defaultRevealDebounceMs = 75;
|
|
140
|
-
declare namespace monaco_shim_d_exports {
|
|
141
|
-
export { monaco as default };
|
|
142
|
-
}
|
|
143
|
-
import * as import_monaco_editor_esm_vs_editor_editor_api from "monaco-editor/esm/vs/editor/editor.api";
|
|
144
|
-
__reExport(monaco_shim_d_exports, import_monaco_editor_esm_vs_editor_editor_api);
|
|
145
|
-
declare const monaco: typeof _monaco;
|
|
146
248
|
//#endregion
|
|
147
249
|
//#region src/utils/registerMonacoThemes.d.ts
|
|
148
250
|
/**
|
|
@@ -203,7 +305,9 @@ declare function registerMonacoThemes(themes: (ThemeInput | string | SpecialThem
|
|
|
203
305
|
* updateModified: (newCode: string, codeLanguage?: string) => void,
|
|
204
306
|
* appendOriginal: (appendText: string, codeLanguage?: string) => void,
|
|
205
307
|
* appendModified: (appendText: string, codeLanguage?: string) => void,
|
|
308
|
+
* setDiffModels: (models: DiffModelPair, options?: DiffModelTransitionOptions) => Promise<void>,
|
|
206
309
|
* setTheme: (theme: MonacoTheme) => Promise<void>,
|
|
310
|
+
* refreshDiffPresentation: () => void,
|
|
207
311
|
* setLanguage: (language: MonacoLanguage) => void,
|
|
208
312
|
* getCurrentTheme: () => string,
|
|
209
313
|
* getEditor: () => typeof monaco.editor,
|
|
@@ -223,7 +327,9 @@ declare function registerMonacoThemes(themes: (ThemeInput | string | SpecialThem
|
|
|
223
327
|
* @property {Function} updateModified - 仅更新 Diff 的 modified 内容(增量更新)
|
|
224
328
|
* @property {Function} appendOriginal - 在 Diff 的 original 末尾追加(显式流式场景)
|
|
225
329
|
* @property {Function} appendModified - 在 Diff 的 modified 末尾追加(显式流式场景)
|
|
330
|
+
* @property {Function} setDiffModels - 切换为一对新的 Diff models;当内容未变化时自动走保留视图状态的无抖动路径
|
|
226
331
|
* @property {Function} setTheme - 切换编辑器主题,返回 Promise,在主题应用完成时 resolve
|
|
332
|
+
* @property {Function} refreshDiffPresentation - 在不 remount 的情况下,重算 diff chrome / unchanged overlay 的表现层
|
|
227
333
|
* @property {Function} setLanguage - 切换编辑器语言
|
|
228
334
|
* @property {Function} getCurrentTheme - 获取当前主题名称
|
|
229
335
|
* @property {Function} getEditor - 获取 Monaco 的静态 editor 对象(用于静态方法调用)
|
|
@@ -254,35 +360,6 @@ declare function registerMonacoThemes(themes: (ThemeInput | string | SpecialThem
|
|
|
254
360
|
* setTheme('vitesse-light')
|
|
255
361
|
* ```
|
|
256
362
|
*/
|
|
257
|
-
declare function useMonaco(monacoOptions?: MonacoOptions):
|
|
258
|
-
createEditor: (container: HTMLElement, code: string, language: string) => Promise<monaco_shim_d_exports.editor.IStandaloneCodeEditor>;
|
|
259
|
-
createDiffEditor: (container: HTMLElement, originalCode: string, modifiedCode: string, language: string) => Promise<monaco_shim_d_exports.editor.IStandaloneDiffEditor>;
|
|
260
|
-
cleanupEditor: () => void;
|
|
261
|
-
safeClean(): void;
|
|
262
|
-
updateCode: (newCode: string, codeLanguage: string) => void;
|
|
263
|
-
appendCode: (appendText: string, codeLanguage?: string) => void;
|
|
264
|
-
updateDiff: (originalCode: string, modifiedCode: string, codeLanguage?: string) => void;
|
|
265
|
-
updateOriginal: (newCode: string, codeLanguage?: string) => void;
|
|
266
|
-
updateModified: (newCode: string, codeLanguage?: string) => void;
|
|
267
|
-
appendOriginal: (appendText: string, codeLanguage?: string) => void;
|
|
268
|
-
appendModified: (appendText: string, codeLanguage?: string) => void;
|
|
269
|
-
setTheme: (theme: MonacoTheme, force?: boolean) => Promise<void>;
|
|
270
|
-
setLanguage(language: MonacoLanguage): void;
|
|
271
|
-
getCurrentTheme(): string;
|
|
272
|
-
getEditor(): typeof monaco_shim_d_exports.editor;
|
|
273
|
-
getEditorView(): monaco_shim_d_exports.editor.IStandaloneCodeEditor | null;
|
|
274
|
-
getDiffEditorView(): monaco_shim_d_exports.editor.IStandaloneDiffEditor | null;
|
|
275
|
-
getDiffModels(): {
|
|
276
|
-
original: monaco_shim_d_exports.editor.ITextModel | null;
|
|
277
|
-
modified: monaco_shim_d_exports.editor.ITextModel | null;
|
|
278
|
-
};
|
|
279
|
-
getMonacoInstance(): typeof monaco_shim_d_exports;
|
|
280
|
-
setUpdateThrottleMs: (ms: number) => void;
|
|
281
|
-
getUpdateThrottleMs: () => number;
|
|
282
|
-
getCode(): string | {
|
|
283
|
-
original: string;
|
|
284
|
-
modified: string;
|
|
285
|
-
} | null;
|
|
286
|
-
};
|
|
363
|
+
declare function useMonaco(monacoOptions?: MonacoOptions): UseMonacoReturn;
|
|
287
364
|
//#endregion
|
|
288
|
-
export { MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, registerMonacoThemes, useMonaco };
|
|
365
|
+
export { DiffAppearance, DiffCodeValue, DiffHideUnchangedRegions, DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, DiffLineStyle, DiffModelPair, DiffModelTransitionOptions, DiffModels, DiffUnchangedRegionStyle, MonacoCodeValue, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, UseMonacoReturn, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, registerMonacoThemes, useMonaco };
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_preloadMonacoWorkers_shared = require('./preloadMonacoWorkers.shared-
|
|
1
|
+
const require_preloadMonacoWorkers_shared = require('./preloadMonacoWorkers.shared-B2kXtXTi.cjs');
|
|
2
2
|
|
|
3
3
|
//#region src/ensureMonacoWorkers.ts
|
|
4
4
|
function ensureMonacoWorkers() {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, registerMonacoThemes, useMonaco } from "./index.base-
|
|
1
|
+
import { DiffAppearance, DiffCodeValue, DiffHideUnchangedRegions, DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, DiffLineStyle, DiffModelPair, DiffModelTransitionOptions, DiffModels, DiffUnchangedRegionStyle, MonacoCodeValue, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, UseMonacoReturn, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, registerMonacoThemes, useMonaco } from "./index.base-DMJ2aLjO.cjs";
|
|
2
2
|
|
|
3
|
-
//#region src/preloadMonacoWorkers.d.ts
|
|
4
|
-
declare function preloadMonacoWorkers(): Promise<void>;
|
|
5
|
-
//#endregion
|
|
6
3
|
//#region src/ensureMonacoWorkers.d.ts
|
|
7
4
|
declare function ensureMonacoWorkers(): void;
|
|
8
5
|
//#endregion
|
|
9
|
-
|
|
6
|
+
//#region src/preloadMonacoWorkers.d.ts
|
|
7
|
+
declare function preloadMonacoWorkers(): Promise<void>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { DiffAppearance, DiffCodeValue, DiffHideUnchangedRegions, DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, DiffLineStyle, DiffModelPair, DiffModelTransitionOptions, DiffModels, DiffUnchangedRegionStyle, MonacoCodeValue, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, UseMonacoReturn, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, ensureMonacoWorkers, getOrCreateHighlighter, preloadMonacoWorkers, registerMonacoThemes, useMonaco };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, registerMonacoThemes, useMonaco } from "./index.base-
|
|
1
|
+
import { DiffAppearance, DiffCodeValue, DiffHideUnchangedRegions, DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, DiffLineStyle, DiffModelPair, DiffModelTransitionOptions, DiffModels, DiffUnchangedRegionStyle, MonacoCodeValue, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, UseMonacoReturn, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, registerMonacoThemes, useMonaco } from "./index.base-Bt_RWV_F.js";
|
|
2
2
|
|
|
3
|
-
//#region src/preloadMonacoWorkers.d.ts
|
|
4
|
-
declare function preloadMonacoWorkers(): Promise<void>;
|
|
5
|
-
//#endregion
|
|
6
3
|
//#region src/ensureMonacoWorkers.d.ts
|
|
7
4
|
declare function ensureMonacoWorkers(): void;
|
|
8
5
|
//#endregion
|
|
9
|
-
|
|
6
|
+
//#region src/preloadMonacoWorkers.d.ts
|
|
7
|
+
declare function preloadMonacoWorkers(): Promise<void>;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { DiffAppearance, DiffCodeValue, DiffHideUnchangedRegions, DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, DiffLineStyle, DiffModelPair, DiffModelTransitionOptions, DiffModels, DiffUnchangedRegionStyle, MonacoCodeValue, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, UseMonacoReturn, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, ensureMonacoWorkers, getOrCreateHighlighter, preloadMonacoWorkers, registerMonacoThemes, useMonaco };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RevealStrategy, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, editorWorkerPath, getOrCreateHighlighter, registerMonacoThemes, uniqueWorkerPaths, useMonaco, workerPathByLabel } from "./preloadMonacoWorkers.shared-
|
|
1
|
+
import { RevealStrategy, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, editorWorkerPath, getOrCreateHighlighter, registerMonacoThemes, uniqueWorkerPaths, useMonaco, workerPathByLabel } from "./preloadMonacoWorkers.shared-C-OxtyGI.js";
|
|
2
2
|
|
|
3
3
|
//#region src/ensureMonacoWorkers.ts
|
|
4
4
|
function ensureMonacoWorkers() {
|
package/dist/index.legacy.cjs
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
const require_preloadMonacoWorkers_shared = require('./preloadMonacoWorkers.shared-
|
|
1
|
+
const require_preloadMonacoWorkers_shared = require('./preloadMonacoWorkers.shared-B2kXtXTi.cjs');
|
|
2
|
+
const monaco_editor_esm_vs_basic_languages_cpp_cpp = require_preloadMonacoWorkers_shared.__toESM(require("monaco-editor/esm/vs/basic-languages/cpp/cpp"));
|
|
3
|
+
const monaco_editor_esm_vs_basic_languages_javascript_javascript = require_preloadMonacoWorkers_shared.__toESM(require("monaco-editor/esm/vs/basic-languages/javascript/javascript"));
|
|
4
|
+
const monaco_editor_esm_vs_basic_languages_powershell_powershell = require_preloadMonacoWorkers_shared.__toESM(require("monaco-editor/esm/vs/basic-languages/powershell/powershell"));
|
|
5
|
+
const monaco_editor_esm_vs_basic_languages_python_python = require_preloadMonacoWorkers_shared.__toESM(require("monaco-editor/esm/vs/basic-languages/python/python"));
|
|
6
|
+
const monaco_editor_esm_vs_basic_languages_shell_shell = require_preloadMonacoWorkers_shared.__toESM(require("monaco-editor/esm/vs/basic-languages/shell/shell"));
|
|
7
|
+
const monaco_editor_esm_vs_basic_languages_typescript_typescript = require_preloadMonacoWorkers_shared.__toESM(require("monaco-editor/esm/vs/basic-languages/typescript/typescript"));
|
|
8
|
+
require("monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/outlineModel");
|
|
9
|
+
require("monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestMemory");
|
|
2
10
|
require("monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution");
|
|
3
11
|
require("monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution");
|
|
4
12
|
require("monaco-editor/esm/vs/basic-languages/python/python.contribution");
|
|
@@ -9,14 +17,6 @@ require("monaco-editor/esm/vs/language/json/monaco.contribution");
|
|
|
9
17
|
require("monaco-editor/esm/vs/language/typescript/monaco.contribution");
|
|
10
18
|
require("monaco-editor/esm/vs/language/html/monaco.contribution");
|
|
11
19
|
require("monaco-editor/esm/vs/language/css/monaco.contribution");
|
|
12
|
-
require("monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestMemory");
|
|
13
|
-
require("monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/outlineModel");
|
|
14
|
-
const monaco_editor_esm_vs_basic_languages_javascript_javascript = require_preloadMonacoWorkers_shared.__toESM(require("monaco-editor/esm/vs/basic-languages/javascript/javascript"));
|
|
15
|
-
const monaco_editor_esm_vs_basic_languages_typescript_typescript = require_preloadMonacoWorkers_shared.__toESM(require("monaco-editor/esm/vs/basic-languages/typescript/typescript"));
|
|
16
|
-
const monaco_editor_esm_vs_basic_languages_python_python = require_preloadMonacoWorkers_shared.__toESM(require("monaco-editor/esm/vs/basic-languages/python/python"));
|
|
17
|
-
const monaco_editor_esm_vs_basic_languages_cpp_cpp = require_preloadMonacoWorkers_shared.__toESM(require("monaco-editor/esm/vs/basic-languages/cpp/cpp"));
|
|
18
|
-
const monaco_editor_esm_vs_basic_languages_shell_shell = require_preloadMonacoWorkers_shared.__toESM(require("monaco-editor/esm/vs/basic-languages/shell/shell"));
|
|
19
|
-
const monaco_editor_esm_vs_basic_languages_powershell_powershell = require_preloadMonacoWorkers_shared.__toESM(require("monaco-editor/esm/vs/basic-languages/powershell/powershell"));
|
|
20
20
|
|
|
21
21
|
//#region src/ensureMonacoWorkers.legacy.ts
|
|
22
22
|
function normalizeBaseUrl(baseUrl) {
|
|
@@ -36,7 +36,7 @@ function detectMonacoBaseUrlFromScripts() {
|
|
|
36
36
|
for (const script of scripts) {
|
|
37
37
|
const src = script.getAttribute("src") || "";
|
|
38
38
|
if (!src) continue;
|
|
39
|
-
const loaderMatch = src.match(/^(.*)\/vs\/loader\.js
|
|
39
|
+
const loaderMatch = src.match(/^(.*)\/vs\/loader\.js.*$/);
|
|
40
40
|
if (loaderMatch) return normalizeBaseUrl(loaderMatch[1]);
|
|
41
41
|
const vsIndex = src.indexOf("/vs/");
|
|
42
42
|
if (vsIndex > 0) return normalizeBaseUrl(src.slice(0, vsIndex));
|
|
@@ -103,7 +103,7 @@ function ensureMonacoWorkersLegacy(options) {
|
|
|
103
103
|
if (!baseUrl) return;
|
|
104
104
|
const workerUrl = makeWorkerUrl(baseUrl);
|
|
105
105
|
if (!workerUrl) return;
|
|
106
|
-
|
|
106
|
+
globalThis.MonacoEnvironment = { getWorkerUrl() {
|
|
107
107
|
return workerUrl;
|
|
108
108
|
} };
|
|
109
109
|
} catch {}
|
package/dist/index.legacy.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, registerMonacoThemes, useMonaco } from "./index.base-
|
|
1
|
+
import { DiffAppearance, DiffCodeValue, DiffHideUnchangedRegions, DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, DiffLineStyle, DiffModelPair, DiffModelTransitionOptions, DiffModels, DiffUnchangedRegionStyle, MonacoCodeValue, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, UseMonacoReturn, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, registerMonacoThemes, useMonaco } from "./index.base-DMJ2aLjO.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/ensureMonacoWorkers.legacy.d.ts
|
|
4
4
|
declare function ensureMonacoWorkersLegacy(options?: {
|
|
@@ -8,4 +8,4 @@ declare function ensureMonacoWorkersLegacy(options?: {
|
|
|
8
8
|
//#region src/preloadMonacoWorkers.legacy.d.ts
|
|
9
9
|
declare function preloadMonacoWorkers(): Promise<void>;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, ensureMonacoWorkersLegacy, getOrCreateHighlighter, preloadMonacoWorkers, registerMonacoThemes, useMonaco };
|
|
11
|
+
export { DiffAppearance, DiffCodeValue, DiffHideUnchangedRegions, DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, DiffLineStyle, DiffModelPair, DiffModelTransitionOptions, DiffModels, DiffUnchangedRegionStyle, MonacoCodeValue, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, UseMonacoReturn, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, ensureMonacoWorkersLegacy, getOrCreateHighlighter, preloadMonacoWorkers, registerMonacoThemes, useMonaco };
|
package/dist/index.legacy.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, registerMonacoThemes, useMonaco } from "./index.base-
|
|
1
|
+
import { DiffAppearance, DiffCodeValue, DiffHideUnchangedRegions, DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, DiffLineStyle, DiffModelPair, DiffModelTransitionOptions, DiffModels, DiffUnchangedRegionStyle, MonacoCodeValue, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, UseMonacoReturn, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, registerMonacoThemes, useMonaco } from "./index.base-Bt_RWV_F.js";
|
|
2
2
|
import "monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution";
|
|
3
3
|
import "monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution";
|
|
4
4
|
import "monaco-editor/esm/vs/basic-languages/python/python.contribution";
|
|
@@ -18,4 +18,4 @@ declare function ensureMonacoWorkersLegacy(options?: {
|
|
|
18
18
|
//#region src/preloadMonacoWorkers.legacy.d.ts
|
|
19
19
|
declare function preloadMonacoWorkers(): Promise<void>;
|
|
20
20
|
//#endregion
|
|
21
|
-
export { MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, ensureMonacoWorkersLegacy, getOrCreateHighlighter, preloadMonacoWorkers, registerMonacoThemes, useMonaco };
|
|
21
|
+
export { DiffAppearance, DiffCodeValue, DiffHideUnchangedRegions, DiffHunkActionContext, DiffHunkActionKind, DiffHunkSide, DiffLineStyle, DiffModelPair, DiffModelTransitionOptions, DiffModels, DiffUnchangedRegionStyle, MonacoCodeValue, MonacoDiffEditorInstance, MonacoEditorInstance, MonacoLanguage, MonacoOptions, MonacoTheme, RevealStrategy, ShikiHighlighter, UseMonacoReturn, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, ensureMonacoWorkersLegacy, getOrCreateHighlighter, preloadMonacoWorkers, registerMonacoThemes, useMonaco };
|
package/dist/index.legacy.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import { RevealStrategy, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, monaco_shim_exports, processedLanguage, registerMonacoThemes, useMonaco, workerPathByLabel } from "./preloadMonacoWorkers.shared-
|
|
1
|
+
import { RevealStrategy, clearHighlighterCache, defaultRevealDebounceMs, detectLanguage, getOrCreateHighlighter, monaco_shim_exports, processedLanguage, registerMonacoThemes, useMonaco, workerPathByLabel } from "./preloadMonacoWorkers.shared-C-OxtyGI.js";
|
|
2
|
+
import { conf, language } from "monaco-editor/esm/vs/basic-languages/cpp/cpp";
|
|
3
|
+
import { conf as conf$1, language as language$1 } from "monaco-editor/esm/vs/basic-languages/javascript/javascript";
|
|
4
|
+
import { conf as conf$2, language as language$2 } from "monaco-editor/esm/vs/basic-languages/powershell/powershell";
|
|
5
|
+
import { conf as conf$3, language as language$3 } from "monaco-editor/esm/vs/basic-languages/python/python";
|
|
6
|
+
import { conf as conf$4, language as language$4 } from "monaco-editor/esm/vs/basic-languages/shell/shell";
|
|
7
|
+
import { conf as conf$5, language as language$5 } from "monaco-editor/esm/vs/basic-languages/typescript/typescript";
|
|
8
|
+
import "monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/outlineModel";
|
|
9
|
+
import "monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestMemory";
|
|
2
10
|
import "monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution";
|
|
3
11
|
import "monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution";
|
|
4
12
|
import "monaco-editor/esm/vs/basic-languages/python/python.contribution";
|
|
@@ -9,14 +17,6 @@ import "monaco-editor/esm/vs/language/json/monaco.contribution";
|
|
|
9
17
|
import "monaco-editor/esm/vs/language/typescript/monaco.contribution";
|
|
10
18
|
import "monaco-editor/esm/vs/language/html/monaco.contribution";
|
|
11
19
|
import "monaco-editor/esm/vs/language/css/monaco.contribution";
|
|
12
|
-
import "monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestMemory";
|
|
13
|
-
import "monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/outlineModel";
|
|
14
|
-
import { conf, language } from "monaco-editor/esm/vs/basic-languages/javascript/javascript";
|
|
15
|
-
import { conf as conf$1, language as language$1 } from "monaco-editor/esm/vs/basic-languages/typescript/typescript";
|
|
16
|
-
import { conf as conf$2, language as language$2 } from "monaco-editor/esm/vs/basic-languages/python/python";
|
|
17
|
-
import { conf as conf$3, language as language$3 } from "monaco-editor/esm/vs/basic-languages/cpp/cpp";
|
|
18
|
-
import { conf as conf$4, language as language$4 } from "monaco-editor/esm/vs/basic-languages/shell/shell";
|
|
19
|
-
import { conf as conf$5, language as language$5 } from "monaco-editor/esm/vs/basic-languages/powershell/powershell";
|
|
20
20
|
|
|
21
21
|
//#region src/ensureMonacoWorkers.legacy.ts
|
|
22
22
|
function normalizeBaseUrl(baseUrl) {
|
|
@@ -36,7 +36,7 @@ function detectMonacoBaseUrlFromScripts() {
|
|
|
36
36
|
for (const script of scripts) {
|
|
37
37
|
const src = script.getAttribute("src") || "";
|
|
38
38
|
if (!src) continue;
|
|
39
|
-
const loaderMatch = src.match(/^(.*)\/vs\/loader\.js
|
|
39
|
+
const loaderMatch = src.match(/^(.*)\/vs\/loader\.js.*$/);
|
|
40
40
|
if (loaderMatch) return normalizeBaseUrl(loaderMatch[1]);
|
|
41
41
|
const vsIndex = src.indexOf("/vs/");
|
|
42
42
|
if (vsIndex > 0) return normalizeBaseUrl(src.slice(0, vsIndex));
|
|
@@ -103,7 +103,7 @@ function ensureMonacoWorkersLegacy(options) {
|
|
|
103
103
|
if (!baseUrl) return;
|
|
104
104
|
const workerUrl = makeWorkerUrl(baseUrl);
|
|
105
105
|
if (!workerUrl) return;
|
|
106
|
-
|
|
106
|
+
globalThis.MonacoEnvironment = { getWorkerUrl() {
|
|
107
107
|
return workerUrl;
|
|
108
108
|
} };
|
|
109
109
|
} catch {}
|
|
@@ -167,18 +167,18 @@ function ensureLegacyMonacoLanguageContributions() {
|
|
|
167
167
|
const langs = monaco_shim_exports.languages;
|
|
168
168
|
if (typeof (langs === null || langs === void 0 ? void 0 : langs.setMonarchTokensProvider) === "function") {
|
|
169
169
|
var _langs$setLanguageCon, _langs$setLanguageCon2, _langs$setLanguageCon3, _langs$setLanguageCon4, _langs$setLanguageCon5, _langs$setLanguageCon6;
|
|
170
|
-
langs.setMonarchTokensProvider("javascript", language);
|
|
171
|
-
(_langs$setLanguageCon = langs.setLanguageConfiguration) === null || _langs$setLanguageCon === void 0 || _langs$setLanguageCon.call(langs, "javascript", conf);
|
|
172
|
-
langs.setMonarchTokensProvider("typescript", language$
|
|
173
|
-
(_langs$setLanguageCon2 = langs.setLanguageConfiguration) === null || _langs$setLanguageCon2 === void 0 || _langs$setLanguageCon2.call(langs, "typescript", conf$
|
|
174
|
-
langs.setMonarchTokensProvider("python", language$
|
|
175
|
-
(_langs$setLanguageCon3 = langs.setLanguageConfiguration) === null || _langs$setLanguageCon3 === void 0 || _langs$setLanguageCon3.call(langs, "python", conf$
|
|
176
|
-
langs.setMonarchTokensProvider("cpp", language
|
|
177
|
-
(_langs$setLanguageCon4 = langs.setLanguageConfiguration) === null || _langs$setLanguageCon4 === void 0 || _langs$setLanguageCon4.call(langs, "cpp", conf
|
|
170
|
+
langs.setMonarchTokensProvider("javascript", language$1);
|
|
171
|
+
(_langs$setLanguageCon = langs.setLanguageConfiguration) === null || _langs$setLanguageCon === void 0 || _langs$setLanguageCon.call(langs, "javascript", conf$1);
|
|
172
|
+
langs.setMonarchTokensProvider("typescript", language$5);
|
|
173
|
+
(_langs$setLanguageCon2 = langs.setLanguageConfiguration) === null || _langs$setLanguageCon2 === void 0 || _langs$setLanguageCon2.call(langs, "typescript", conf$5);
|
|
174
|
+
langs.setMonarchTokensProvider("python", language$3);
|
|
175
|
+
(_langs$setLanguageCon3 = langs.setLanguageConfiguration) === null || _langs$setLanguageCon3 === void 0 || _langs$setLanguageCon3.call(langs, "python", conf$3);
|
|
176
|
+
langs.setMonarchTokensProvider("cpp", language);
|
|
177
|
+
(_langs$setLanguageCon4 = langs.setLanguageConfiguration) === null || _langs$setLanguageCon4 === void 0 || _langs$setLanguageCon4.call(langs, "cpp", conf);
|
|
178
178
|
langs.setMonarchTokensProvider("shell", language$4);
|
|
179
179
|
(_langs$setLanguageCon5 = langs.setLanguageConfiguration) === null || _langs$setLanguageCon5 === void 0 || _langs$setLanguageCon5.call(langs, "shell", conf$4);
|
|
180
|
-
langs.setMonarchTokensProvider("powershell", language$
|
|
181
|
-
(_langs$setLanguageCon6 = langs.setLanguageConfiguration) === null || _langs$setLanguageCon6 === void 0 || _langs$setLanguageCon6.call(langs, "powershell", conf$
|
|
180
|
+
langs.setMonarchTokensProvider("powershell", language$2);
|
|
181
|
+
(_langs$setLanguageCon6 = langs.setLanguageConfiguration) === null || _langs$setLanguageCon6 === void 0 || _langs$setLanguageCon6.call(langs, "powershell", conf$2);
|
|
182
182
|
}
|
|
183
183
|
} catch {}
|
|
184
184
|
try {
|