@difizen/libro-language-client 0.1.18
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/LICENSE +21 -0
- package/README.md +0 -0
- package/es/common/api.d.ts +38 -0
- package/es/common/api.d.ts.map +1 -0
- package/es/common/api.js +9 -0
- package/es/common/callHierarchy.d.ts +39 -0
- package/es/common/callHierarchy.d.ts.map +1 -0
- package/es/common/callHierarchy.js +139 -0
- package/es/common/client.d.ts +482 -0
- package/es/common/client.d.ts.map +1 -0
- package/es/common/client.js +2731 -0
- package/es/common/codeAction.d.ts +22 -0
- package/es/common/codeAction.d.ts.map +1 -0
- package/es/common/codeAction.js +149 -0
- package/es/common/codeConverter.d.ts +81 -0
- package/es/common/codeConverter.d.ts.map +1 -0
- package/es/common/codeConverter.js +1040 -0
- package/es/common/codeLens.d.ts +26 -0
- package/es/common/codeLens.d.ts.map +1 -0
- package/es/common/codeLens.js +125 -0
- package/es/common/colorProvider.d.ts +27 -0
- package/es/common/colorProvider.d.ts.map +1 -0
- package/es/common/colorProvider.js +104 -0
- package/es/common/completion.d.ts +22 -0
- package/es/common/completion.d.ts.map +1 -0
- package/es/common/completion.js +130 -0
- package/es/common/configuration.d.ts +71 -0
- package/es/common/configuration.d.ts.map +1 -0
- package/es/common/configuration.js +292 -0
- package/es/common/declaration.d.ts +18 -0
- package/es/common/declaration.d.ts.map +1 -0
- package/es/common/declaration.js +88 -0
- package/es/common/definition.d.ts +18 -0
- package/es/common/definition.d.ts.map +1 -0
- package/es/common/definition.js +80 -0
- package/es/common/diagnostic.d.ts +125 -0
- package/es/common/diagnostic.d.ts.map +1 -0
- package/es/common/diagnostic.js +1442 -0
- package/es/common/documentHighlight.d.ts +17 -0
- package/es/common/documentHighlight.d.ts.map +1 -0
- package/es/common/documentHighlight.js +73 -0
- package/es/common/documentLink.d.ts +21 -0
- package/es/common/documentLink.d.ts.map +1 -0
- package/es/common/documentLink.js +90 -0
- package/es/common/documentSymbol.d.ts +20 -0
- package/es/common/documentSymbol.d.ts.map +1 -0
- package/es/common/documentSymbol.js +134 -0
- package/es/common/executeCommand.d.ts +22 -0
- package/es/common/executeCommand.d.ts.map +1 -0
- package/es/common/executeCommand.js +117 -0
- package/es/common/features.d.ts +421 -0
- package/es/common/features.d.ts.map +1 -0
- package/es/common/features.js +576 -0
- package/es/common/fileOperations.d.ts +118 -0
- package/es/common/fileOperations.d.ts.map +1 -0
- package/es/common/fileOperations.js +705 -0
- package/es/common/fileSystemWatcher.d.ts +19 -0
- package/es/common/fileSystemWatcher.d.ts.map +1 -0
- package/es/common/fileSystemWatcher.js +173 -0
- package/es/common/foldingRange.d.ts +22 -0
- package/es/common/foldingRange.d.ts.map +1 -0
- package/es/common/foldingRange.js +127 -0
- package/es/common/formatting.d.ts +41 -0
- package/es/common/formatting.d.ts.map +1 -0
- package/es/common/formatting.js +233 -0
- package/es/common/hover.d.ts +18 -0
- package/es/common/hover.d.ts.map +1 -0
- package/es/common/hover.js +80 -0
- package/es/common/implementation.d.ts +18 -0
- package/es/common/implementation.d.ts.map +1 -0
- package/es/common/implementation.js +88 -0
- package/es/common/inlayHint.d.ts +23 -0
- package/es/common/inlayHint.d.ts.map +1 -0
- package/es/common/inlayHint.js +187 -0
- package/es/common/inlineCompletion.d.ts +20 -0
- package/es/common/inlineCompletion.d.ts.map +1 -0
- package/es/common/inlineCompletion.js +74 -0
- package/es/common/inlineValue.d.ts +21 -0
- package/es/common/inlineValue.d.ts.map +1 -0
- package/es/common/inlineValue.js +124 -0
- package/es/common/linkedEditingRange.d.ts +23 -0
- package/es/common/linkedEditingRange.d.ts.map +1 -0
- package/es/common/linkedEditingRange.js +94 -0
- package/es/common/notebook.d.ts +97 -0
- package/es/common/notebook.d.ts.map +1 -0
- package/es/common/notebook.js +1444 -0
- package/es/common/progress.d.ts +12 -0
- package/es/common/progress.d.ts.map +1 -0
- package/es/common/progress.js +75 -0
- package/es/common/progressPart.d.ts +25 -0
- package/es/common/progressPart.d.ts.map +1 -0
- package/es/common/progressPart.js +147 -0
- package/es/common/protocolCallHierarchyItem.d.ts +9 -0
- package/es/common/protocolCallHierarchyItem.d.ts.map +1 -0
- package/es/common/protocolCallHierarchyItem.js +34 -0
- package/es/common/protocolCodeAction.d.ts +7 -0
- package/es/common/protocolCodeAction.d.ts.map +1 -0
- package/es/common/protocolCodeAction.js +32 -0
- package/es/common/protocolCodeLens.d.ts +7 -0
- package/es/common/protocolCodeLens.d.ts.map +1 -0
- package/es/common/protocolCodeLens.js +29 -0
- package/es/common/protocolCompletionItem.d.ts +13 -0
- package/es/common/protocolCompletionItem.d.ts.map +1 -0
- package/es/common/protocolCompletionItem.js +29 -0
- package/es/common/protocolConverter.d.ts +174 -0
- package/es/common/protocolConverter.d.ts.map +1 -0
- package/es/common/protocolConverter.js +1982 -0
- package/es/common/protocolDiagnostic.d.ts +20 -0
- package/es/common/protocolDiagnostic.d.ts.map +1 -0
- package/es/common/protocolDiagnostic.js +46 -0
- package/es/common/protocolDocumentLink.d.ts +8 -0
- package/es/common/protocolDocumentLink.d.ts.map +1 -0
- package/es/common/protocolDocumentLink.js +29 -0
- package/es/common/protocolInlayHint.d.ts +8 -0
- package/es/common/protocolInlayHint.d.ts.map +1 -0
- package/es/common/protocolInlayHint.js +29 -0
- package/es/common/protocolTypeHierarchyItem.d.ts +9 -0
- package/es/common/protocolTypeHierarchyItem.d.ts.map +1 -0
- package/es/common/protocolTypeHierarchyItem.js +34 -0
- package/es/common/protocolWorkspaceSymbol.d.ts +9 -0
- package/es/common/protocolWorkspaceSymbol.d.ts.map +1 -0
- package/es/common/protocolWorkspaceSymbol.js +36 -0
- package/es/common/reference.d.ts +22 -0
- package/es/common/reference.d.ts.map +1 -0
- package/es/common/reference.js +78 -0
- package/es/common/rename.d.ts +29 -0
- package/es/common/rename.d.ts.map +1 -0
- package/es/common/rename.js +132 -0
- package/es/common/selectionRange.d.ts +18 -0
- package/es/common/selectionRange.d.ts.map +1 -0
- package/es/common/selectionRange.js +108 -0
- package/es/common/semanticTokens.d.ts +36 -0
- package/es/common/semanticTokens.d.ts.map +1 -0
- package/es/common/semanticTokens.js +226 -0
- package/es/common/signatureHelp.d.ts +18 -0
- package/es/common/signatureHelp.d.ts.map +1 -0
- package/es/common/signatureHelp.js +103 -0
- package/es/common/textSynchronization.d.ts +104 -0
- package/es/common/textSynchronization.d.ts.map +1 -0
- package/es/common/textSynchronization.js +771 -0
- package/es/common/typeDefinition.d.ts +18 -0
- package/es/common/typeDefinition.d.ts.map +1 -0
- package/es/common/typeDefinition.js +89 -0
- package/es/common/typeHierarchy.d.ts +33 -0
- package/es/common/typeHierarchy.d.ts.map +1 -0
- package/es/common/typeHierarchy.js +138 -0
- package/es/common/utils/async.d.ts +42 -0
- package/es/common/utils/async.d.ts.map +1 -0
- package/es/common/utils/async.js +441 -0
- package/es/common/utils/is.d.ts +13 -0
- package/es/common/utils/is.d.ts.map +1 -0
- package/es/common/utils/is.js +52 -0
- package/es/common/utils/uuid.d.ts +23 -0
- package/es/common/utils/uuid.d.ts.map +1 -0
- package/es/common/utils/uuid.js +85 -0
- package/es/common/vscodeAdaptor/convertor.d.ts +7 -0
- package/es/common/vscodeAdaptor/convertor.d.ts.map +1 -0
- package/es/common/vscodeAdaptor/convertor.js +66 -0
- package/es/common/vscodeAdaptor/diagnosticCollection.d.ts +33 -0
- package/es/common/vscodeAdaptor/diagnosticCollection.d.ts.map +1 -0
- package/es/common/vscodeAdaptor/diagnosticCollection.js +310 -0
- package/es/common/vscodeAdaptor/extHostTypes.d.ts +1496 -0
- package/es/common/vscodeAdaptor/extHostTypes.d.ts.map +1 -0
- package/es/common/vscodeAdaptor/extHostTypes.js +3825 -0
- package/es/common/vscodeAdaptor/fileWatcher.d.ts +19 -0
- package/es/common/vscodeAdaptor/fileWatcher.d.ts.map +1 -0
- package/es/common/vscodeAdaptor/fileWatcher.js +45 -0
- package/es/common/vscodeAdaptor/hostTypeUtil.d.ts +192 -0
- package/es/common/vscodeAdaptor/hostTypeUtil.d.ts.map +1 -0
- package/es/common/vscodeAdaptor/hostTypeUtil.js +566 -0
- package/es/common/vscodeAdaptor/libro-fs.d.ts +21 -0
- package/es/common/vscodeAdaptor/libro-fs.d.ts.map +1 -0
- package/es/common/vscodeAdaptor/libro-fs.js +64 -0
- package/es/common/vscodeAdaptor/libroWindow.d.ts +21 -0
- package/es/common/vscodeAdaptor/libroWindow.d.ts.map +1 -0
- package/es/common/vscodeAdaptor/libroWindow.js +75 -0
- package/es/common/vscodeAdaptor/libroWorkspace.d.ts +33 -0
- package/es/common/vscodeAdaptor/libroWorkspace.d.ts.map +1 -0
- package/es/common/vscodeAdaptor/libroWorkspace.js +250 -0
- package/es/common/vscodeAdaptor/lspEnv.d.ts +8 -0
- package/es/common/vscodeAdaptor/lspEnv.d.ts.map +1 -0
- package/es/common/vscodeAdaptor/lspEnv.js +31 -0
- package/es/common/vscodeAdaptor/monaco-converter.d.ts +229 -0
- package/es/common/vscodeAdaptor/monaco-converter.d.ts.map +1 -0
- package/es/common/vscodeAdaptor/monaco-converter.js +1613 -0
- package/es/common/vscodeAdaptor/monacoLanguages.d.ts +48 -0
- package/es/common/vscodeAdaptor/monacoLanguages.d.ts.map +1 -0
- package/es/common/vscodeAdaptor/monacoLanguages.js +484 -0
- package/es/common/vscodeAdaptor/services.d.ts +85 -0
- package/es/common/vscodeAdaptor/services.d.ts.map +1 -0
- package/es/common/vscodeAdaptor/services.js +3 -0
- package/es/common/vscodeAdaptor/typings.d.ts +10 -0
- package/es/common/vscodeAdaptor/util.d.ts +3 -0
- package/es/common/vscodeAdaptor/util.d.ts.map +1 -0
- package/es/common/vscodeAdaptor/util.js +6 -0
- package/es/common/vscodeAdaptor/vscodeAdaptor.d.ts +77 -0
- package/es/common/vscodeAdaptor/vscodeAdaptor.d.ts.map +1 -0
- package/es/common/vscodeAdaptor/vscodeAdaptor.js +124 -0
- package/es/common/workspaceFolder.d.ts +32 -0
- package/es/common/workspaceFolder.d.ts.map +1 -0
- package/es/common/workspaceFolder.js +204 -0
- package/es/common/workspaceSymbol.d.ts +21 -0
- package/es/common/workspaceSymbol.d.ts.map +1 -0
- package/es/common/workspaceSymbol.js +101 -0
- package/es/constants.d.ts +2 -0
- package/es/constants.d.ts.map +1 -0
- package/es/constants.js +1 -0
- package/es/index.d.ts +6 -0
- package/es/index.d.ts.map +1 -0
- package/es/index.js +5 -0
- package/es/libro-language-client-contribution.d.ts +10 -0
- package/es/libro-language-client-contribution.d.ts.map +1 -0
- package/es/libro-language-client-contribution.js +143 -0
- package/es/libro-language-client-manager.d.ts +34 -0
- package/es/libro-language-client-manager.d.ts.map +1 -0
- package/es/libro-language-client-manager.js +277 -0
- package/es/libro-language-client.d.ts +27 -0
- package/es/libro-language-client.d.ts.map +1 -0
- package/es/libro-language-client.js +141 -0
- package/es/module.d.ts +3 -0
- package/es/module.d.ts.map +1 -0
- package/es/module.js +13 -0
- package/package.json +69 -0
- package/src/common/api.ts +155 -0
- package/src/common/callHierarchy.ts +269 -0
- package/src/common/client.ts +3192 -0
- package/src/common/codeAction.ts +237 -0
- package/src/common/codeConverter.ts +1409 -0
- package/src/common/codeLens.ts +188 -0
- package/src/common/colorProvider.ts +192 -0
- package/src/common/completion.ts +281 -0
- package/src/common/configuration.ts +338 -0
- package/src/common/declaration.ts +140 -0
- package/src/common/definition.ts +138 -0
- package/src/common/diagnostic.ts +1408 -0
- package/src/common/documentHighlight.ts +140 -0
- package/src/common/documentLink.ts +180 -0
- package/src/common/documentSymbol.ts +186 -0
- package/src/common/executeCommand.ts +129 -0
- package/src/common/features.ts +1157 -0
- package/src/common/fileOperations.ts +635 -0
- package/src/common/fileSystemWatcher.ts +184 -0
- package/src/common/foldingRange.ts +160 -0
- package/src/common/formatting.ts +465 -0
- package/src/common/hover.ts +133 -0
- package/src/common/implementation.ts +142 -0
- package/src/common/inlayHint.ts +201 -0
- package/src/common/inlineCompletion.ts +160 -0
- package/src/common/inlineValue.ts +158 -0
- package/src/common/linkedEditingRange.ts +141 -0
- package/src/common/notebook.ts +1443 -0
- package/src/common/progress.ts +61 -0
- package/src/common/progressPart.ts +151 -0
- package/src/common/protocolCallHierarchyItem.ts +29 -0
- package/src/common/protocolCodeAction.ts +17 -0
- package/src/common/protocolCodeLens.ts +15 -0
- package/src/common/protocolCompletionItem.ts +22 -0
- package/src/common/protocolConverter.ts +2627 -0
- package/src/common/protocolDiagnostic.ts +47 -0
- package/src/common/protocolDocumentLink.ts +17 -0
- package/src/common/protocolInlayHint.ts +21 -0
- package/src/common/protocolTypeHierarchyItem.ts +29 -0
- package/src/common/protocolWorkspaceSymbol.ts +39 -0
- package/src/common/reference.ts +144 -0
- package/src/common/rename.ts +230 -0
- package/src/common/selectionRange.ts +136 -0
- package/src/common/semanticTokens.ts +383 -0
- package/src/common/signatureHelp.ts +170 -0
- package/src/common/textSynchronization.ts +819 -0
- package/src/common/typeDefinition.ts +146 -0
- package/src/common/typeHierarchy.ts +248 -0
- package/src/common/utils/async.ts +354 -0
- package/src/common/utils/is.ts +63 -0
- package/src/common/utils/uuid.ts +136 -0
- package/src/common/vscodeAdaptor/convertor.ts +73 -0
- package/src/common/vscodeAdaptor/diagnosticCollection.ts +238 -0
- package/src/common/vscodeAdaptor/extHostTypes.ts +4498 -0
- package/src/common/vscodeAdaptor/fileWatcher.ts +36 -0
- package/src/common/vscodeAdaptor/hostTypeUtil.ts +539 -0
- package/src/common/vscodeAdaptor/libro-fs.ts +51 -0
- package/src/common/vscodeAdaptor/libroWindow.ts +85 -0
- package/src/common/vscodeAdaptor/libroWorkspace.ts +261 -0
- package/src/common/vscodeAdaptor/lspEnv.ts +16 -0
- package/src/common/vscodeAdaptor/monaco-converter.ts +1800 -0
- package/src/common/vscodeAdaptor/monacoLanguages.ts +511 -0
- package/src/common/vscodeAdaptor/services.ts +278 -0
- package/src/common/vscodeAdaptor/typings.d.ts +10 -0
- package/src/common/vscodeAdaptor/util.ts +7 -0
- package/src/common/vscodeAdaptor/vscodeAdaptor.ts +122 -0
- package/src/common/workspaceFolder.ts +236 -0
- package/src/common/workspaceSymbol.ts +166 -0
- package/src/constants.ts +1 -0
- package/src/index.spec.ts +7 -0
- package/src/index.ts +5 -0
- package/src/libro-language-client-contribution.ts +49 -0
- package/src/libro-language-client-manager.ts +131 -0
- package/src/libro-language-client.ts +100 -0
- package/src/module.ts +19 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare module '@difizen/monaco-editor-core/esm/vs/editor/common/languageSelector.js' {
|
|
2
|
+
function score(
|
|
3
|
+
selector: LanguageSelector | undefined,
|
|
4
|
+
candidateUri: URI,
|
|
5
|
+
candidateLanguage: string,
|
|
6
|
+
candidateIsSynchronized: boolean,
|
|
7
|
+
candidateNotebookUri: URI | undefined,
|
|
8
|
+
candidateNotebookType: string | undefined,
|
|
9
|
+
): number;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/common/vscodeAdaptor/util.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,aAEvB,CAAC;AAEF,eAAO,MAAM,IAAI,YAEhB,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { Syringe } from '@difizen/mana-app';
|
|
2
|
+
import { Emitter } from '@difizen/mana-common';
|
|
3
|
+
import * as monaco from '@difizen/monaco-editor-core';
|
|
4
|
+
import type { Disposable } from 'vscode';
|
|
5
|
+
import { URI } from 'vscode-uri';
|
|
6
|
+
import { ILibroWindow, ILibroWorkspace, IMonacoLanguages } from './services.js';
|
|
7
|
+
export declare const CompletionItemTag: typeof monaco.languages.CompletionItemTag;
|
|
8
|
+
export type CompletionItemTag = monaco.languages.CompletionItemTag;
|
|
9
|
+
export declare const SignatureHelpTriggerKind: typeof monaco.languages.SignatureHelpTriggerKind;
|
|
10
|
+
export type SignatureHelpTriggerKind = monaco.languages.SignatureHelpTriggerKind;
|
|
11
|
+
export declare const CompletionTriggerKind: typeof monaco.languages.CompletionTriggerKind;
|
|
12
|
+
export type CompletionTriggerKind = monaco.languages.CompletionTriggerKind;
|
|
13
|
+
export declare const lspEnv: {
|
|
14
|
+
libroContainer: Syringe.Container;
|
|
15
|
+
};
|
|
16
|
+
export declare let workspace: ILibroWorkspace;
|
|
17
|
+
export declare let window: ILibroWindow;
|
|
18
|
+
export declare let languages: IMonacoLanguages;
|
|
19
|
+
export declare const setupLspEnv: (container: Syringe.Container) => void;
|
|
20
|
+
export declare const initLspEnv: () => void;
|
|
21
|
+
export declare class Uri extends URI {
|
|
22
|
+
}
|
|
23
|
+
export declare const version = "1.85.1";
|
|
24
|
+
declare class VscodeEnv {
|
|
25
|
+
language: string;
|
|
26
|
+
appName: string;
|
|
27
|
+
openExternal(target: Uri): Thenable<boolean>;
|
|
28
|
+
}
|
|
29
|
+
export declare const env: VscodeEnv;
|
|
30
|
+
export declare class CancellationTokenSource extends monaco.CancellationTokenSource {
|
|
31
|
+
}
|
|
32
|
+
export declare class CancellationError extends Error {
|
|
33
|
+
constructor();
|
|
34
|
+
}
|
|
35
|
+
declare class Commands {
|
|
36
|
+
registerCommand(command: string, callback: (...args: any[]) => any, thisArg?: any): Disposable;
|
|
37
|
+
}
|
|
38
|
+
export declare const commands: Commands;
|
|
39
|
+
export { Emitter as EventEmitter };
|
|
40
|
+
export declare class TabInputText {
|
|
41
|
+
readonly uri: Uri;
|
|
42
|
+
constructor(uri: Uri);
|
|
43
|
+
}
|
|
44
|
+
export declare class TabInputTextDiff {
|
|
45
|
+
readonly original: Uri;
|
|
46
|
+
readonly modified: Uri;
|
|
47
|
+
constructor(original: Uri, modified: Uri);
|
|
48
|
+
}
|
|
49
|
+
export declare class TabInputCustom {
|
|
50
|
+
readonly uri: Uri;
|
|
51
|
+
readonly viewType: string;
|
|
52
|
+
constructor(uri: Uri, viewType: string);
|
|
53
|
+
}
|
|
54
|
+
export declare enum FileType {
|
|
55
|
+
/**
|
|
56
|
+
* File is unknown (neither file, directory nor symbolic link).
|
|
57
|
+
*/
|
|
58
|
+
Unknown = 0,
|
|
59
|
+
/**
|
|
60
|
+
* File is a normal file.
|
|
61
|
+
*/
|
|
62
|
+
File = 1,
|
|
63
|
+
/**
|
|
64
|
+
* File is a directory.
|
|
65
|
+
*/
|
|
66
|
+
Directory = 2,
|
|
67
|
+
/**
|
|
68
|
+
* File is a symbolic link.
|
|
69
|
+
*
|
|
70
|
+
* Note: even when the file is a symbolic link, you can test for
|
|
71
|
+
* `FileType.File` and `FileType.Directory` to know the type of
|
|
72
|
+
* the target the link points to.
|
|
73
|
+
*/
|
|
74
|
+
SymbolicLink = 64
|
|
75
|
+
}
|
|
76
|
+
export * from './extHostTypes.js';
|
|
77
|
+
//# sourceMappingURL=vscodeAdaptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vscodeAdaptor.d.ts","sourceRoot":"","sources":["../../../src/common/vscodeAdaptor/vscodeAdaptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEhF,eAAO,MAAM,iBAAiB,2CAAqC,CAAC;AACpE,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,SAAS,CAAC,iBAAiB,CAAC;AACnE,eAAO,MAAM,wBAAwB,kDAA4C,CAAC;AAClF,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,SAAS,CAAC,wBAAwB,CAAC;AACjF,eAAO,MAAM,qBAAqB,+CAAyC,CAAC;AAC5E,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,SAAS,CAAC,qBAAqB,CAAC;AAE3E,eAAO,MAAM,MAAM,EAAE;IACnB,cAAc,EAAE,OAAO,CAAC,SAAS,CAAC;CAGnC,CAAC;AAEF,eAAO,IAAI,SAAS,EAAE,eAAkC,CAAC;AACzD,eAAO,IAAI,MAAM,EAAE,YAA+B,CAAC;AACnD,eAAO,IAAI,SAAS,EAAE,gBAAmC,CAAC;AAE1D,eAAO,MAAM,WAAW,cAAe,QAAQ,SAAS,SAEvD,CAAC;AAEF,eAAO,MAAM,UAAU,YAItB,CAAC;AAEF,qBAAa,GAAI,SAAQ,GAAG;CAAG;AAE/B,eAAO,MAAM,OAAO,WAAW,CAAC;AAEhC,cAAM,SAAS;IACb,QAAQ,SAAY;IACpB,OAAO,SAAW;IAClB,YAAY,CAAC,MAAM,EAAE,GAAG,GAAG,QAAQ,CAAC,OAAO,CAAC;CAG7C;AAED,eAAO,MAAM,GAAG,WAAkB,CAAC;AAEnC,qBAAa,uBAAwB,SAAQ,MAAM,CAAC,uBAAuB;CAAG;AAG9E,qBAAa,iBAAkB,SAAQ,KAAK;;CAK3C;AAED,cAAM,QAAQ;IACZ,eAAe,CACb,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACjC,OAAO,CAAC,EAAE,GAAG,GACZ,UAAU;CAOd;AAED,eAAO,MAAM,QAAQ,UAAiB,CAAC;AAEvC,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,CAAC;AAEnC,qBAAa,YAAY;IACX,QAAQ,CAAC,GAAG,EAAE,GAAG;gBAAR,GAAG,EAAE,GAAG;CAC9B;AAED,qBAAa,gBAAgB;IAEzB,QAAQ,CAAC,QAAQ,EAAE,GAAG;IACtB,QAAQ,CAAC,QAAQ,EAAE,GAAG;gBADb,QAAQ,EAAE,GAAG,EACb,QAAQ,EAAE,GAAG;CAEzB;AAED,qBAAa,cAAc;IAEvB,QAAQ,CAAC,GAAG,EAAE,GAAG;IACjB,QAAQ,CAAC,QAAQ,EAAE,MAAM;gBADhB,GAAG,EAAE,GAAG,EACR,QAAQ,EAAE,MAAM;CAE5B;AAED,oBAAY,QAAQ;IAClB;;OAEG;IACH,OAAO,IAAI;IAEX;;OAEG;IACH,IAAI,IAAI;IAER;;OAEG;IACH,SAAS,IAAI;IAEb;;;;;;OAMG;IACH,YAAY,KAAK;CAClB;AAED,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
|
|
3
|
+
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
|
|
4
|
+
function _isNativeFunction(fn) { try { return Function.toString.call(fn).indexOf("[native code]") !== -1; } catch (e) { return typeof fn === "function"; } }
|
|
5
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
10
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
11
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
12
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
13
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
14
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
15
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
16
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
17
|
+
import { Emitter } from '@difizen/mana-common';
|
|
18
|
+
import * as monaco from '@difizen/monaco-editor-core';
|
|
19
|
+
import { URI } from 'vscode-uri';
|
|
20
|
+
import { ILibroWindow, ILibroWorkspace, IMonacoLanguages } from "./services.js";
|
|
21
|
+
export var CompletionItemTag = monaco.languages.CompletionItemTag;
|
|
22
|
+
export var SignatureHelpTriggerKind = monaco.languages.SignatureHelpTriggerKind;
|
|
23
|
+
export var CompletionTriggerKind = monaco.languages.CompletionTriggerKind;
|
|
24
|
+
export var lspEnv = {
|
|
25
|
+
libroContainer: {}
|
|
26
|
+
};
|
|
27
|
+
export var workspace = undefined;
|
|
28
|
+
export var window = undefined;
|
|
29
|
+
export var languages = undefined;
|
|
30
|
+
export var setupLspEnv = function setupLspEnv(container) {
|
|
31
|
+
lspEnv.libroContainer = container;
|
|
32
|
+
};
|
|
33
|
+
export var initLspEnv = function initLspEnv() {
|
|
34
|
+
workspace = lspEnv.libroContainer.get(ILibroWorkspace);
|
|
35
|
+
window = lspEnv.libroContainer.get(ILibroWindow);
|
|
36
|
+
languages = lspEnv.libroContainer.get(IMonacoLanguages);
|
|
37
|
+
};
|
|
38
|
+
export var Uri = /*#__PURE__*/function (_URI) {
|
|
39
|
+
_inherits(Uri, _URI);
|
|
40
|
+
var _super = _createSuper(Uri);
|
|
41
|
+
function Uri() {
|
|
42
|
+
_classCallCheck(this, Uri);
|
|
43
|
+
return _super.apply(this, arguments);
|
|
44
|
+
}
|
|
45
|
+
return _createClass(Uri);
|
|
46
|
+
}(URI);
|
|
47
|
+
export var version = '1.85.1';
|
|
48
|
+
var VscodeEnv = /*#__PURE__*/function () {
|
|
49
|
+
function VscodeEnv() {
|
|
50
|
+
_classCallCheck(this, VscodeEnv);
|
|
51
|
+
this.language = 'python';
|
|
52
|
+
this.appName = 'libro';
|
|
53
|
+
}
|
|
54
|
+
_createClass(VscodeEnv, [{
|
|
55
|
+
key: "openExternal",
|
|
56
|
+
value: function openExternal(target) {
|
|
57
|
+
return Promise.resolve(true);
|
|
58
|
+
}
|
|
59
|
+
}]);
|
|
60
|
+
return VscodeEnv;
|
|
61
|
+
}();
|
|
62
|
+
export var env = new VscodeEnv();
|
|
63
|
+
export var CancellationTokenSource = /*#__PURE__*/function (_monaco$CancellationT) {
|
|
64
|
+
_inherits(CancellationTokenSource, _monaco$CancellationT);
|
|
65
|
+
var _super2 = _createSuper(CancellationTokenSource);
|
|
66
|
+
function CancellationTokenSource() {
|
|
67
|
+
_classCallCheck(this, CancellationTokenSource);
|
|
68
|
+
return _super2.apply(this, arguments);
|
|
69
|
+
}
|
|
70
|
+
return _createClass(CancellationTokenSource);
|
|
71
|
+
}(monaco.CancellationTokenSource);
|
|
72
|
+
var canceledName = 'Canceled';
|
|
73
|
+
export var CancellationError = /*#__PURE__*/function (_Error) {
|
|
74
|
+
_inherits(CancellationError, _Error);
|
|
75
|
+
var _super3 = _createSuper(CancellationError);
|
|
76
|
+
function CancellationError() {
|
|
77
|
+
var _this;
|
|
78
|
+
_classCallCheck(this, CancellationError);
|
|
79
|
+
_this = _super3.call(this, canceledName);
|
|
80
|
+
_this.name = _this.message;
|
|
81
|
+
return _this;
|
|
82
|
+
}
|
|
83
|
+
return _createClass(CancellationError);
|
|
84
|
+
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
85
|
+
var Commands = /*#__PURE__*/function () {
|
|
86
|
+
function Commands() {
|
|
87
|
+
_classCallCheck(this, Commands);
|
|
88
|
+
}
|
|
89
|
+
_createClass(Commands, [{
|
|
90
|
+
key: "registerCommand",
|
|
91
|
+
value: function registerCommand(command, callback, thisArg) {
|
|
92
|
+
return {
|
|
93
|
+
dispose: function dispose() {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
}]);
|
|
99
|
+
return Commands;
|
|
100
|
+
}();
|
|
101
|
+
export var commands = new Commands();
|
|
102
|
+
export { Emitter as EventEmitter };
|
|
103
|
+
export var TabInputText = /*#__PURE__*/_createClass(function TabInputText(uri) {
|
|
104
|
+
_classCallCheck(this, TabInputText);
|
|
105
|
+
this.uri = uri;
|
|
106
|
+
});
|
|
107
|
+
export var TabInputTextDiff = /*#__PURE__*/_createClass(function TabInputTextDiff(original, modified) {
|
|
108
|
+
_classCallCheck(this, TabInputTextDiff);
|
|
109
|
+
this.original = original;
|
|
110
|
+
this.modified = modified;
|
|
111
|
+
});
|
|
112
|
+
export var TabInputCustom = /*#__PURE__*/_createClass(function TabInputCustom(uri, viewType) {
|
|
113
|
+
_classCallCheck(this, TabInputCustom);
|
|
114
|
+
this.uri = uri;
|
|
115
|
+
this.viewType = viewType;
|
|
116
|
+
});
|
|
117
|
+
export var FileType = /*#__PURE__*/function (FileType) {
|
|
118
|
+
FileType[FileType["Unknown"] = 0] = "Unknown";
|
|
119
|
+
FileType[FileType["File"] = 1] = "File";
|
|
120
|
+
FileType[FileType["Directory"] = 2] = "Directory";
|
|
121
|
+
FileType[FileType["SymbolicLink"] = 64] = "SymbolicLink";
|
|
122
|
+
return FileType;
|
|
123
|
+
}({});
|
|
124
|
+
export * from "./extHostTypes.js";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ClientCapabilities, InitializeParams, ServerCapabilities, RegistrationType } from '@difizen/vscode-languageserver-protocol';
|
|
2
|
+
import { WorkspaceFoldersRequest } from '@difizen/vscode-languageserver-protocol';
|
|
3
|
+
import type { WorkspaceFolder as VWorkspaceFolder, WorkspaceFoldersChangeEvent as VWorkspaceFoldersChangeEvent } from 'vscode';
|
|
4
|
+
import type { DynamicFeature, RegistrationData, FeatureClient, NextSignature, FeatureState } from './features.js';
|
|
5
|
+
export declare function arrayDiff<T>(left: ReadonlyArray<T>, right: ReadonlyArray<T>): T[];
|
|
6
|
+
export type WorkspaceFolderMiddleware = {
|
|
7
|
+
workspaceFolders?: WorkspaceFoldersRequest.MiddlewareSignature;
|
|
8
|
+
didChangeWorkspaceFolders?: NextSignature<VWorkspaceFoldersChangeEvent, Promise<void>>;
|
|
9
|
+
};
|
|
10
|
+
type WorkspaceFolderWorkspaceMiddleware = {
|
|
11
|
+
workspace?: WorkspaceFolderMiddleware;
|
|
12
|
+
};
|
|
13
|
+
export declare class WorkspaceFoldersFeature implements DynamicFeature<void> {
|
|
14
|
+
private readonly _client;
|
|
15
|
+
private readonly _listeners;
|
|
16
|
+
private _initialFolders;
|
|
17
|
+
constructor(client: FeatureClient<WorkspaceFolderWorkspaceMiddleware>);
|
|
18
|
+
getState(): FeatureState;
|
|
19
|
+
get registrationType(): RegistrationType<void>;
|
|
20
|
+
fillInitializeParams(params: InitializeParams): void;
|
|
21
|
+
protected initializeWithFolders(currentWorkspaceFolders: ReadonlyArray<VWorkspaceFolder> | undefined): void;
|
|
22
|
+
fillClientCapabilities(capabilities: ClientCapabilities): void;
|
|
23
|
+
initialize(capabilities: ServerCapabilities): void;
|
|
24
|
+
protected sendInitialEvent(currentWorkspaceFolders: ReadonlyArray<VWorkspaceFolder> | undefined): void;
|
|
25
|
+
private doSendEvent;
|
|
26
|
+
register(data: RegistrationData<undefined>): void;
|
|
27
|
+
unregister(id: string): void;
|
|
28
|
+
clear(): void;
|
|
29
|
+
private asProtocol;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=workspaceFolder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaceFolder.d.ts","sourceRoot":"","sources":["../../src/common/workspaceFolder.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,kBAAkB,EAClB,gBAAgB,EAEhB,kBAAkB,EAGlB,gBAAgB,EACjB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,uBAAuB,EAExB,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAEV,eAAe,IAAI,gBAAgB,EACnC,2BAA2B,IAAI,4BAA4B,EAC5D,MAAM,QAAQ,CAAC;AAEhB,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,YAAY,EACb,MAAM,eAAe,CAAC;AAWvB,wBAAgB,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAEjF;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,gBAAgB,CAAC,EAAE,uBAAuB,CAAC,mBAAmB,CAAC;IAC/D,yBAAyB,CAAC,EAAE,aAAa,CACvC,4BAA4B,EAC5B,OAAO,CAAC,IAAI,CAAC,CACd,CAAC;CACH,CAAC;AAEF,KAAK,kCAAkC,GAAG;IACxC,SAAS,CAAC,EAAE,yBAAyB,CAAC;CACvC,CAAC;AAEF,qBAAa,uBAAwB,YAAW,cAAc,CAAC,IAAI,CAAC;IAClE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoD;IAC5E,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA0B;IACrD,OAAO,CAAC,eAAe,CAA8C;gBAEzD,MAAM,EAAE,aAAa,CAAC,kCAAkC,CAAC;IAKrE,QAAQ,IAAI,YAAY;IAQxB,IAAW,gBAAgB,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAEpD;IAEM,oBAAoB,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI;IAW3D,SAAS,CAAC,qBAAqB,CAC7B,uBAAuB,EAAE,aAAa,CAAC,gBAAgB,CAAC,GAAG,SAAS;IAK/D,sBAAsB,CAAC,YAAY,EAAE,kBAAkB,GAAG,IAAI;IAK9D,UAAU,CAAC,YAAY,EAAE,kBAAkB,GAAG,IAAI;IAiCzD,SAAS,CAAC,gBAAgB,CACxB,uBAAuB,EAAE,aAAa,CAAC,gBAAgB,CAAC,GAAG,SAAS;IA8BtE,OAAO,CAAC,WAAW;IAgBZ,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC,SAAS,CAAC,GAAG,IAAI;IAyBjD,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAS5B,KAAK,IAAI,IAAI;IAOpB,OAAO,CAAC,UAAU;CAanB"}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
7
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
9
|
+
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); }
|
|
10
|
+
/* --------------------------------------------------------------------------------------------
|
|
11
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
12
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
13
|
+
* ------------------------------------------------------------------------------------------ */
|
|
14
|
+
|
|
15
|
+
import { WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification } from '@difizen/vscode-languageserver-protocol';
|
|
16
|
+
import * as UUID from "./utils/uuid.js";
|
|
17
|
+
import { workspace } from "./vscodeAdaptor/vscodeAdaptor.js";
|
|
18
|
+
function access(target, key) {
|
|
19
|
+
if (target === undefined || target === null) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
return target[key];
|
|
23
|
+
}
|
|
24
|
+
export function arrayDiff(left, right) {
|
|
25
|
+
return left.filter(function (element) {
|
|
26
|
+
return right.indexOf(element) < 0;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
export var WorkspaceFoldersFeature = /*#__PURE__*/function () {
|
|
30
|
+
function WorkspaceFoldersFeature(client) {
|
|
31
|
+
_classCallCheck(this, WorkspaceFoldersFeature);
|
|
32
|
+
this._client = client;
|
|
33
|
+
this._listeners = new Map();
|
|
34
|
+
}
|
|
35
|
+
_createClass(WorkspaceFoldersFeature, [{
|
|
36
|
+
key: "getState",
|
|
37
|
+
value: function getState() {
|
|
38
|
+
return {
|
|
39
|
+
kind: 'workspace',
|
|
40
|
+
id: this.registrationType.method,
|
|
41
|
+
registrations: this._listeners.size > 0
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}, {
|
|
45
|
+
key: "registrationType",
|
|
46
|
+
get: function get() {
|
|
47
|
+
return DidChangeWorkspaceFoldersNotification.type;
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
key: "fillInitializeParams",
|
|
51
|
+
value: function fillInitializeParams(params) {
|
|
52
|
+
var _this = this;
|
|
53
|
+
var folders = workspace.workspaceFolders;
|
|
54
|
+
this.initializeWithFolders(folders);
|
|
55
|
+
if (folders === void 0) {
|
|
56
|
+
params.workspaceFolders = null;
|
|
57
|
+
} else {
|
|
58
|
+
params.workspaceFolders = folders.map(function (folder) {
|
|
59
|
+
return _this.asProtocol(folder);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}, {
|
|
64
|
+
key: "initializeWithFolders",
|
|
65
|
+
value: function initializeWithFolders(currentWorkspaceFolders) {
|
|
66
|
+
this._initialFolders = currentWorkspaceFolders;
|
|
67
|
+
}
|
|
68
|
+
}, {
|
|
69
|
+
key: "fillClientCapabilities",
|
|
70
|
+
value: function fillClientCapabilities(capabilities) {
|
|
71
|
+
capabilities.workspace = capabilities.workspace || {};
|
|
72
|
+
capabilities.workspace.workspaceFolders = true;
|
|
73
|
+
}
|
|
74
|
+
}, {
|
|
75
|
+
key: "initialize",
|
|
76
|
+
value: function initialize(capabilities) {
|
|
77
|
+
var _this2 = this;
|
|
78
|
+
var client = this._client;
|
|
79
|
+
client.onRequest(WorkspaceFoldersRequest.type, function (token) {
|
|
80
|
+
var workspaceFolders = function workspaceFolders() {
|
|
81
|
+
var folders = workspace.workspaceFolders;
|
|
82
|
+
if (folders === undefined) {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
var result = folders.map(function (folder) {
|
|
86
|
+
return _this2.asProtocol(folder);
|
|
87
|
+
});
|
|
88
|
+
return result;
|
|
89
|
+
};
|
|
90
|
+
var middleware = client.middleware.workspace;
|
|
91
|
+
return middleware && middleware.workspaceFolders ? middleware.workspaceFolders(token, workspaceFolders) : workspaceFolders(token);
|
|
92
|
+
});
|
|
93
|
+
var value = access(access(access(capabilities, 'workspace'), 'workspaceFolders'), 'changeNotifications');
|
|
94
|
+
var id;
|
|
95
|
+
if (typeof value === 'string') {
|
|
96
|
+
id = value;
|
|
97
|
+
} else if (value === true) {
|
|
98
|
+
id = UUID.generateUuid();
|
|
99
|
+
}
|
|
100
|
+
if (id) {
|
|
101
|
+
this.register({
|
|
102
|
+
id: id,
|
|
103
|
+
registerOptions: undefined
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}, {
|
|
108
|
+
key: "sendInitialEvent",
|
|
109
|
+
value: function sendInitialEvent(currentWorkspaceFolders) {
|
|
110
|
+
var _this3 = this;
|
|
111
|
+
var promise;
|
|
112
|
+
if (this._initialFolders && currentWorkspaceFolders) {
|
|
113
|
+
var removed = arrayDiff(this._initialFolders, currentWorkspaceFolders);
|
|
114
|
+
var added = arrayDiff(currentWorkspaceFolders, this._initialFolders);
|
|
115
|
+
if (added.length > 0 || removed.length > 0) {
|
|
116
|
+
promise = this.doSendEvent(added, removed);
|
|
117
|
+
}
|
|
118
|
+
} else if (this._initialFolders) {
|
|
119
|
+
promise = this.doSendEvent([], this._initialFolders);
|
|
120
|
+
} else if (currentWorkspaceFolders) {
|
|
121
|
+
promise = this.doSendEvent(currentWorkspaceFolders, []);
|
|
122
|
+
}
|
|
123
|
+
if (promise !== undefined) {
|
|
124
|
+
promise.catch(function (error) {
|
|
125
|
+
_this3._client.error("Sending notification ".concat(DidChangeWorkspaceFoldersNotification.type.method, " failed"), error);
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}, {
|
|
130
|
+
key: "doSendEvent",
|
|
131
|
+
value: function doSendEvent(addedFolders, removedFolders) {
|
|
132
|
+
var _this4 = this;
|
|
133
|
+
var params = {
|
|
134
|
+
event: {
|
|
135
|
+
added: addedFolders.map(function (folder) {
|
|
136
|
+
return _this4.asProtocol(folder);
|
|
137
|
+
}),
|
|
138
|
+
removed: removedFolders.map(function (folder) {
|
|
139
|
+
return _this4.asProtocol(folder);
|
|
140
|
+
})
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
return this._client.sendNotification(DidChangeWorkspaceFoldersNotification.type, params);
|
|
144
|
+
}
|
|
145
|
+
}, {
|
|
146
|
+
key: "register",
|
|
147
|
+
value: function register(data) {
|
|
148
|
+
var _this5 = this;
|
|
149
|
+
var id = data.id;
|
|
150
|
+
var client = this._client;
|
|
151
|
+
var disposable = workspace.onDidChangeWorkspaceFolders(function (event) {
|
|
152
|
+
var didChangeWorkspaceFolders = function didChangeWorkspaceFolders(event) {
|
|
153
|
+
return _this5.doSendEvent(event.added, event.removed);
|
|
154
|
+
};
|
|
155
|
+
var middleware = client.middleware.workspace;
|
|
156
|
+
var promise = middleware && middleware.didChangeWorkspaceFolders ? middleware.didChangeWorkspaceFolders(event, didChangeWorkspaceFolders) : didChangeWorkspaceFolders(event);
|
|
157
|
+
promise.catch(function (error) {
|
|
158
|
+
_this5._client.error("Sending notification ".concat(DidChangeWorkspaceFoldersNotification.type.method, " failed"), error);
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
this._listeners.set(id, disposable);
|
|
162
|
+
this.sendInitialEvent(workspace.workspaceFolders);
|
|
163
|
+
}
|
|
164
|
+
}, {
|
|
165
|
+
key: "unregister",
|
|
166
|
+
value: function unregister(id) {
|
|
167
|
+
var disposable = this._listeners.get(id);
|
|
168
|
+
if (disposable === void 0) {
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
this._listeners.delete(id);
|
|
172
|
+
disposable.dispose();
|
|
173
|
+
}
|
|
174
|
+
}, {
|
|
175
|
+
key: "clear",
|
|
176
|
+
value: function clear() {
|
|
177
|
+
var _iterator = _createForOfIteratorHelper(this._listeners.values()),
|
|
178
|
+
_step;
|
|
179
|
+
try {
|
|
180
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
181
|
+
var disposable = _step.value;
|
|
182
|
+
disposable.dispose();
|
|
183
|
+
}
|
|
184
|
+
} catch (err) {
|
|
185
|
+
_iterator.e(err);
|
|
186
|
+
} finally {
|
|
187
|
+
_iterator.f();
|
|
188
|
+
}
|
|
189
|
+
this._listeners.clear();
|
|
190
|
+
}
|
|
191
|
+
}, {
|
|
192
|
+
key: "asProtocol",
|
|
193
|
+
value: function asProtocol(workspaceFolder) {
|
|
194
|
+
if (workspaceFolder === void 0) {
|
|
195
|
+
return null;
|
|
196
|
+
}
|
|
197
|
+
return {
|
|
198
|
+
uri: this._client.code2ProtocolConverter.asUri(workspaceFolder.uri),
|
|
199
|
+
name: workspaceFolder.name
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
}]);
|
|
203
|
+
return WorkspaceFoldersFeature;
|
|
204
|
+
}();
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ClientCapabilities, ServerCapabilities, WorkspaceSymbolRegistrationOptions } from '@difizen/vscode-languageserver-protocol';
|
|
2
|
+
import type { Disposable, CancellationToken, ProviderResult, SymbolInformation as VSymbolInformation, WorkspaceSymbolProvider } from 'vscode';
|
|
3
|
+
import type { FeatureClient } from './features.js';
|
|
4
|
+
import { WorkspaceFeature } from './features.js';
|
|
5
|
+
export interface ProvideWorkspaceSymbolsSignature {
|
|
6
|
+
(this: void, query: string, token: CancellationToken): ProviderResult<VSymbolInformation[]>;
|
|
7
|
+
}
|
|
8
|
+
export interface ResolveWorkspaceSymbolSignature {
|
|
9
|
+
(this: void, item: VSymbolInformation, token: CancellationToken): ProviderResult<VSymbolInformation>;
|
|
10
|
+
}
|
|
11
|
+
export interface WorkspaceSymbolMiddleware {
|
|
12
|
+
provideWorkspaceSymbols?: (this: void, query: string, token: CancellationToken, next: ProvideWorkspaceSymbolsSignature) => ProviderResult<VSymbolInformation[]>;
|
|
13
|
+
resolveWorkspaceSymbol?: (this: void, item: VSymbolInformation, token: CancellationToken, next: ResolveWorkspaceSymbolSignature) => ProviderResult<VSymbolInformation>;
|
|
14
|
+
}
|
|
15
|
+
export declare class WorkspaceSymbolFeature extends WorkspaceFeature<WorkspaceSymbolRegistrationOptions, WorkspaceSymbolProvider, WorkspaceSymbolMiddleware> {
|
|
16
|
+
constructor(client: FeatureClient<WorkspaceSymbolMiddleware>);
|
|
17
|
+
fillClientCapabilities(capabilities: ClientCapabilities): void;
|
|
18
|
+
initialize(capabilities: ServerCapabilities): void;
|
|
19
|
+
protected registerLanguageProvider(options: WorkspaceSymbolRegistrationOptions): [Disposable, WorkspaceSymbolProvider];
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=workspaceSymbol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaceSymbol.d.ts","sourceRoot":"","sources":["../../src/common/workspaceSymbol.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,kCAAkC,EACnC,MAAM,yCAAyC,CAAC;AAKjD,OAAO,KAAK,EACV,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,iBAAiB,IAAI,kBAAkB,EACvC,uBAAuB,EACxB,MAAM,QAAQ,CAAC;AAGhB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAU,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAIzD,MAAM,WAAW,gCAAgC;IAC/C,CACE,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,iBAAiB,GACvB,cAAc,CAAC,kBAAkB,EAAE,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,+BAA+B;IAC9C,CACE,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,iBAAiB,GACvB,cAAc,CAAC,kBAAkB,CAAC,CAAC;CACvC;AAED,MAAM,WAAW,yBAAyB;IACxC,uBAAuB,CAAC,EAAE,CACxB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,iBAAiB,EACxB,IAAI,EAAE,gCAAgC,KACnC,cAAc,CAAC,kBAAkB,EAAE,CAAC,CAAC;IAC1C,sBAAsB,CAAC,EAAE,CACvB,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,iBAAiB,EACxB,IAAI,EAAE,+BAA+B,KAClC,cAAc,CAAC,kBAAkB,CAAC,CAAC;CACzC;AAED,qBAAa,sBAAuB,SAAQ,gBAAgB,CAC1D,kCAAkC,EAClC,uBAAuB,EACvB,yBAAyB,CAC1B;gBACa,MAAM,EAAE,aAAa,CAAC,yBAAyB,CAAC;IAIrD,sBAAsB,CAAC,YAAY,EAAE,kBAAkB,GAAG,IAAI;IAY9D,UAAU,CAAC,YAAY,EAAE,kBAAkB,GAAG,IAAI;IAazD,SAAS,CAAC,wBAAwB,CAChC,OAAO,EAAE,kCAAkC,GAC1C,CAAC,UAAU,EAAE,uBAAuB,CAAC;CAsEzC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
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); }
|
|
7
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
8
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
11
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
14
|
+
/* --------------------------------------------------------------------------------------------
|
|
15
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
16
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
17
|
+
* ------------------------------------------------------------------------------------------ */
|
|
18
|
+
|
|
19
|
+
import { WorkspaceSymbolRequest, WorkspaceSymbolResolveRequest } from '@difizen/vscode-languageserver-protocol';
|
|
20
|
+
import { SupportedSymbolKinds, SupportedSymbolTags } from "./documentSymbol.js";
|
|
21
|
+
import { ensure, WorkspaceFeature } from "./features.js";
|
|
22
|
+
import * as UUID from "./utils/uuid.js";
|
|
23
|
+
import { languages as Languages } from "./vscodeAdaptor/vscodeAdaptor.js";
|
|
24
|
+
export var WorkspaceSymbolFeature = /*#__PURE__*/function (_WorkspaceFeature) {
|
|
25
|
+
_inherits(WorkspaceSymbolFeature, _WorkspaceFeature);
|
|
26
|
+
var _super = _createSuper(WorkspaceSymbolFeature);
|
|
27
|
+
function WorkspaceSymbolFeature(client) {
|
|
28
|
+
_classCallCheck(this, WorkspaceSymbolFeature);
|
|
29
|
+
return _super.call(this, client, WorkspaceSymbolRequest.type);
|
|
30
|
+
}
|
|
31
|
+
_createClass(WorkspaceSymbolFeature, [{
|
|
32
|
+
key: "fillClientCapabilities",
|
|
33
|
+
value: function fillClientCapabilities(capabilities) {
|
|
34
|
+
var symbolCapabilities = ensure(ensure(capabilities, 'workspace'), 'symbol');
|
|
35
|
+
symbolCapabilities.dynamicRegistration = true;
|
|
36
|
+
symbolCapabilities.symbolKind = {
|
|
37
|
+
valueSet: SupportedSymbolKinds
|
|
38
|
+
};
|
|
39
|
+
symbolCapabilities.tagSupport = {
|
|
40
|
+
valueSet: SupportedSymbolTags
|
|
41
|
+
};
|
|
42
|
+
symbolCapabilities.resolveSupport = {
|
|
43
|
+
properties: ['location.range']
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}, {
|
|
47
|
+
key: "initialize",
|
|
48
|
+
value: function initialize(capabilities) {
|
|
49
|
+
if (!capabilities.workspaceSymbolProvider) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
this.register({
|
|
53
|
+
id: UUID.generateUuid(),
|
|
54
|
+
registerOptions: capabilities.workspaceSymbolProvider === true ? {
|
|
55
|
+
workDoneProgress: false
|
|
56
|
+
} : capabilities.workspaceSymbolProvider
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}, {
|
|
60
|
+
key: "registerLanguageProvider",
|
|
61
|
+
value: function registerLanguageProvider(options) {
|
|
62
|
+
var _this = this;
|
|
63
|
+
var provider = {
|
|
64
|
+
provideWorkspaceSymbols: function provideWorkspaceSymbols(query, token) {
|
|
65
|
+
var client = _this._client;
|
|
66
|
+
var provideWorkspaceSymbols = function provideWorkspaceSymbols(query, token) {
|
|
67
|
+
return client.sendRequest(WorkspaceSymbolRequest.type, {
|
|
68
|
+
query: query
|
|
69
|
+
}, token).then(function (result) {
|
|
70
|
+
if (token.isCancellationRequested) {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
return client.protocol2CodeConverter.asSymbolInformations(result, token);
|
|
74
|
+
}, function (error) {
|
|
75
|
+
return client.handleFailedRequest(WorkspaceSymbolRequest.type, token, error, null);
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
var middleware = client.middleware;
|
|
79
|
+
return middleware.provideWorkspaceSymbols ? middleware.provideWorkspaceSymbols(query, token, provideWorkspaceSymbols) : provideWorkspaceSymbols(query, token);
|
|
80
|
+
},
|
|
81
|
+
resolveWorkspaceSymbol: options.resolveProvider === true ? function (item, token) {
|
|
82
|
+
var client = _this._client;
|
|
83
|
+
var resolveWorkspaceSymbol = function resolveWorkspaceSymbol(item, token) {
|
|
84
|
+
return client.sendRequest(WorkspaceSymbolResolveRequest.type, client.code2ProtocolConverter.asWorkspaceSymbol(item), token).then(function (result) {
|
|
85
|
+
if (token.isCancellationRequested) {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
return client.protocol2CodeConverter.asSymbolInformation(result);
|
|
89
|
+
}, function (error) {
|
|
90
|
+
return client.handleFailedRequest(WorkspaceSymbolResolveRequest.type, token, error, null);
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
var middleware = client.middleware;
|
|
94
|
+
return middleware.resolveWorkspaceSymbol ? middleware.resolveWorkspaceSymbol(item, token, resolveWorkspaceSymbol) : resolveWorkspaceSymbol(item, token);
|
|
95
|
+
} : undefined
|
|
96
|
+
};
|
|
97
|
+
return [Languages.registerWorkspaceSymbolProvider(provider), provider];
|
|
98
|
+
}
|
|
99
|
+
}]);
|
|
100
|
+
return WorkspaceSymbolFeature;
|
|
101
|
+
}(WorkspaceFeature);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,wBAAwB,CAAC"}
|
package/es/constants.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var LibroCellURIScheme = 'libro-notebook-cell';
|
package/es/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|