@difizen/libro-code-editor 0.3.4 → 1.0.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/es/code-editor-info-manager.js +1 -1
- package/es/code-editor-inline-completions/inline-completions-manager.d.ts +2 -2
- package/es/code-editor-inline-completions/inline-completions-manager.d.ts.map +1 -1
- package/es/code-editor-inline-completions/inline-completions-manager.js +1 -1
- package/es/code-editor-inline-completions/inline-completions-protocol.d.ts +3 -3
- package/es/code-editor-inline-completions/inline-completions-protocol.d.ts.map +1 -1
- package/es/code-editor-inline-completions/inline-completions-protocol.js +1 -1
- package/es/code-editor-manager.d.ts +2 -2
- package/es/code-editor-manager.d.ts.map +1 -1
- package/es/code-editor-manager.js +1 -1
- package/es/code-editor-model.d.ts +2 -2
- package/es/code-editor-model.d.ts.map +1 -1
- package/es/code-editor-model.js +1 -1
- package/es/code-editor-protocol.d.ts +2 -2
- package/es/code-editor-protocol.d.ts.map +1 -1
- package/es/code-editor-protocol.js +1 -1
- package/es/code-editor-settings.d.ts +3 -3
- package/es/code-editor-settings.d.ts.map +1 -1
- package/es/code-editor-settings.js +2 -2
- package/es/code-editor-state-manager.d.ts +1 -1
- package/es/code-editor-state-manager.d.ts.map +1 -1
- package/es/code-editor-state-manager.js +3 -3
- package/es/code-editor-view.d.ts +3 -3
- package/es/code-editor-view.d.ts.map +1 -1
- package/es/code-editor-view.js +1 -1
- package/es/language-specs.d.ts +3 -3
- package/es/language-specs.d.ts.map +1 -1
- package/es/language-specs.js +2 -2
- package/es/module.d.ts +1 -1
- package/es/module.d.ts.map +1 -1
- package/es/module.js +1 -1
- package/package.json +2 -4
- package/src/code-editor-info-manager.ts +1 -1
- package/src/code-editor-inline-completions/inline-completions-manager.ts +2 -2
- package/src/code-editor-inline-completions/inline-completions-protocol.ts +3 -3
- package/src/code-editor-manager.ts +8 -2
- package/src/code-editor-model.ts +2 -2
- package/src/code-editor-protocol.ts +2 -2
- package/src/code-editor-settings.ts +3 -3
- package/src/code-editor-state-manager.ts +4 -4
- package/src/code-editor-view.tsx +1 -1
- package/src/language-specs.ts +3 -3
- package/src/module.ts +1 -1
|
@@ -5,7 +5,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5
5
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
-
import { singleton } from '@difizen/
|
|
8
|
+
import { singleton } from '@difizen/libro-common/app';
|
|
9
9
|
export var CodeEditorInfoManager = (_dec = singleton(), _dec(_class = /*#__PURE__*/function () {
|
|
10
10
|
function CodeEditorInfoManager() {
|
|
11
11
|
_classCallCheck(this, CodeEditorInfoManager);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Contribution } from '@difizen/
|
|
2
|
-
import { ApplicationContribution } from '@difizen/
|
|
1
|
+
import type { Contribution } from '@difizen/libro-common/app';
|
|
2
|
+
import { ApplicationContribution } from '@difizen/libro-common/app';
|
|
3
3
|
import type { InlineCompletionImplement, InlineCompletionRegistry } from './inline-completions-protocol.js';
|
|
4
4
|
import { InlineCompletionContribution } from './inline-completions-protocol.js';
|
|
5
5
|
export declare class InlineCompletionManager implements InlineCompletionRegistry, ApplicationContribution {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-completions-manager.d.ts","sourceRoot":"","sources":["../../src/code-editor-inline-completions/inline-completions-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"inline-completions-manager.d.ts","sourceRoot":"","sources":["../../src/code-editor-inline-completions/inline-completions-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAIL,uBAAuB,EACxB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EACV,yBAAyB,EACzB,wBAAwB,EACzB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAEhF,qBACa,uBACX,YAAW,wBAAwB,EAAE,uBAAuB;IAE5D,OAAO,CAAC,oBAAoB,CAAmC;IAC/D,SAAS,CAAC,QAAQ,CAAC,mBAAmB,EAAE,YAAY,CAAC,QAAQ,CAAC,4BAA4B,CAAC,CAAC;gBAI1F,mBAAmB,EAAE,YAAY,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAK1E,aAAa,CAAC,GAAG,EAAE,yBAAyB;IAI5C,IAAI,uBAAuB,gCAE1B;IAED,OAAO;CAOR"}
|
|
@@ -5,7 +5,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5
5
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
-
import { contrib, Priority, singleton, ApplicationContribution } from '@difizen/
|
|
8
|
+
import { contrib, Priority, singleton, ApplicationContribution } from '@difizen/libro-common/app';
|
|
9
9
|
import { InlineCompletionContribution } from "./inline-completions-protocol.js";
|
|
10
10
|
export var InlineCompletionManager = (_dec = singleton({
|
|
11
11
|
contrib: [ApplicationContribution]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Syringe } from '@difizen/
|
|
1
|
+
import { Syringe } from '@difizen/libro-common/app';
|
|
2
2
|
import type { IPosition, IRange } from '../code-editor-protocol.js';
|
|
3
3
|
export interface IRelativePattern {
|
|
4
4
|
/**
|
|
@@ -113,7 +113,7 @@ export interface InlineCompletionContribution {
|
|
|
113
113
|
export interface InlineCompletionProvider {
|
|
114
114
|
provideInlineCompletionItems: ProvideInlineCompletionsFunction;
|
|
115
115
|
}
|
|
116
|
-
export interface
|
|
116
|
+
export interface EditorCancellationToken {
|
|
117
117
|
/**
|
|
118
118
|
* A flag signalling is cancellation has been requested.
|
|
119
119
|
*/
|
|
@@ -136,5 +136,5 @@ export interface InlineCompletionImplement {
|
|
|
136
136
|
getInlineCompletions: ProvideInlineCompletionsFunction;
|
|
137
137
|
freeInlineCompletions: any;
|
|
138
138
|
}
|
|
139
|
-
export type ProvideInlineCompletionsFunction = (context: ICompletionContext, token:
|
|
139
|
+
export type ProvideInlineCompletionsFunction = (context: ICompletionContext, token: EditorCancellationToken) => Promise<IIntelligentCompletionsResult | undefined>;
|
|
140
140
|
//# sourceMappingURL=inline-completions-protocol.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-completions-protocol.d.ts","sourceRoot":"","sources":["../../src/code-editor-inline-completions/inline-completions-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"inline-completions-protocol.d.ts","sourceRoot":"","sources":["../../src/code-editor-inline-completions/inline-completions-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;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,OAAO,IAAI,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,oBAAoB,EAAE,gCAAgC,CAAC;IACvD,qBAAqB,EAAE,GAAG,CAAC;CAC5B;AAED,MAAM,MAAM,gCAAgC,GAAG,CAC7C,OAAO,EAAE,kBAAkB,EAC3B,KAAK,EAAE,uBAAuB,KAC3B,OAAO,CAAC,6BAA6B,GAAG,SAAS,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" resolution-mode="require"/>
|
|
2
|
-
import type { Contribution } from '@difizen/
|
|
3
|
-
import { ViewManager } from '@difizen/
|
|
2
|
+
import type { Contribution } from '@difizen/libro-common/app';
|
|
3
|
+
import { ViewManager } from '@difizen/libro-common/app';
|
|
4
4
|
import { CodeEditorInfoManager } from './code-editor-info-manager.js';
|
|
5
5
|
import type { IModel } from './code-editor-model.js';
|
|
6
6
|
import { CodeEditorContribution } from './code-editor-protocol.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-editor-manager.d.ts","sourceRoot":"","sources":["../src/code-editor-manager.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"code-editor-manager.d.ts","sourceRoot":"","sources":["../src/code-editor-manager.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAEL,WAAW,EAIZ,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,qBACa,iBAAiB;IAE5B,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,YAAY,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC;IAChE,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,SAAS,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;IAC1D,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IACtF,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAa;IAE3D,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;IAIjE,SAAS,CAAC,sBAAsB,CAAC,KAAK,EAAE,MAAM;IAS9C;;;;OAIG;IACH,sBAAsB,CAAC,KAAK,EAAE,MAAM;IAIpC;;;;OAIG;IACH,mBAAmB,CAAC,KAAK,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAO3B,qBAAqB,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,cAAc,CAAC;CAgBpF"}
|
|
@@ -14,7 +14,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
14
14
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
15
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
16
16
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
17
|
-
import { Priority, ViewManager, contrib, inject, singleton } from '@difizen/
|
|
17
|
+
import { Priority, ViewManager, contrib, inject, singleton } from '@difizen/libro-common/app';
|
|
18
18
|
import { CodeEditorInfoManager } from "./code-editor-info-manager.js";
|
|
19
19
|
import { CodeEditorContribution } from "./code-editor-protocol.js";
|
|
20
20
|
import { CodeEditorSettings } from "./code-editor-settings.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CellType } from '@difizen/libro-common';
|
|
2
|
-
import type { Disposable, Event } from '@difizen/
|
|
3
|
-
import { Emitter } from '@difizen/
|
|
2
|
+
import type { Disposable, Event } from '@difizen/libro-common/app';
|
|
3
|
+
import { Emitter } from '@difizen/libro-common/app';
|
|
4
4
|
import type { ITextSelection } from './code-editor-protocol.js';
|
|
5
5
|
export interface IModelOptions {
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-editor-model.d.ts","sourceRoot":"","sources":["../src/code-editor-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"code-editor-model.d.ts","sourceRoot":"","sources":["../src/code-editor-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAmB,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAGrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,MAAO,SAAQ,UAAU;IACxC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,cAAc,EAAE,CAAC;CAC9B;AAED;;GAEG;AACH,qBACa,KAAM,YAAW,MAAM;IAClC,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IAEH,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,EAAE,QAAQ,CAAU;IAExB;;OAEG;IAEH,UAAU,EAAE,cAAc,EAAE,CAAC;IAE7B;;OAEG;gBACS,OAAO,CAAC,EAAE,aAAa;IAUnC;;OAEG;IACH,IAAI,mBAAmB,IAAI,KAAK,CAAC,OAAO,CAAC,CAExC;IAED;;OAEG;IACH,IAAI,UAAU,IAAI,OAAO,CAExB;IAED;;OAEG;IACH,OAAO,IAAI,IAAI;IAOf,SAAS,CAAC,WAAW,UAAS;IAE9B,SAAS,CAAC,2BAA2B,mBAA0B;IAC/D,SAAS,CAAC,oBAAoB,iBAA0C;CACzE"}
|
package/es/code-editor-model.js
CHANGED
|
@@ -8,7 +8,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
8
8
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
9
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
10
10
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
11
|
-
import { prop, transient, Emitter } from '@difizen/
|
|
11
|
+
import { prop, transient, Emitter } from '@difizen/libro-common/app';
|
|
12
12
|
import { v4 } from 'uuid';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { JSONObject, JSONValue } from '@difizen/libro-common';
|
|
2
|
-
import type { Disposable, Event, ThemeType } from '@difizen/
|
|
3
|
-
import { Syringe } from '@difizen/
|
|
2
|
+
import type { Disposable, Event, ThemeType } from '@difizen/libro-common/app';
|
|
3
|
+
import { Syringe } from '@difizen/libro-common/app';
|
|
4
4
|
import type { IModel } from './code-editor-model.js';
|
|
5
5
|
/**
|
|
6
6
|
* A one-based position in the editor.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-editor-protocol.d.ts","sourceRoot":"","sources":["../src/code-editor-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,KAA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C;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApplicationContribution, DisposableCollection, Emitter, ConfigurationContribution, ConfigurationService } from '@difizen/
|
|
2
|
-
import type { Disposable, ConfigurationNode } from '@difizen/
|
|
1
|
+
import { ApplicationContribution, DisposableCollection, Emitter, ConfigurationContribution, ConfigurationService } from '@difizen/libro-common/app';
|
|
2
|
+
import type { Disposable, ConfigurationNode } from '@difizen/libro-common/app';
|
|
3
3
|
import type { IEditorConfig } from './code-editor-protocol.js';
|
|
4
4
|
declare global {
|
|
5
5
|
interface ObjectConstructor {
|
|
@@ -15,7 +15,7 @@ export declare class CodeEditorSettings implements ConfigurationContribution, Ap
|
|
|
15
15
|
key: keyof IEditorConfig;
|
|
16
16
|
value: any;
|
|
17
17
|
}>;
|
|
18
|
-
onCodeEditorSettingsChange: import("@difizen/
|
|
18
|
+
onCodeEditorSettingsChange: import("@difizen/libro-common/app").Event<{
|
|
19
19
|
key: keyof IEditorConfig;
|
|
20
20
|
value: any;
|
|
21
21
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-editor-settings.d.ts","sourceRoot":"","sources":["../src/code-editor-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,uBAAuB,EACvB,oBAAoB,EACpB,OAAO,EACP,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,
|
|
1
|
+
{"version":3,"file":"code-editor-settings.d.ts","sourceRoot":"","sources":["../src/code-editor-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,uBAAuB,EACvB,oBAAoB,EACpB,OAAO,EACP,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EACV,UAAU,EACV,iBAAiB,EAElB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG/D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,iBAAiB;QACzB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;KACnC;CACF;AAmGD,eAAO,MAAM,iBAAiB,EAAE;KAC7B,GAAG,IAAI,MAAM,aAAa,CAAC,CAAC,EAAE,iBAAiB,CAAC,GAAG,CAAC;CAStD,CAAC;AAEF,qBACa,kBACX,YAAW,yBAAyB,EAAE,uBAAuB,EAAE,UAAU;IAEzE,SAAS,CAAC,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IAE9D,SAAS,CAAC,+BAA+B;aAClC,MAAM,aAAa;eACjB,GAAG;OACP;IAEL,0BAA0B;aAJnB,MAAM,aAAa;eACjB,GAAG;OAG4D;IAExE,SAAS,CAAC,SAAS,uBAA8B;IAEjD,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC;gBAIxD,oBAAoB,EAAE,oBAAoB;IAI5C,sBAAsB;IAYhB,OAAO;IAIb,qBAAqB,IAAI,OAAO,CAAC,aAAa,CAAC,GAAG,SAAS;cAI3C,uBAAuB,IAAI,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAQ1E,SAAS,CAAC,0BAA0B;IAiBpC,SAAS,CAAC,UAAU,UAAS;IAC7B,IAAI,QAAQ,YAEX;IACD,OAAO;CAOR"}
|
|
@@ -8,8 +8,8 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
8
8
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
9
9
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
10
10
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
|
-
import { inject, singleton, ApplicationContribution, DisposableCollection, Emitter, ConfigurationContribution, ConfigurationService } from '@difizen/
|
|
12
|
-
import { l10n } from '@difizen/
|
|
11
|
+
import { inject, singleton, ApplicationContribution, DisposableCollection, Emitter, ConfigurationContribution, ConfigurationService } from '@difizen/libro-common/app';
|
|
12
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
13
13
|
import { defaultConfig } from "./code-editor-protocol.js";
|
|
14
14
|
Object.typedKeys = Object.keys;
|
|
15
15
|
var LibroUserSettingStorage = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Contribution } from '@difizen/
|
|
1
|
+
import type { Contribution } from '@difizen/libro-common/app';
|
|
2
2
|
import type { IModel } from './code-editor-model.js';
|
|
3
3
|
import type { EditorState, IEditorStateOptions } from './code-editor-protocol.js';
|
|
4
4
|
import { CodeEditorContribution } from './code-editor-protocol.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-editor-state-manager.d.ts","sourceRoot":"","sources":["../src/code-editor-state-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"code-editor-state-manager.d.ts","sourceRoot":"","sources":["../src/code-editor-state-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAK9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,qBACa,sBAAsB;IACjC,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,YAAY,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC;IACrF,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAa;gBAIzD,kBAAkB,EAAE,YAAY,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IAKnE,SAAS,CAAC,sBAAsB,CAAC,KAAK,EAAE,MAAM;IASxC,sBAAsB,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,WAAW,CAAC;IAgB/E,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW;IAIhD,iBAAiB,CAAC,EAAE,EAAE,MAAM;CAG7B"}
|
|
@@ -8,9 +8,9 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
8
8
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
9
9
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
10
10
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
|
-
import { Priority } from '@difizen/
|
|
12
|
-
import { contrib } from '@difizen/
|
|
13
|
-
import { singleton } from '@difizen/
|
|
11
|
+
import { Priority } from '@difizen/libro-common/app';
|
|
12
|
+
import { contrib } from '@difizen/libro-common/app';
|
|
13
|
+
import { singleton } from '@difizen/libro-common/app';
|
|
14
14
|
import { CodeEditorContribution } from "./code-editor-protocol.js";
|
|
15
15
|
export var CodeEditorStateManager = (_dec = singleton(), _dec(_class = /*#__PURE__*/function () {
|
|
16
16
|
function CodeEditorStateManager(codeEditorProvider) {
|
package/es/code-editor-view.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" resolution-mode="require"/>
|
|
2
|
-
import { Emitter, BaseView, ThemeService } from '@difizen/
|
|
2
|
+
import { Emitter, BaseView, ThemeService } from '@difizen/libro-common/app';
|
|
3
3
|
import { CodeEditorInfoManager } from './code-editor-info-manager.js';
|
|
4
4
|
import type { IModel } from './code-editor-model.js';
|
|
5
5
|
import type { CompletionProvider, IEditorConfig, IEditor, IEditorSelectionStyle, TooltipProvider, CodeEditorFactory } from './code-editor-protocol.js';
|
|
@@ -20,7 +20,7 @@ export declare class CodeEditorView extends BaseView {
|
|
|
20
20
|
protected options: CodeEditorViewOptions;
|
|
21
21
|
protected modalChangeEmitter: Emitter<any>;
|
|
22
22
|
protected editorHostRef: React.RefObject<HTMLDivElement> | null | undefined;
|
|
23
|
-
get onModalChange(): import("@difizen/
|
|
23
|
+
get onModalChange(): import("@difizen/libro-common/app").Event<any>;
|
|
24
24
|
/**
|
|
25
25
|
* Get the editor wrapped by the widget.
|
|
26
26
|
*/
|
|
@@ -30,7 +30,7 @@ export declare class CodeEditorView extends BaseView {
|
|
|
30
30
|
status: CodeEditorViewStatus;
|
|
31
31
|
prevState: CodeEditorViewStatus;
|
|
32
32
|
}>;
|
|
33
|
-
onEditorStatusChange: import("@difizen/
|
|
33
|
+
onEditorStatusChange: import("@difizen/libro-common/app").Event<{
|
|
34
34
|
status: CodeEditorViewStatus;
|
|
35
35
|
prevState: CodeEditorViewStatus;
|
|
36
36
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-editor-view.d.ts","sourceRoot":"","sources":["../src/code-editor-view.tsx"],"names":[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,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAEzB;;OAEG;IACH,cAAc,CAAC,EAAE,qBAAqB,CAAC;IAEvC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAExC,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB"}
|
package/es/code-editor-view.js
CHANGED
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
23
23
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
24
24
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
25
25
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
26
|
-
import { inject, transient, Emitter, BaseView, ThemeService, view, ViewOption } from '@difizen/
|
|
26
|
+
import { inject, transient, Emitter, BaseView, ThemeService, view, ViewOption } from '@difizen/libro-common/app';
|
|
27
27
|
import { forwardRef, memo } from 'react';
|
|
28
28
|
import { CodeEditorInfoManager } from "./code-editor-info-manager.js";
|
|
29
29
|
import { CodeEditorSettings } from "./code-editor-settings.js";
|
package/es/language-specs.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Contribution } from '@difizen/
|
|
2
|
-
import { ApplicationContribution } from '@difizen/
|
|
3
|
-
import { Syringe } from '@difizen/
|
|
1
|
+
import type { Contribution } from '@difizen/libro-common/app';
|
|
2
|
+
import { ApplicationContribution } from '@difizen/libro-common/app';
|
|
3
|
+
import { Syringe } from '@difizen/libro-common/app';
|
|
4
4
|
export declare const LanguageSpecContribution: Syringe.DefinedToken;
|
|
5
5
|
export interface LanguageSpecContribution {
|
|
6
6
|
registerLanguageSpec: (register: LanguageSpecRegistry) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"language-specs.d.ts","sourceRoot":"","sources":["../src/language-specs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"language-specs.d.ts","sourceRoot":"","sources":["../src/language-specs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAsB,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAExE,eAAO,MAAM,wBAAwB,sBAAkD,CAAC;AACxF,MAAM,WAAW,wBAAwB;IACvC,oBAAoB,EAAE,CAAC,QAAQ,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAChE;AACD,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,MAAM,EAAE,CAAC;CACf;AAED,qBACa,oBAAqB,YAAW,uBAAuB;IAClE,IAAI,aAAa,IAAI,YAAY,EAAE,CAElC;IACD,SAAS,CAAC,iBAAiB,EAAE,YAAY,EAAE,CAAM;IAEjD,SAAS,CAAC,QAAQ,CAAC,oBAAoB,EAAE,YAAY,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;gBAIvF,oBAAoB,EAAE,YAAY,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IAKvE,UAAU;IAMV;;OAEG;IACH,oBAAoB,CAAC,IAAI,EAAE,YAAY;IAWvC,WAAW,CAAC,IAAI,EAAE,YAAY;CAK/B"}
|
package/es/language-specs.js
CHANGED
|
@@ -5,8 +5,8 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5
5
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
-
import { ApplicationContribution } from '@difizen/
|
|
9
|
-
import { contrib, singleton, Syringe } from '@difizen/
|
|
8
|
+
import { ApplicationContribution } from '@difizen/libro-common/app';
|
|
9
|
+
import { contrib, singleton, Syringe } from '@difizen/libro-common/app';
|
|
10
10
|
export var LanguageSpecContribution = Syringe.defineToken('LanguageSpecContribution');
|
|
11
11
|
export var LanguageSpecRegistry = (_dec = singleton({
|
|
12
12
|
contrib: [ApplicationContribution]
|
package/es/module.d.ts
CHANGED
package/es/module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAevD,eAAO,MAAM,gBAAgB,YAe1B,CAAC"}
|
package/es/module.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ManaModule } from '@difizen/
|
|
1
|
+
import { ManaModule } from '@difizen/libro-common/app';
|
|
2
2
|
import { CodeEditorInfoManager } from "./code-editor-info-manager.js";
|
|
3
3
|
import { InlineCompletionContribution, InlineCompletionManager } from "./code-editor-inline-completions/index.js";
|
|
4
4
|
import { CodeEditorManager } from "./code-editor-manager.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-code-editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro",
|
|
@@ -32,9 +32,7 @@
|
|
|
32
32
|
"src"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@difizen/libro-common": "^0.
|
|
36
|
-
"@difizen/mana-app": "latest",
|
|
37
|
-
"@difizen/mana-l10n": "latest",
|
|
35
|
+
"@difizen/libro-common": "^1.0.0",
|
|
38
36
|
"uuid": "^9.0.1"
|
|
39
37
|
},
|
|
40
38
|
"peerDependencies": {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { Contribution } from '@difizen/
|
|
1
|
+
import type { Contribution } from '@difizen/libro-common/app';
|
|
2
2
|
import {
|
|
3
3
|
contrib,
|
|
4
4
|
Priority,
|
|
5
5
|
singleton,
|
|
6
6
|
ApplicationContribution,
|
|
7
|
-
} from '@difizen/
|
|
7
|
+
} from '@difizen/libro-common/app';
|
|
8
8
|
|
|
9
9
|
import type {
|
|
10
10
|
InlineCompletionImplement,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Syringe } from '@difizen/
|
|
1
|
+
import { Syringe } from '@difizen/libro-common/app';
|
|
2
2
|
|
|
3
3
|
import type { IPosition, IRange } from '../code-editor-protocol.js';
|
|
4
4
|
|
|
@@ -137,7 +137,7 @@ export interface InlineCompletionProvider {
|
|
|
137
137
|
provideInlineCompletionItems: ProvideInlineCompletionsFunction;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
export interface
|
|
140
|
+
export interface EditorCancellationToken {
|
|
141
141
|
/**
|
|
142
142
|
* A flag signalling is cancellation has been requested.
|
|
143
143
|
*/
|
|
@@ -169,5 +169,5 @@ export interface InlineCompletionImplement {
|
|
|
169
169
|
|
|
170
170
|
export type ProvideInlineCompletionsFunction = (
|
|
171
171
|
context: ICompletionContext,
|
|
172
|
-
token:
|
|
172
|
+
token: EditorCancellationToken,
|
|
173
173
|
) => Promise<IIntelligentCompletionsResult | undefined>;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import type { Contribution } from '@difizen/
|
|
2
|
-
import {
|
|
1
|
+
import type { Contribution } from '@difizen/libro-common/app';
|
|
2
|
+
import {
|
|
3
|
+
Priority,
|
|
4
|
+
ViewManager,
|
|
5
|
+
contrib,
|
|
6
|
+
inject,
|
|
7
|
+
singleton,
|
|
8
|
+
} from '@difizen/libro-common/app';
|
|
3
9
|
|
|
4
10
|
import { CodeEditorInfoManager } from './code-editor-info-manager.js';
|
|
5
11
|
import type { IModel } from './code-editor-model.js';
|
package/src/code-editor-model.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CellType } from '@difizen/libro-common';
|
|
2
|
-
import type { Disposable, Event } from '@difizen/
|
|
3
|
-
import { prop, transient, Emitter } from '@difizen/
|
|
2
|
+
import type { Disposable, Event } from '@difizen/libro-common/app';
|
|
3
|
+
import { prop, transient, Emitter } from '@difizen/libro-common/app';
|
|
4
4
|
import { v4 } from 'uuid';
|
|
5
5
|
|
|
6
6
|
import type { ITextSelection } from './code-editor-protocol.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { JSONObject, JSONValue } from '@difizen/libro-common';
|
|
2
|
-
import type { Disposable, Event, ThemeType } from '@difizen/
|
|
3
|
-
import { Syringe } from '@difizen/
|
|
2
|
+
import type { Disposable, Event, ThemeType } from '@difizen/libro-common/app';
|
|
3
|
+
import { Syringe } from '@difizen/libro-common/app';
|
|
4
4
|
|
|
5
5
|
import type { IModel } from './code-editor-model.js';
|
|
6
6
|
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
Emitter,
|
|
7
7
|
ConfigurationContribution,
|
|
8
8
|
ConfigurationService,
|
|
9
|
-
} from '@difizen/
|
|
9
|
+
} from '@difizen/libro-common/app';
|
|
10
10
|
import type {
|
|
11
11
|
Disposable,
|
|
12
12
|
ConfigurationNode,
|
|
13
13
|
ConfigurationStorage,
|
|
14
|
-
} from '@difizen/
|
|
15
|
-
import { l10n } from '@difizen/
|
|
14
|
+
} from '@difizen/libro-common/app';
|
|
15
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
16
16
|
|
|
17
17
|
import type { IEditorConfig } from './code-editor-protocol.js';
|
|
18
18
|
import { defaultConfig } from './code-editor-protocol.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Contribution } from '@difizen/
|
|
2
|
-
import { Priority } from '@difizen/
|
|
3
|
-
import { contrib } from '@difizen/
|
|
4
|
-
import { singleton } from '@difizen/
|
|
1
|
+
import type { Contribution } from '@difizen/libro-common/app';
|
|
2
|
+
import { Priority } from '@difizen/libro-common/app';
|
|
3
|
+
import { contrib } from '@difizen/libro-common/app';
|
|
4
|
+
import { singleton } from '@difizen/libro-common/app';
|
|
5
5
|
|
|
6
6
|
import type { IModel } from './code-editor-model.js';
|
|
7
7
|
import type { EditorState, IEditorStateOptions } from './code-editor-protocol.js';
|
package/src/code-editor-view.tsx
CHANGED
package/src/language-specs.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Contribution } from '@difizen/
|
|
2
|
-
import { ApplicationContribution } from '@difizen/
|
|
3
|
-
import { contrib, singleton, Syringe } from '@difizen/
|
|
1
|
+
import type { Contribution } from '@difizen/libro-common/app';
|
|
2
|
+
import { ApplicationContribution } from '@difizen/libro-common/app';
|
|
3
|
+
import { contrib, singleton, Syringe } from '@difizen/libro-common/app';
|
|
4
4
|
|
|
5
5
|
export const LanguageSpecContribution = Syringe.defineToken('LanguageSpecContribution');
|
|
6
6
|
export interface LanguageSpecContribution {
|
package/src/module.ts
CHANGED