@opensumi/ide-core-common 2.12.1-next-079c1930
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/lib/application-error.d.ts +36 -0
- package/lib/application-error.d.ts.map +1 -0
- package/lib/application-error.js +64 -0
- package/lib/application-error.js.map +1 -0
- package/lib/application-props.d.ts +26 -0
- package/lib/application-props.d.ts.map +1 -0
- package/lib/application-props.js +3 -0
- package/lib/application-props.js.map +1 -0
- package/lib/arrays.d.ts +131 -0
- package/lib/arrays.d.ts.map +1 -0
- package/lib/arrays.js +533 -0
- package/lib/arrays.js.map +1 -0
- package/lib/async.d.ts +165 -0
- package/lib/async.d.ts.map +1 -0
- package/lib/async.js +417 -0
- package/lib/async.js.map +1 -0
- package/lib/browser-fs/ensure-dir.d.ts +7 -0
- package/lib/browser-fs/ensure-dir.d.ts.map +1 -0
- package/lib/browser-fs/ensure-dir.js +40 -0
- package/lib/browser-fs/ensure-dir.js.map +1 -0
- package/lib/browser-fs/util.d.ts +18 -0
- package/lib/browser-fs/util.d.ts.map +1 -0
- package/lib/browser-fs/util.js +21 -0
- package/lib/browser-fs/util.js.map +1 -0
- package/lib/cache.d.ts +12 -0
- package/lib/cache.d.ts.map +1 -0
- package/lib/cache.js +36 -0
- package/lib/cache.js.map +1 -0
- package/lib/cancellation.d.ts +23 -0
- package/lib/cancellation.d.ts.map +1 -0
- package/lib/cancellation.js +116 -0
- package/lib/cancellation.js.map +1 -0
- package/lib/charCode.d.ts +406 -0
- package/lib/charCode.d.ts.map +1 -0
- package/lib/charCode.js +8 -0
- package/lib/charCode.js.map +1 -0
- package/lib/character-classifier.d.ts +25 -0
- package/lib/character-classifier.d.ts.map +1 -0
- package/lib/character-classifier.js +58 -0
- package/lib/character-classifier.js.map +1 -0
- package/lib/command.d.ts +350 -0
- package/lib/command.d.ts.map +1 -0
- package/lib/command.js +408 -0
- package/lib/command.js.map +1 -0
- package/lib/connection.d.ts +8 -0
- package/lib/connection.d.ts.map +1 -0
- package/lib/connection.js +17 -0
- package/lib/connection.js.map +1 -0
- package/lib/const/application.d.ts +3 -0
- package/lib/const/application.d.ts.map +1 -0
- package/lib/const/application.js +6 -0
- package/lib/const/application.js.map +1 -0
- package/lib/const/encodings.d.ts +10 -0
- package/lib/const/encodings.d.ts.map +1 -0
- package/lib/const/encodings.js +244 -0
- package/lib/const/encodings.js.map +1 -0
- package/lib/const/index.d.ts +2 -0
- package/lib/const/index.d.ts.map +1 -0
- package/lib/const/index.js +5 -0
- package/lib/const/index.js.map +1 -0
- package/lib/contribution-provider.d.ts +38 -0
- package/lib/contribution-provider.d.ts.map +1 -0
- package/lib/contribution-provider.js +60 -0
- package/lib/contribution-provider.js.map +1 -0
- package/lib/credential.d.ts +21 -0
- package/lib/credential.d.ts.map +1 -0
- package/lib/credential.js +6 -0
- package/lib/credential.js.map +1 -0
- package/lib/cryptr.d.ts +7 -0
- package/lib/cryptr.d.ts.map +1 -0
- package/lib/cryptr.js +6 -0
- package/lib/cryptr.js.map +1 -0
- package/lib/date.d.ts +2 -0
- package/lib/date.d.ts.map +1 -0
- package/lib/date.js +16 -0
- package/lib/date.js.map +1 -0
- package/lib/declare.d.ts +3 -0
- package/lib/declare.d.ts.map +1 -0
- package/lib/declare.js +3 -0
- package/lib/declare.js.map +1 -0
- package/lib/di-helper/domain-helper.d.ts +14 -0
- package/lib/di-helper/domain-helper.d.ts.map +1 -0
- package/lib/di-helper/domain-helper.js +48 -0
- package/lib/di-helper/domain-helper.js.map +1 -0
- package/lib/di-helper/index.d.ts +2 -0
- package/lib/di-helper/index.d.ts.map +1 -0
- package/lib/di-helper/index.js +5 -0
- package/lib/di-helper/index.js.map +1 -0
- package/lib/disposable.d.ts +88 -0
- package/lib/disposable.d.ts.map +1 -0
- package/lib/disposable.js +309 -0
- package/lib/disposable.js.map +1 -0
- package/lib/electron.d.ts +118 -0
- package/lib/electron.d.ts.map +1 -0
- package/lib/electron.js +7 -0
- package/lib/electron.js.map +1 -0
- package/lib/encoding/index.d.ts +34 -0
- package/lib/encoding/index.d.ts.map +1 -0
- package/lib/encoding/index.js +219 -0
- package/lib/encoding/index.js.map +1 -0
- package/lib/env.d.ts +2 -0
- package/lib/env.d.ts.map +1 -0
- package/lib/env.js +5 -0
- package/lib/env.js.map +1 -0
- package/lib/errors.d.ts +60 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +148 -0
- package/lib/errors.js.map +1 -0
- package/lib/event-bus/basic-event.d.ts +5 -0
- package/lib/event-bus/basic-event.d.ts.map +1 -0
- package/lib/event-bus/basic-event.js +10 -0
- package/lib/event-bus/basic-event.js.map +1 -0
- package/lib/event-bus/event-bus-types.d.ts +66 -0
- package/lib/event-bus/event-bus-types.d.ts.map +1 -0
- package/lib/event-bus/event-bus-types.js +5 -0
- package/lib/event-bus/event-bus-types.js.map +1 -0
- package/lib/event-bus/event-bus.d.ts +13 -0
- package/lib/event-bus/event-bus.d.ts.map +1 -0
- package/lib/event-bus/event-bus.js +55 -0
- package/lib/event-bus/event-bus.js.map +1 -0
- package/lib/event-bus/event-decorator.d.ts +10 -0
- package/lib/event-bus/event-decorator.d.ts.map +1 -0
- package/lib/event-bus/event-decorator.js +34 -0
- package/lib/event-bus/event-decorator.js.map +1 -0
- package/lib/event-bus/index.d.ts +5 -0
- package/lib/event-bus/index.d.ts.map +1 -0
- package/lib/event-bus/index.js +8 -0
- package/lib/event-bus/index.js.map +1 -0
- package/lib/event.d.ts +270 -0
- package/lib/event.d.ts.map +1 -0
- package/lib/event.js +810 -0
- package/lib/event.js.map +1 -0
- package/lib/filters.d.ts +51 -0
- package/lib/filters.d.ts.map +1 -0
- package/lib/filters.js +688 -0
- package/lib/filters.js.map +1 -0
- package/lib/functional.d.ts +4 -0
- package/lib/functional.d.ts.map +1 -0
- package/lib/functional.js +45 -0
- package/lib/functional.js.map +1 -0
- package/lib/hash-calculate/WASMInterface.d.ts +61 -0
- package/lib/hash-calculate/WASMInterface.d.ts.map +1 -0
- package/lib/hash-calculate/WASMInterface.js +180 -0
- package/lib/hash-calculate/WASMInterface.js.map +1 -0
- package/lib/hash-calculate/hash-calculate.d.ts +13 -0
- package/lib/hash-calculate/hash-calculate.d.ts.map +1 -0
- package/lib/hash-calculate/hash-calculate.js +41 -0
- package/lib/hash-calculate/hash-calculate.js.map +1 -0
- package/lib/hash-calculate/lockedCreate.d.ts +4 -0
- package/lib/hash-calculate/lockedCreate.d.ts.map +1 -0
- package/lib/hash-calculate/lockedCreate.js +17 -0
- package/lib/hash-calculate/lockedCreate.js.map +1 -0
- package/lib/hash-calculate/md5.wasm.json +1 -0
- package/lib/hash-calculate/mutex.d.ts +6 -0
- package/lib/hash-calculate/mutex.d.ts.map +1 -0
- package/lib/hash-calculate/mutex.js +32 -0
- package/lib/hash-calculate/mutex.js.map +1 -0
- package/lib/hash-calculate/util.d.ts +12 -0
- package/lib/hash-calculate/util.d.ts.map +1 -0
- package/lib/hash-calculate/util.js +166 -0
- package/lib/hash-calculate/util.js.map +1 -0
- package/lib/id-generator.d.ts +8 -0
- package/lib/id-generator.d.ts.map +1 -0
- package/lib/id-generator.js +15 -0
- package/lib/id-generator.js.map +1 -0
- package/lib/index.d.ts +47 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +50 -0
- package/lib/index.js.map +1 -0
- package/lib/iterator.d.ts +14 -0
- package/lib/iterator.d.ts.map +1 -0
- package/lib/iterator.js +9 -0
- package/lib/iterator.js.map +1 -0
- package/lib/json-schema.d.ts +65 -0
- package/lib/json-schema.d.ts.map +1 -0
- package/lib/json-schema.js +3 -0
- package/lib/json-schema.js.map +1 -0
- package/lib/keyboard/index.d.ts +3 -0
- package/lib/keyboard/index.d.ts.map +1 -0
- package/lib/keyboard/index.js +6 -0
- package/lib/keyboard/index.js.map +1 -0
- package/lib/keyboard/keyboard-layout-provider.d.ts +38 -0
- package/lib/keyboard/keyboard-layout-provider.d.ts.map +1 -0
- package/lib/keyboard/keyboard-layout-provider.js +23 -0
- package/lib/keyboard/keyboard-layout-provider.js.map +1 -0
- package/lib/keyboard/keymap.d.ts +71 -0
- package/lib/keyboard/keymap.d.ts.map +1 -0
- package/lib/keyboard/keymap.js +128 -0
- package/lib/keyboard/keymap.js.map +1 -0
- package/lib/lifecycle.d.ts +17 -0
- package/lib/lifecycle.d.ts.map +1 -0
- package/lib/lifecycle.js +37 -0
- package/lib/lifecycle.js.map +1 -0
- package/lib/line-text.d.ts +17 -0
- package/lib/line-text.d.ts.map +1 -0
- package/lib/line-text.js +72 -0
- package/lib/line-text.js.map +1 -0
- package/lib/linked-list.d.ts +18 -0
- package/lib/linked-list.d.ts.map +1 -0
- package/lib/linked-list.js +138 -0
- package/lib/linked-list.js.map +1 -0
- package/lib/linkedText.d.ts +13 -0
- package/lib/linkedText.d.ts.map +1 -0
- package/lib/linkedText.js +50 -0
- package/lib/linkedText.js.map +1 -0
- package/lib/localize.d.ts +52 -0
- package/lib/localize.d.ts.map +1 -0
- package/lib/localize.js +128 -0
- package/lib/localize.js.map +1 -0
- package/lib/log.d.ts +181 -0
- package/lib/log.d.ts.map +1 -0
- package/lib/log.js +163 -0
- package/lib/log.js.map +1 -0
- package/lib/map.d.ts +124 -0
- package/lib/map.d.ts.map +1 -0
- package/lib/map.js +819 -0
- package/lib/map.js.map +1 -0
- package/lib/menu.d.ts +27 -0
- package/lib/menu.d.ts.map +1 -0
- package/lib/menu.js +5 -0
- package/lib/menu.js.map +1 -0
- package/lib/mocks/electron/browserMock.d.ts +2 -0
- package/lib/mocks/electron/browserMock.d.ts.map +1 -0
- package/lib/mocks/electron/browserMock.js +15 -0
- package/lib/mocks/electron/browserMock.js.map +1 -0
- package/lib/mocks/electron/ipcRenderer.d.ts +13 -0
- package/lib/mocks/electron/ipcRenderer.d.ts.map +1 -0
- package/lib/mocks/electron/ipcRenderer.js +32 -0
- package/lib/mocks/electron/ipcRenderer.js.map +1 -0
- package/lib/module.d.ts +23 -0
- package/lib/module.d.ts.map +1 -0
- package/lib/module.js +22 -0
- package/lib/module.js.map +1 -0
- package/lib/network.d.ts +33 -0
- package/lib/network.d.ts.map +1 -0
- package/lib/network.js +37 -0
- package/lib/network.js.map +1 -0
- package/lib/node/port.d.ts +14 -0
- package/lib/node/port.d.ts.map +1 -0
- package/lib/node/port.js +124 -0
- package/lib/node/port.js.map +1 -0
- package/lib/path.d.ts +92 -0
- package/lib/path.d.ts.map +1 -0
- package/lib/path.js +1711 -0
- package/lib/path.js.map +1 -0
- package/lib/platform.d.ts +48 -0
- package/lib/platform.d.ts.map +1 -0
- package/lib/platform.js +143 -0
- package/lib/platform.js.map +1 -0
- package/lib/preferences/index.d.ts +3 -0
- package/lib/preferences/index.d.ts.map +1 -0
- package/lib/preferences/index.js +6 -0
- package/lib/preferences/index.js.map +1 -0
- package/lib/preferences/preference-schema.d.ts +76 -0
- package/lib/preferences/preference-schema.d.ts.map +1 -0
- package/lib/preferences/preference-schema.js +59 -0
- package/lib/preferences/preference-schema.js.map +1 -0
- package/lib/preferences/preference-scope.d.ts +15 -0
- package/lib/preferences/preference-scope.d.ts.map +1 -0
- package/lib/preferences/preference-scope.js +54 -0
- package/lib/preferences/preference-scope.js.map +1 -0
- package/lib/problem-matcher.d.ts +111 -0
- package/lib/problem-matcher.d.ts.map +1 -0
- package/lib/problem-matcher.js +294 -0
- package/lib/problem-matcher.js.map +1 -0
- package/lib/problem-pattern.d.ts +193 -0
- package/lib/problem-pattern.d.ts.map +1 -0
- package/lib/problem-pattern.js +416 -0
- package/lib/problem-pattern.js.map +1 -0
- package/lib/process.d.ts +5 -0
- package/lib/process.d.ts.map +1 -0
- package/lib/process.js +15 -0
- package/lib/process.js.map +1 -0
- package/lib/progress.d.ts +56 -0
- package/lib/progress.d.ts.map +1 -0
- package/lib/progress.js +25 -0
- package/lib/progress.js.map +1 -0
- package/lib/range.d.ts +7 -0
- package/lib/range.d.ts.map +1 -0
- package/lib/range.js +28 -0
- package/lib/range.js.map +1 -0
- package/lib/reference.d.ts +35 -0
- package/lib/reference.d.ts.map +1 -0
- package/lib/reference.js +122 -0
- package/lib/reference.js.map +1 -0
- package/lib/reporter.d.ts +16 -0
- package/lib/reporter.d.ts.map +1 -0
- package/lib/reporter.js +66 -0
- package/lib/reporter.js.map +1 -0
- package/lib/sequence.d.ts +20 -0
- package/lib/sequence.d.ts.map +1 -0
- package/lib/sequence.js +17 -0
- package/lib/sequence.js.map +1 -0
- package/lib/storage.d.ts +64 -0
- package/lib/storage.d.ts.map +1 -0
- package/lib/storage.js +70 -0
- package/lib/storage.js.map +1 -0
- package/lib/task-definition.d.ts +45 -0
- package/lib/task-definition.d.ts.map +1 -0
- package/lib/task-definition.js +130 -0
- package/lib/task-definition.js.map +1 -0
- package/lib/theme.d.ts +5 -0
- package/lib/theme.d.ts.map +1 -0
- package/lib/theme.js +8 -0
- package/lib/theme.js.map +1 -0
- package/lib/types/accessibility.d.ts +5 -0
- package/lib/types/accessibility.d.ts.map +1 -0
- package/lib/types/accessibility.js +3 -0
- package/lib/types/accessibility.js.map +1 -0
- package/lib/types/application.d.ts +13 -0
- package/lib/types/application.d.ts.map +1 -0
- package/lib/types/application.js +5 -0
- package/lib/types/application.js.map +1 -0
- package/lib/types/authentication.d.ts +90 -0
- package/lib/types/authentication.d.ts.map +1 -0
- package/lib/types/authentication.js +8 -0
- package/lib/types/authentication.js.map +1 -0
- package/lib/types/common.d.ts +10 -0
- package/lib/types/common.d.ts.map +1 -0
- package/lib/types/common.js +6 -0
- package/lib/types/common.js.map +1 -0
- package/lib/types/dnd.d.ts +8 -0
- package/lib/types/dnd.d.ts.map +1 -0
- package/lib/types/dnd.js +9 -0
- package/lib/types/dnd.js.map +1 -0
- package/lib/types/editor.d.ts +157 -0
- package/lib/types/editor.d.ts.map +1 -0
- package/lib/types/editor.js +148 -0
- package/lib/types/editor.js.map +1 -0
- package/lib/types/extension.d.ts +73 -0
- package/lib/types/extension.d.ts.map +1 -0
- package/lib/types/extension.js +28 -0
- package/lib/types/extension.js.map +1 -0
- package/lib/types/file-watch.d.ts +70 -0
- package/lib/types/file-watch.d.ts.map +1 -0
- package/lib/types/file-watch.js +72 -0
- package/lib/types/file-watch.js.map +1 -0
- package/lib/types/file.d.ts +219 -0
- package/lib/types/file.d.ts.map +1 -0
- package/lib/types/file.js +51 -0
- package/lib/types/file.js.map +1 -0
- package/lib/types/index.d.ts +13 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +16 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/markers/index.d.ts +3 -0
- package/lib/types/markers/index.d.ts.map +1 -0
- package/lib/types/markers/index.js +6 -0
- package/lib/types/markers/index.js.map +1 -0
- package/lib/types/markers/markers-manager.d.ts +120 -0
- package/lib/types/markers/markers-manager.d.ts.map +1 -0
- package/lib/types/markers/markers-manager.js +307 -0
- package/lib/types/markers/markers-manager.js.map +1 -0
- package/lib/types/markers/markers.d.ts +76 -0
- package/lib/types/markers/markers.d.ts.map +1 -0
- package/lib/types/markers/markers.js +76 -0
- package/lib/types/markers/markers.js.map +1 -0
- package/lib/types/message.d.ts +7 -0
- package/lib/types/message.d.ts.map +1 -0
- package/lib/types/message.js +11 -0
- package/lib/types/message.js.map +1 -0
- package/lib/types/reporter.d.ts +83 -0
- package/lib/types/reporter.d.ts.map +1 -0
- package/lib/types/reporter.js +63 -0
- package/lib/types/reporter.js.map +1 -0
- package/lib/types/string.d.ts +4 -0
- package/lib/types/string.d.ts.map +1 -0
- package/lib/types/string.js +3 -0
- package/lib/types/string.js.map +1 -0
- package/lib/uint.d.ts +32 -0
- package/lib/uint.d.ts.map +1 -0
- package/lib/uint.js +28 -0
- package/lib/uint.js.map +1 -0
- package/lib/uri.d.ts +94 -0
- package/lib/uri.d.ts.map +1 -0
- package/lib/uri.js +226 -0
- package/lib/uri.js.map +1 -0
- package/lib/utils/ansi.d.ts +5 -0
- package/lib/utils/ansi.d.ts.map +1 -0
- package/lib/utils/ansi.js +16 -0
- package/lib/utils/ansi.js.map +1 -0
- package/lib/utils/arrays.d.ts +62 -0
- package/lib/utils/arrays.d.ts.map +1 -0
- package/lib/utils/arrays.js +254 -0
- package/lib/utils/arrays.js.map +1 -0
- package/lib/utils/buffer.d.ts +36 -0
- package/lib/utils/buffer.d.ts.map +1 -0
- package/lib/utils/buffer.js +178 -0
- package/lib/utils/buffer.js.map +1 -0
- package/lib/utils/comparers.d.ts +7 -0
- package/lib/utils/comparers.d.ts.map +1 -0
- package/lib/utils/comparers.js +135 -0
- package/lib/utils/comparers.js.map +1 -0
- package/lib/utils/decorators.d.ts +13 -0
- package/lib/utils/decorators.d.ts.map +1 -0
- package/lib/utils/decorators.js +150 -0
- package/lib/utils/decorators.js.map +1 -0
- package/lib/utils/file-uri.d.ts +30 -0
- package/lib/utils/file-uri.d.ts.map +1 -0
- package/lib/utils/file-uri.js +62 -0
- package/lib/utils/file-uri.js.map +1 -0
- package/lib/utils/glob.d.ts +46 -0
- package/lib/utils/glob.d.ts.map +1 -0
- package/lib/utils/glob.js +546 -0
- package/lib/utils/glob.js.map +1 -0
- package/lib/utils/index.d.ts +14 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/index.js +17 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/ipc.d.ts +2 -0
- package/lib/utils/ipc.d.ts.map +1 -0
- package/lib/utils/ipc.js +21 -0
- package/lib/utils/ipc.js.map +1 -0
- package/lib/utils/json.d.ts +78 -0
- package/lib/utils/json.d.ts.map +1 -0
- package/lib/utils/json.js +190 -0
- package/lib/utils/json.js.map +1 -0
- package/lib/utils/marshalling.d.ts +7 -0
- package/lib/utils/marshalling.d.ts.map +1 -0
- package/lib/utils/marshalling.js +57 -0
- package/lib/utils/marshalling.js.map +1 -0
- package/lib/utils/objects.d.ts +6 -0
- package/lib/utils/objects.d.ts.map +1 -0
- package/lib/utils/objects.js +103 -0
- package/lib/utils/objects.js.map +1 -0
- package/lib/utils/os.d.ts +42 -0
- package/lib/utils/os.d.ts.map +1 -0
- package/lib/utils/os.js +94 -0
- package/lib/utils/os.js.map +1 -0
- package/lib/utils/paths.d.ts +35 -0
- package/lib/utils/paths.d.ts.map +1 -0
- package/lib/utils/paths.js +318 -0
- package/lib/utils/paths.js.map +1 -0
- package/lib/utils/promise-util.d.ts +10 -0
- package/lib/utils/promise-util.d.ts.map +1 -0
- package/lib/utils/promise-util.js +17 -0
- package/lib/utils/promise-util.js.map +1 -0
- package/lib/utils/strings.d.ts +177 -0
- package/lib/utils/strings.d.ts.map +1 -0
- package/lib/utils/strings.js +837 -0
- package/lib/utils/strings.js.map +1 -0
- package/lib/utils/types.d.ts +65 -0
- package/lib/utils/types.d.ts.map +1 -0
- package/lib/utils/types.js +194 -0
- package/lib/utils/types.js.map +1 -0
- package/lib/uuid.d.ts +2 -0
- package/lib/uuid.d.ts.map +1 -0
- package/lib/uuid.js +10 -0
- package/lib/uuid.js.map +1 -0
- package/package.json +30 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { URI } from '../';
|
|
2
|
+
export interface FileSystemWatcherServer {
|
|
3
|
+
/**
|
|
4
|
+
* 根据给定参数启动文件监听
|
|
5
|
+
* 返回对应watcher的id
|
|
6
|
+
* @param {string} uri
|
|
7
|
+
* @param {WatchOptions} [options]
|
|
8
|
+
* @returns {Promise<number>}
|
|
9
|
+
* @memberof FileSystemWatcherServer
|
|
10
|
+
*/
|
|
11
|
+
watchFileChanges(uri: string, options?: WatchOptions): Promise<number>;
|
|
12
|
+
/**
|
|
13
|
+
* 根据给定watcher的id注销对应的文件监听
|
|
14
|
+
* @param {number} watcher
|
|
15
|
+
* @returns {Promise<void>}
|
|
16
|
+
* @memberof FileSystemWatcherServer
|
|
17
|
+
*/
|
|
18
|
+
unwatchFileChanges(watcher: number): Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
export interface FileSystemWatcherClient {
|
|
21
|
+
/**
|
|
22
|
+
* 文件监听下的文件修改时触发事件
|
|
23
|
+
*/
|
|
24
|
+
onDidFilesChanged(event: DidFilesChangedParams): void;
|
|
25
|
+
}
|
|
26
|
+
export interface WatchOptions {
|
|
27
|
+
excludes: string[];
|
|
28
|
+
}
|
|
29
|
+
export interface DidFilesChangedParams {
|
|
30
|
+
changes: FileChange[];
|
|
31
|
+
}
|
|
32
|
+
export interface FileChange {
|
|
33
|
+
uri: string;
|
|
34
|
+
type: FileChangeType;
|
|
35
|
+
}
|
|
36
|
+
export declare namespace FileChange {
|
|
37
|
+
function isUpdated(change: FileChange, uri: URI): boolean;
|
|
38
|
+
function isAdded(change: FileChange, uri: URI): boolean;
|
|
39
|
+
function isDeleted(change: FileChange, uri: URI): boolean;
|
|
40
|
+
function isAffected(change: FileChange, uri: URI): boolean;
|
|
41
|
+
function isChanged(change: FileChange, uri: URI): boolean;
|
|
42
|
+
}
|
|
43
|
+
export declare type FileChangeEvent = FileChange[];
|
|
44
|
+
export declare namespace FileChangeEvent {
|
|
45
|
+
function isUpdated(event: FileChangeEvent, uri: URI): boolean;
|
|
46
|
+
function isAdded(event: FileChangeEvent, uri: URI): boolean;
|
|
47
|
+
function isDeleted(event: FileChangeEvent, uri: URI): boolean;
|
|
48
|
+
function isAffected(event: FileChangeEvent, uri: URI): boolean;
|
|
49
|
+
function isChanged(event: FileChangeEvent, uri: URI): boolean;
|
|
50
|
+
}
|
|
51
|
+
export declare enum FileChangeType {
|
|
52
|
+
UPDATED = 0,
|
|
53
|
+
ADDED = 1,
|
|
54
|
+
DELETED = 2
|
|
55
|
+
}
|
|
56
|
+
export declare enum VSCFileChangeType {
|
|
57
|
+
/**
|
|
58
|
+
* The contents or metadata of a file have changed.
|
|
59
|
+
*/
|
|
60
|
+
Changed = 1,
|
|
61
|
+
/**
|
|
62
|
+
* A file has been created.
|
|
63
|
+
*/
|
|
64
|
+
Created = 2,
|
|
65
|
+
/**
|
|
66
|
+
* A file has been deleted.
|
|
67
|
+
*/
|
|
68
|
+
Deleted = 3
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=file-watch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|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C/B,SAAgB,SAAS,CAAC,KAAK,EAAE,eAAe,EAAE,GAAG,EAAE,GAAG,GAAG,OAAO,CAEnE;IACD,SAAgB,OAAO,CAAC,KAAK,EAAE,eAAe,EAAE,GAAG,EAAE,GAAG,GAAG,OAAO,CAEjE;IACD,SAAgB,SAAS,CAAC,KAAK,EAAE,eAAe,EAAE,GAAG,EAAE,GAAG,GAAG,OAAO,CAEnE;IACD,SAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,EAAE,GAAG,EAAE,GAAG,GAAG,OAAO,CAEpE;IACD,SAAgB,SAAS,CAAC,KAAK,EAAE,eAAe,EAAE,GAAG,EAAE,GAAG,GAAG,OAAO,CAEnE;CACF;AAED,oBAAY,cAAc;IACxB,OAAO,IAAI;IACX,KAAK,IAAI;IACT,OAAO,IAAI;CACZ;AAED,oBAAY,iBAAiB;IAC3B;;OAEG;IACH,OAAO,IAAI;IAEX;;OAEG;IACH,OAAO,IAAI;IAEX;;OAEG;IACH,OAAO,IAAI;CACZ"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VSCFileChangeType = exports.FileChangeType = exports.FileChangeEvent = exports.FileChange = void 0;
|
|
4
|
+
const __1 = require("../");
|
|
5
|
+
var FileChange;
|
|
6
|
+
(function (FileChange) {
|
|
7
|
+
function isUpdated(change, uri) {
|
|
8
|
+
return change.type === FileChangeType.UPDATED && uri.toString() === change.uri;
|
|
9
|
+
}
|
|
10
|
+
FileChange.isUpdated = isUpdated;
|
|
11
|
+
function isAdded(change, uri) {
|
|
12
|
+
return change.type === FileChangeType.ADDED && uri.toString() === change.uri;
|
|
13
|
+
}
|
|
14
|
+
FileChange.isAdded = isAdded;
|
|
15
|
+
function isDeleted(change, uri) {
|
|
16
|
+
return change.type === FileChangeType.DELETED && __1.URI.file(change.uri).isEqualOrParent(uri);
|
|
17
|
+
}
|
|
18
|
+
FileChange.isDeleted = isDeleted;
|
|
19
|
+
function isAffected(change, uri) {
|
|
20
|
+
return isDeleted(change, uri) || uri.toString() === change.uri;
|
|
21
|
+
}
|
|
22
|
+
FileChange.isAffected = isAffected;
|
|
23
|
+
function isChanged(change, uri) {
|
|
24
|
+
return !isDeleted(change, uri) && uri.toString() === change.uri;
|
|
25
|
+
}
|
|
26
|
+
FileChange.isChanged = isChanged;
|
|
27
|
+
})(FileChange = exports.FileChange || (exports.FileChange = {}));
|
|
28
|
+
var FileChangeEvent;
|
|
29
|
+
(function (FileChangeEvent) {
|
|
30
|
+
function isUpdated(event, uri) {
|
|
31
|
+
return event.some((change) => FileChange.isUpdated(change, uri));
|
|
32
|
+
}
|
|
33
|
+
FileChangeEvent.isUpdated = isUpdated;
|
|
34
|
+
function isAdded(event, uri) {
|
|
35
|
+
return event.some((change) => FileChange.isAdded(change, uri));
|
|
36
|
+
}
|
|
37
|
+
FileChangeEvent.isAdded = isAdded;
|
|
38
|
+
function isDeleted(event, uri) {
|
|
39
|
+
return event.some((change) => FileChange.isDeleted(change, uri));
|
|
40
|
+
}
|
|
41
|
+
FileChangeEvent.isDeleted = isDeleted;
|
|
42
|
+
function isAffected(event, uri) {
|
|
43
|
+
return event.some((change) => FileChange.isAffected(change, uri));
|
|
44
|
+
}
|
|
45
|
+
FileChangeEvent.isAffected = isAffected;
|
|
46
|
+
function isChanged(event, uri) {
|
|
47
|
+
return !isDeleted(event, uri) && event.some((change) => FileChange.isChanged(change, uri));
|
|
48
|
+
}
|
|
49
|
+
FileChangeEvent.isChanged = isChanged;
|
|
50
|
+
})(FileChangeEvent = exports.FileChangeEvent || (exports.FileChangeEvent = {}));
|
|
51
|
+
var FileChangeType;
|
|
52
|
+
(function (FileChangeType) {
|
|
53
|
+
FileChangeType[FileChangeType["UPDATED"] = 0] = "UPDATED";
|
|
54
|
+
FileChangeType[FileChangeType["ADDED"] = 1] = "ADDED";
|
|
55
|
+
FileChangeType[FileChangeType["DELETED"] = 2] = "DELETED";
|
|
56
|
+
})(FileChangeType = exports.FileChangeType || (exports.FileChangeType = {}));
|
|
57
|
+
var VSCFileChangeType;
|
|
58
|
+
(function (VSCFileChangeType) {
|
|
59
|
+
/**
|
|
60
|
+
* The contents or metadata of a file have changed.
|
|
61
|
+
*/
|
|
62
|
+
VSCFileChangeType[VSCFileChangeType["Changed"] = 1] = "Changed";
|
|
63
|
+
/**
|
|
64
|
+
* A file has been created.
|
|
65
|
+
*/
|
|
66
|
+
VSCFileChangeType[VSCFileChangeType["Created"] = 2] = "Created";
|
|
67
|
+
/**
|
|
68
|
+
* A file has been deleted.
|
|
69
|
+
*/
|
|
70
|
+
VSCFileChangeType[VSCFileChangeType["Deleted"] = 3] = "Deleted";
|
|
71
|
+
})(VSCFileChangeType = exports.VSCFileChangeType || (exports.VSCFileChangeType = {}));
|
|
72
|
+
//# sourceMappingURL=file-watch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-watch.js","sourceRoot":"","sources":["../../src/types/file-watch.ts"],"names":[],"mappings":";;;AAAA,2BAAyB;AAwCzB,IAAiB,UAAU,CAgB1B;AAhBD,WAAiB,UAAU;IACzB,SAAgB,SAAS,CAAC,MAAkB,EAAE,GAAQ;QAClD,OAAO,MAAM,CAAC,IAAI,KAAK,cAAc,CAAC,OAAO,IAAI,GAAG,CAAC,QAAQ,EAAE,KAAK,MAAM,CAAC,GAAG,CAAC;IACnF,CAAC;IAFe,oBAAS,YAExB,CAAA;IACD,SAAgB,OAAO,CAAC,MAAkB,EAAE,GAAQ;QAChD,OAAO,MAAM,CAAC,IAAI,KAAK,cAAc,CAAC,KAAK,IAAI,GAAG,CAAC,QAAQ,EAAE,KAAK,MAAM,CAAC,GAAG,CAAC;IACjF,CAAC;IAFe,kBAAO,UAEtB,CAAA;IACD,SAAgB,SAAS,CAAC,MAAkB,EAAE,GAAQ;QAClD,OAAO,MAAM,CAAC,IAAI,KAAK,cAAc,CAAC,OAAO,IAAI,OAAG,CAAC,IAAI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IACD,SAAgB,UAAU,CAAC,KAAsB,EAAE,GAAQ;QACvD,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;IACtE,CAAC;IAFe,0BAAU,aAEzB,CAAA;IACD,SAAgB,SAAS,CAAC,KAAsB,EAAE,GAAQ;QACtD,OAAO,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;IAC/F,CAAC;IAFe,yBAAS,YAExB,CAAA;AACH,CAAC,EAhBgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAgB/B;AAED,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,yDAAW,CAAA;IACX,qDAAS,CAAA;IACT,yDAAW,CAAA;AACb,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AAED,IAAY,iBAeX;AAfD,WAAY,iBAAiB;IAC3B;;OAEG;IACH,+DAAW,CAAA;IAEX;;OAEG;IACH,+DAAW,CAAA;IAEX;;OAEG;IACH,+DAAW,CAAA;AACb,CAAC,EAfW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAe5B"}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/// <reference types="vscode" />
|
|
2
|
+
import { Event, Uri } from '..';
|
|
3
|
+
import { FileChangeEvent } from './file-watch';
|
|
4
|
+
export * from './file-watch';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated please import it from '@opensumi/ide-file-service/lib/common'
|
|
7
|
+
* `import { IFileServiceClient } from '@opensumi/ide-file-service/lib/common';`
|
|
8
|
+
*/
|
|
9
|
+
export declare const IFileServiceClient: unique symbol;
|
|
10
|
+
export interface FileStat {
|
|
11
|
+
/**
|
|
12
|
+
* 资源路径
|
|
13
|
+
*/
|
|
14
|
+
uri: string;
|
|
15
|
+
/**
|
|
16
|
+
* 资源最后修改时间
|
|
17
|
+
*/
|
|
18
|
+
lastModification: number;
|
|
19
|
+
/**
|
|
20
|
+
* 资源的创建时间
|
|
21
|
+
*/
|
|
22
|
+
createTime?: number;
|
|
23
|
+
/**
|
|
24
|
+
* 资源是否为文件夹
|
|
25
|
+
*/
|
|
26
|
+
isDirectory: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 资源是否为软连接
|
|
29
|
+
*/
|
|
30
|
+
isSymbolicLink?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* 资源是否在软连接文件夹内
|
|
33
|
+
*/
|
|
34
|
+
isInSymbolicDirectory?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The children of the file stat.
|
|
37
|
+
* If it is `undefined` and `isDirectory` is `true`, then this file stat is unresolved.
|
|
38
|
+
*/
|
|
39
|
+
children?: FileStat[];
|
|
40
|
+
/**
|
|
41
|
+
* The size of the file if known.
|
|
42
|
+
*/
|
|
43
|
+
size?: number;
|
|
44
|
+
/**
|
|
45
|
+
* 同 vscode FileType
|
|
46
|
+
*/
|
|
47
|
+
type?: FileType;
|
|
48
|
+
}
|
|
49
|
+
export declare namespace FileStat {
|
|
50
|
+
function is(candidate: object | undefined): candidate is FileStat;
|
|
51
|
+
function equals(one: object | undefined, other: object | undefined): boolean;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Enumeration of file types. The types `File` and `Directory` can also be
|
|
55
|
+
* a symbolic links, in that use `FileType.File | FileType.SymbolicLink` and
|
|
56
|
+
* `FileType.Directory | FileType.SymbolicLink`.
|
|
57
|
+
*/
|
|
58
|
+
export declare enum FileType {
|
|
59
|
+
/**
|
|
60
|
+
* The file type is unknown.
|
|
61
|
+
*/
|
|
62
|
+
Unknown = 0,
|
|
63
|
+
/**
|
|
64
|
+
* A regular file.
|
|
65
|
+
*/
|
|
66
|
+
File = 1,
|
|
67
|
+
/**
|
|
68
|
+
* A directory.
|
|
69
|
+
*/
|
|
70
|
+
Directory = 2,
|
|
71
|
+
/**
|
|
72
|
+
* A symbolic link to a file.
|
|
73
|
+
*/
|
|
74
|
+
SymbolicLink = 64
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Compatible with vscode.FileSystemProvider
|
|
78
|
+
*/
|
|
79
|
+
export interface FileSystemProvider {
|
|
80
|
+
readonly capabilities: FileSystemProviderCapabilities;
|
|
81
|
+
readonly onDidChangeCapabilities: Event<void>;
|
|
82
|
+
readonly readonly?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* An event to signal that a resource has been created, changed, or deleted. This
|
|
85
|
+
* event should fire for resources that are being [watched](#FileSystemProvider.watch)
|
|
86
|
+
* by clients of this provider.
|
|
87
|
+
*
|
|
88
|
+
* as Event<vscode.FileChangeEvent[]>
|
|
89
|
+
*/
|
|
90
|
+
readonly onDidChangeFile: Event<FileChangeEvent>;
|
|
91
|
+
/**
|
|
92
|
+
* Subscribe to events in the file or folder denoted by `uri`.
|
|
93
|
+
*
|
|
94
|
+
* The editor will call this function for files and folders. In the latter case, the
|
|
95
|
+
* options differ from defaults, e.g. what files/folders to exclude from watching
|
|
96
|
+
* and if subfolders, sub-subfolder, etc. should be watched (`recursive`).
|
|
97
|
+
*
|
|
98
|
+
* @param uri The uri of the file to be watched.
|
|
99
|
+
* @param options Configures the watch.
|
|
100
|
+
* @returns A disposable that tells the provider to stop watching the `uri`.
|
|
101
|
+
*/
|
|
102
|
+
watch(uri: Uri, options: {
|
|
103
|
+
recursive: boolean;
|
|
104
|
+
excludes: string[];
|
|
105
|
+
}): number | Promise<number>;
|
|
106
|
+
unwatch?(watcherId: number): void | Promise<void>;
|
|
107
|
+
/**
|
|
108
|
+
* Retrieve metadata about a file.
|
|
109
|
+
*
|
|
110
|
+
* Note that the metadata for symbolic links should be the metadata of the file they refer to.
|
|
111
|
+
* Still, the [SymbolicLink](#FileType.SymbolicLink)-type must be used in addition to the actual type, e.g.
|
|
112
|
+
* `FileType.SymbolicLink | FileType.Directory`.
|
|
113
|
+
*
|
|
114
|
+
* @param uri The uri of the file to retrieve metadata about.
|
|
115
|
+
* @return The file metadata about the file.
|
|
116
|
+
* @throws [`FileNotFound`](#FileSystemError.FileNotFound) when `uri` doesn't exist.
|
|
117
|
+
*/
|
|
118
|
+
stat(uri: Uri): Promise<FileStat | void>;
|
|
119
|
+
/**
|
|
120
|
+
* Retrieve all entries of a [directory](#FileType.Directory).
|
|
121
|
+
*
|
|
122
|
+
* @param uri The uri of the folder.
|
|
123
|
+
* @return An array of name/type-tuples or a thenable that resolves to such.
|
|
124
|
+
* @throws [`FileNotFound`](#FileSystemError.FileNotFound) when `uri` doesn't exist.
|
|
125
|
+
*/
|
|
126
|
+
readDirectory(uri: Uri): [string, FileType][] | Promise<[string, FileType][]>;
|
|
127
|
+
/**
|
|
128
|
+
* Create a new directory (Note, that new files are created via `write`-calls).
|
|
129
|
+
*
|
|
130
|
+
* @param uri The uri of the new folder.
|
|
131
|
+
* @throws [`FileNotFound`](#FileSystemError.FileNotFound) when the parent of `uri` doesn't exist, e.g. no mkdirp-logic required.
|
|
132
|
+
* @throws [`FileExists`](#FileSystemError.FileExists) when `uri` already exists.
|
|
133
|
+
* @throws [`NoPermissions`](#FileSystemError.NoPermissions) when permissions aren't sufficient.
|
|
134
|
+
*/
|
|
135
|
+
createDirectory(uri: Uri): void | Promise<void | FileStat>;
|
|
136
|
+
/**
|
|
137
|
+
* Read the entire contents of a file.
|
|
138
|
+
*
|
|
139
|
+
* @param uri The uri of the file.
|
|
140
|
+
* @return An array of bytes or a thenable that resolves to such.
|
|
141
|
+
* @throws [`FileNotFound`](#FileSystemError.FileNotFound) when `uri` doesn't exist.
|
|
142
|
+
*/
|
|
143
|
+
readFile(uri: Uri, encoding?: string): Uint8Array | void | Promise<Uint8Array | void>;
|
|
144
|
+
/**
|
|
145
|
+
* Write data to a file, replacing its entire contents.
|
|
146
|
+
*
|
|
147
|
+
* @param uri The uri of the file.
|
|
148
|
+
* @param content The new content of the file.
|
|
149
|
+
* @param options Defines if missing files should or must be created.
|
|
150
|
+
* @throws [`FileNotFound`](#FileSystemError.FileNotFound) when `uri` doesn't exist and `create` is not set.
|
|
151
|
+
* @throws [`FileNotFound`](#FileSystemError.FileNotFound) when the parent of `uri` doesn't exist and `create` is set, e.g. no mkdirp-logic required.
|
|
152
|
+
* @throws [`FileExists`](#FileSystemError.FileExists) when `uri` already exists, `create` is set but `overwrite` is not set.
|
|
153
|
+
* @throws [`NoPermissions`](#FileSystemError.NoPermissions) when permissions aren't sufficient.
|
|
154
|
+
*/
|
|
155
|
+
writeFile(uri: Uri, content: Uint8Array, options: {
|
|
156
|
+
create: boolean;
|
|
157
|
+
overwrite: boolean;
|
|
158
|
+
encoding?: string;
|
|
159
|
+
}): void | Thenable<void | FileStat>;
|
|
160
|
+
/**
|
|
161
|
+
* Delete a file.
|
|
162
|
+
*
|
|
163
|
+
* @param uri The resource that is to be deleted.
|
|
164
|
+
* @param options Defines if deletion of folders is recursive.
|
|
165
|
+
*/
|
|
166
|
+
delete(uri: Uri, options: {
|
|
167
|
+
recursive: boolean;
|
|
168
|
+
moveToTrash?: boolean;
|
|
169
|
+
}): void | Promise<void>;
|
|
170
|
+
/**
|
|
171
|
+
* Rename a file or folder.
|
|
172
|
+
*
|
|
173
|
+
* @param oldstring The existing file.
|
|
174
|
+
* @param newstring The new location.
|
|
175
|
+
* @param options Defines if existing files should be overwritten.
|
|
176
|
+
* @throws [`FileNotFound`](#FileSystemError.FileNotFound) when `oldstring` doesn't exist.
|
|
177
|
+
* @throws [`FileNotFound`](#FileSystemError.FileNotFound) when parent of `newstring` doesn't exist, e.g. no mkdirp-logic required.
|
|
178
|
+
* @throws [`FileExists`](#FileSystemError.FileExists) when `newstring` exists and when the `overwrite` option is not `true`.
|
|
179
|
+
* @throws [`NoPermissions`](#FileSystemError.NoPermissions) when permissions aren't sufficient.
|
|
180
|
+
*/
|
|
181
|
+
rename(oldstring: Uri, newstring: Uri, options: {
|
|
182
|
+
overwrite: boolean;
|
|
183
|
+
}): void | Promise<void | FileStat>;
|
|
184
|
+
}
|
|
185
|
+
export declare const enum FileSystemProviderCapabilities {
|
|
186
|
+
/**
|
|
187
|
+
* Provider supports unbuffered read/write.
|
|
188
|
+
*/
|
|
189
|
+
FileReadWrite = 2,
|
|
190
|
+
/**
|
|
191
|
+
* Provider supports open/read/write/close low level file operations.
|
|
192
|
+
*/
|
|
193
|
+
FileOpenReadWriteClose = 4,
|
|
194
|
+
/**
|
|
195
|
+
* Provider supports stream based reading.
|
|
196
|
+
*/
|
|
197
|
+
FileReadStream = 16,
|
|
198
|
+
/**
|
|
199
|
+
* Provider supports copy operation.
|
|
200
|
+
*/
|
|
201
|
+
FileFolderCopy = 8,
|
|
202
|
+
/**
|
|
203
|
+
* Provider is path case sensitive.
|
|
204
|
+
*/
|
|
205
|
+
PathCaseSensitive = 1024,
|
|
206
|
+
/**
|
|
207
|
+
* All files of the provider are readonly.
|
|
208
|
+
*/
|
|
209
|
+
Readonly = 2048,
|
|
210
|
+
/**
|
|
211
|
+
* Provider supports to delete via trash.
|
|
212
|
+
*/
|
|
213
|
+
Trash = 4096,
|
|
214
|
+
/**
|
|
215
|
+
* Provider support to unlock files for writing.
|
|
216
|
+
*/
|
|
217
|
+
FileWriteUnlock = 8192
|
|
218
|
+
}
|
|
219
|
+
//# sourceMappingURL=file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/types/file.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,IAAI,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,cAAc,cAAc,CAAC;AAE7B;;;GAGG;AACH,eAAO,MAAM,kBAAkB,eAA+B,CAAC;AAE/D,MAAM,WAAW,QAAQ;IAEvB;;OAEG;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AAE,GAAG,EAAE,OAAO,EAAE;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,GAAG,QAAQ,CAAC,CAAC;CAE1G;AAED,0BAAkB,8BAA8B;IAC9C;;OAEG;IACF,aAAa,IAAS;IAEtB;;OAEG;IACH,sBAAsB,IAAS;IAE/B;;OAEG;IACH,cAAc,KAAS;IAEvB;;OAEG;IACH,cAAc,IAAS;IAEvB;;OAEG;IACH,iBAAiB,OAAU;IAE3B;;OAEG;IACH,QAAQ,OAAU;IAElB;;OAEG;IACH,KAAK,OAAU;IAEf;;OAEG;IACH,eAAe,OAAU;CAC3B"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FileType = exports.FileStat = exports.IFileServiceClient = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
(0, tslib_1.__exportStar)(require("./file-watch"), exports);
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated please import it from '@opensumi/ide-file-service/lib/common'
|
|
8
|
+
* `import { IFileServiceClient } from '@opensumi/ide-file-service/lib/common';`
|
|
9
|
+
*/
|
|
10
|
+
exports.IFileServiceClient = Symbol('IFileServiceClient');
|
|
11
|
+
var FileStat;
|
|
12
|
+
(function (FileStat) {
|
|
13
|
+
function is(candidate) {
|
|
14
|
+
return typeof candidate === 'object' && ('uri' in candidate) && ('lastModification' in candidate) && ('isDirectory' in candidate);
|
|
15
|
+
}
|
|
16
|
+
FileStat.is = is;
|
|
17
|
+
function equals(one, other) {
|
|
18
|
+
if (!one || !other || !is(one) || !is(other)) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
return one.uri === other.uri
|
|
22
|
+
&& one.lastModification === other.lastModification
|
|
23
|
+
&& one.isDirectory === other.isDirectory;
|
|
24
|
+
}
|
|
25
|
+
FileStat.equals = equals;
|
|
26
|
+
})(FileStat = exports.FileStat || (exports.FileStat = {}));
|
|
27
|
+
/**
|
|
28
|
+
* Enumeration of file types. The types `File` and `Directory` can also be
|
|
29
|
+
* a symbolic links, in that use `FileType.File | FileType.SymbolicLink` and
|
|
30
|
+
* `FileType.Directory | FileType.SymbolicLink`.
|
|
31
|
+
*/
|
|
32
|
+
var FileType;
|
|
33
|
+
(function (FileType) {
|
|
34
|
+
/**
|
|
35
|
+
* The file type is unknown.
|
|
36
|
+
*/
|
|
37
|
+
FileType[FileType["Unknown"] = 0] = "Unknown";
|
|
38
|
+
/**
|
|
39
|
+
* A regular file.
|
|
40
|
+
*/
|
|
41
|
+
FileType[FileType["File"] = 1] = "File";
|
|
42
|
+
/**
|
|
43
|
+
* A directory.
|
|
44
|
+
*/
|
|
45
|
+
FileType[FileType["Directory"] = 2] = "Directory";
|
|
46
|
+
/**
|
|
47
|
+
* A symbolic link to a file.
|
|
48
|
+
*/
|
|
49
|
+
FileType[FileType["SymbolicLink"] = 64] = "SymbolicLink";
|
|
50
|
+
})(FileType = exports.FileType || (exports.FileType = {}));
|
|
51
|
+
//# sourceMappingURL=file.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../src/types/file.ts"],"names":[],"mappings":";;;;AAIA,4DAA6B;AAE7B;;;GAGG;AACU,QAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAC;AAmD/D,IAAiB,QAAQ,CAaxB;AAbD,WAAiB,QAAQ;IACvB,SAAgB,EAAE,CAAC,SAA6B;QAC9C,OAAO,OAAO,SAAS,KAAK,QAAQ,IAAI,CAAC,KAAK,IAAI,SAAS,CAAC,IAAI,CAAC,kBAAkB,IAAI,SAAS,CAAC,IAAI,CAAC,aAAa,IAAI,SAAS,CAAC,CAAC;IACpI,CAAC;IAFe,WAAE,KAEjB,CAAA;IAED,SAAgB,MAAM,CAAC,GAAuB,EAAE,KAAyB;QACvE,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE;YAC5C,OAAO,KAAK,CAAC;SACd;QACD,OAAO,GAAG,CAAC,GAAG,KAAK,KAAK,CAAC,GAAG;eACvB,GAAG,CAAC,gBAAgB,KAAK,KAAK,CAAC,gBAAgB;eAC/C,GAAG,CAAC,WAAW,KAAK,KAAK,CAAC,WAAW,CAAC;IAC7C,CAAC;IAPe,eAAM,SAOrB,CAAA;AACH,CAAC,EAbgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAaxB;AAED;;;;GAIG;AACH,IAAY,QAiBX;AAjBD,WAAY,QAAQ;IAClB;;OAEG;IACH,6CAAW,CAAA;IACX;;OAEG;IACH,uCAAQ,CAAA;IACR;;OAEG;IACH,iDAAa,CAAA;IACb;;OAEG;IACH,wDAAiB,CAAA;AACnB,CAAC,EAjBW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAiBnB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './editor';
|
|
2
|
+
export * from './message';
|
|
3
|
+
export * from './file';
|
|
4
|
+
export * from './markers';
|
|
5
|
+
export * from './extension';
|
|
6
|
+
export * from './reporter';
|
|
7
|
+
export * from './string';
|
|
8
|
+
export * from './dnd';
|
|
9
|
+
export * from './common';
|
|
10
|
+
export * from './application';
|
|
11
|
+
export * from './authentication';
|
|
12
|
+
export * from './accessibility';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
(0, tslib_1.__exportStar)(require("./editor"), exports);
|
|
5
|
+
(0, tslib_1.__exportStar)(require("./message"), exports);
|
|
6
|
+
(0, tslib_1.__exportStar)(require("./file"), exports);
|
|
7
|
+
(0, tslib_1.__exportStar)(require("./markers"), exports);
|
|
8
|
+
(0, tslib_1.__exportStar)(require("./extension"), exports);
|
|
9
|
+
(0, tslib_1.__exportStar)(require("./reporter"), exports);
|
|
10
|
+
(0, tslib_1.__exportStar)(require("./string"), exports);
|
|
11
|
+
(0, tslib_1.__exportStar)(require("./dnd"), exports);
|
|
12
|
+
(0, tslib_1.__exportStar)(require("./common"), exports);
|
|
13
|
+
(0, tslib_1.__exportStar)(require("./application"), exports);
|
|
14
|
+
(0, tslib_1.__exportStar)(require("./authentication"), exports);
|
|
15
|
+
(0, tslib_1.__exportStar)(require("./accessibility"), exports);
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;AAAA,wDAAyB;AACzB,yDAA0B;AAC1B,sDAAuB;AACvB,yDAA0B;AAC1B,2DAA4B;AAC5B,0DAA2B;AAC3B,wDAAyB;AACzB,qDAAsB;AACtB,wDAAyB;AACzB,6DAA8B;AAC9B,gEAAiC;AACjC,+DAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/markers/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
(0, tslib_1.__exportStar)(require("./markers"), exports);
|
|
5
|
+
(0, tslib_1.__exportStar)(require("./markers-manager"), exports);
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/markers/index.ts"],"names":[],"mappings":";;;AAAA,yDAA0B;AAC1B,iEAAkC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { IMarker, IMarkerData, MarkerStatistics } from './markers';
|
|
2
|
+
import { IDisposable } from '../../disposable';
|
|
3
|
+
import { Event, WithEventBus } from '../../index';
|
|
4
|
+
export interface IBaseMarkerManager {
|
|
5
|
+
/**
|
|
6
|
+
* 更新markers
|
|
7
|
+
* @param type 类型标识
|
|
8
|
+
* @param uri markers对应的资源
|
|
9
|
+
* @param markers 所有markers
|
|
10
|
+
*/
|
|
11
|
+
updateMarkers(type: string, uri: string, markers: IMarkerData[]): any;
|
|
12
|
+
/**
|
|
13
|
+
* 清空markers
|
|
14
|
+
* @param type 类型标识
|
|
15
|
+
*/
|
|
16
|
+
clearMarkers(type: string): any;
|
|
17
|
+
/**
|
|
18
|
+
* 获取所有markers的统计信息
|
|
19
|
+
*/
|
|
20
|
+
getStats(): MarkerStats;
|
|
21
|
+
/**
|
|
22
|
+
* 获得当前所有资源
|
|
23
|
+
*/
|
|
24
|
+
getResources(): string[];
|
|
25
|
+
/**
|
|
26
|
+
* 获取markers
|
|
27
|
+
*/
|
|
28
|
+
getMarkers(filter: {
|
|
29
|
+
type?: string;
|
|
30
|
+
resource?: string;
|
|
31
|
+
severities?: number;
|
|
32
|
+
take?: number;
|
|
33
|
+
opened?: boolean;
|
|
34
|
+
}): IMarker[];
|
|
35
|
+
/**
|
|
36
|
+
* marker变更事件
|
|
37
|
+
*/
|
|
38
|
+
onMarkerChanged: Event<string[]>;
|
|
39
|
+
/**
|
|
40
|
+
* 打开编辑器回调
|
|
41
|
+
* @param resource 资源
|
|
42
|
+
*/
|
|
43
|
+
onEditorGroupOpen(resource: string): any;
|
|
44
|
+
/**
|
|
45
|
+
* 关闭编辑器回调
|
|
46
|
+
* @param resource 资源
|
|
47
|
+
*/
|
|
48
|
+
onEditorGroupClose(resource: string): any;
|
|
49
|
+
}
|
|
50
|
+
export declare class MarkerStats implements MarkerStatistics, IDisposable {
|
|
51
|
+
errors: number;
|
|
52
|
+
infos: number;
|
|
53
|
+
warnings: number;
|
|
54
|
+
unknowns: number;
|
|
55
|
+
private _data?;
|
|
56
|
+
private _manager;
|
|
57
|
+
private _subscription;
|
|
58
|
+
constructor(manager: IBaseMarkerManager);
|
|
59
|
+
dispose(): void;
|
|
60
|
+
private _update;
|
|
61
|
+
private _resourceStats;
|
|
62
|
+
private _substract;
|
|
63
|
+
private _add;
|
|
64
|
+
}
|
|
65
|
+
export declare class MarkerManager extends WithEventBus implements IBaseMarkerManager {
|
|
66
|
+
private readonly _byResource;
|
|
67
|
+
private readonly _byType;
|
|
68
|
+
private readonly _byResourceCloseCache;
|
|
69
|
+
private readonly _openedResource;
|
|
70
|
+
private _stats;
|
|
71
|
+
private readonly onMarkerChangedEmitter;
|
|
72
|
+
readonly onMarkerChanged: Event<string[]>;
|
|
73
|
+
constructor();
|
|
74
|
+
/**
|
|
75
|
+
* 接受Diagnostics信息,更新marker
|
|
76
|
+
* @param type marker 类型,比如 typescript, eslint等
|
|
77
|
+
* @param uri marker 资源
|
|
78
|
+
* @param rawMarkers 来源于diagnostics的原始marker信息
|
|
79
|
+
*/
|
|
80
|
+
updateMarkers(type: string, uri: string, rawMarkers: IMarkerData[]): void;
|
|
81
|
+
/**
|
|
82
|
+
* Marker数据类型转换
|
|
83
|
+
* @param type marker类型
|
|
84
|
+
* @param resource 资源uri
|
|
85
|
+
* @param data marker数据
|
|
86
|
+
*/
|
|
87
|
+
private convertToMarker;
|
|
88
|
+
/**
|
|
89
|
+
* 清空特定类型的marker
|
|
90
|
+
* @param type 消息类型
|
|
91
|
+
*/
|
|
92
|
+
clearMarkers(type: string): void;
|
|
93
|
+
/**
|
|
94
|
+
* 清空给定uri的所有marker
|
|
95
|
+
* @param resource 资源uri
|
|
96
|
+
*/
|
|
97
|
+
clearMarkersOfUri(resource: string): void;
|
|
98
|
+
/**
|
|
99
|
+
* 根据过滤条件,查询marker列表
|
|
100
|
+
* - type 类型
|
|
101
|
+
* - resource 资源URI
|
|
102
|
+
* - severities 安全等级
|
|
103
|
+
* - take 提取个数
|
|
104
|
+
* - opened 是否过滤打开的
|
|
105
|
+
* @param filter 过滤条件
|
|
106
|
+
*/
|
|
107
|
+
getMarkers(filter?: {
|
|
108
|
+
type?: string;
|
|
109
|
+
resource?: string;
|
|
110
|
+
severities?: number;
|
|
111
|
+
take?: number;
|
|
112
|
+
opened?: boolean;
|
|
113
|
+
}): IMarker[];
|
|
114
|
+
private isTargetMarker;
|
|
115
|
+
getResources(): string[];
|
|
116
|
+
getStats(): MarkerStats;
|
|
117
|
+
onEditorGroupOpen(resource: string): void;
|
|
118
|
+
onEditorGroupClose(resource: string): void;
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=markers-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markers-manager.d.ts","sourceRoot":"","sources":["../../../src/types/markers/markers-manager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAkB,MAAM,WAAW,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAmB,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGnE,MAAM,WAAW,kBAAkB;IACjC;;;;;MAKE;IACF,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,G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