@codingame/monaco-vscode-references-view-default-extension 1.85.1 → 1.85.3
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/index.js +9 -4
- package/package.json +2 -2
- package/resources/README.md +34 -0
- package/resources/demo.png +0 -0
- package/resources/extension.js +2 -0
- package/resources/extension.js.map +1 -0
- package/resources/icon.png +0 -0
- package/resources/package.json +1 -0
- package/resources/package.nls.json +1 -0
- package/extension.js +0 -1548
- package/extension.js.map +0 -1
- package/package.nls.json +0 -31
package/index.js
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { registerExtension } from 'vscode/extensions';
|
|
2
2
|
|
|
3
|
-
var manifest = {name:"references-view",displayName:"%displayName%",description:"%description%",icon:"media/icon.png",version:"1.0.0",publisher:"vscode",license:"MIT",engines:{vscode:"^1.67.0"},capabilities:{virtualWorkspaces:true,untrustedWorkspaces:{supported:true}},repository:{type:"git",url:"https://github.com/Microsoft/vscode-references-view"},bugs:{url:"https://github.com/Microsoft/vscode-references-view/issues"},categories:["Programming Languages"],activationEvents:["onCommand:references-view.find","onCommand:editor.action.showReferences"],main:undefined,browser:"./dist/extension.js",contributes:{configuration:{properties:{"references.preferredLocation":{description:"%config.references.preferredLocation%",type:"string","default":"peek","enum":["peek","view"],enumDescriptions:["%config.references.preferredLocation.peek%","%config.references.preferredLocation.view%"]}}},viewsContainers:{activitybar:[{id:"references-view",icon:"$(references)",title:"%container.title%"}]},views:{"references-view":[{id:"references-view.tree",name:"%view.title%",when:"reference-list.isActive"}]},commands:[{command:"references-view.findReferences",title:"%cmd.references-view.findReferences%",category:"%cmd.category.references%"},{command:"references-view.findImplementations",title:"%cmd.references-view.findImplementations%",category:"%cmd.category.references%"},{command:"references-view.clearHistory",title:"%cmd.references-view.clearHistory%",category:"%cmd.category.references%",icon:"$(clear-all)"},{command:"references-view.clear",title:"%cmd.references-view.clear%",category:"%cmd.category.references%",icon:"$(clear-all)"},{command:"references-view.refresh",title:"%cmd.references-view.refresh%",category:"%cmd.category.references%",icon:"$(refresh)"},{command:"references-view.pickFromHistory",title:"%cmd.references-view.pickFromHistory%",category:"%cmd.category.references%"},{command:"references-view.removeReferenceItem",title:"%cmd.references-view.removeReferenceItem%",icon:"$(close)"},{command:"references-view.copy",title:"%cmd.references-view.copy%"},{command:"references-view.copyAll",title:"%cmd.references-view.copyAll%"},{command:"references-view.copyPath",title:"%cmd.references-view.copyPath%"},{command:"references-view.refind",title:"%cmd.references-view.refind%",icon:"$(refresh)"},{command:"references-view.showCallHierarchy",title:"%cmd.references-view.showCallHierarchy%",category:"Calls"},{command:"references-view.showOutgoingCalls",title:"%cmd.references-view.showOutgoingCalls%",category:"Calls",icon:"$(call-outgoing)"},{command:"references-view.showIncomingCalls",title:"%cmd.references-view.showIncomingCalls%",category:"Calls",icon:"$(call-incoming)"},{command:"references-view.removeCallItem",title:"%cmd.references-view.removeCallItem%",icon:"$(close)"},{command:"references-view.next",title:"%cmd.references-view.next%",enablement:"references-view.canNavigate"},{command:"references-view.prev",title:"%cmd.references-view.prev%",enablement:"references-view.canNavigate"},{command:"references-view.showTypeHierarchy",title:"%cmd.references-view.showTypeHierarchy%",category:"Types"},{command:"references-view.showSupertypes",title:"%cmd.references-view.showSupertypes%",category:"Types",icon:"$(type-hierarchy-super)"},{command:"references-view.showSubtypes",title:"%cmd.references-view.showSubtypes%",category:"Types",icon:"$(type-hierarchy-sub)"},{command:"references-view.removeTypeItem",title:"%cmd.references-view.removeTypeItem%",icon:"$(close)"}],menus:{"editor/context":[{command:"references-view.findReferences",when:"editorHasReferenceProvider",group:"0_navigation@1"},{command:"references-view.findImplementations",when:"editorHasImplementationProvider",group:"0_navigation@2"},{command:"references-view.showCallHierarchy",when:"editorHasCallHierarchyProvider",group:"0_navigation@3"},{command:"references-view.showTypeHierarchy",when:"editorHasTypeHierarchyProvider",group:"0_navigation@4"}],"view/title":[{command:"references-view.clear",group:"navigation@3",when:"view == references-view.tree && reference-list.hasResult"},{command:"references-view.clearHistory",group:"navigation@3",when:"view == references-view.tree && reference-list.hasHistory && !reference-list.hasResult"},{command:"references-view.refresh",group:"navigation@2",when:"view == references-view.tree && reference-list.hasResult"},{command:"references-view.showOutgoingCalls",group:"navigation@1",when:"view == references-view.tree && reference-list.hasResult && reference-list.source == callHierarchy && references-view.callHierarchyMode == showIncoming"},{command:"references-view.showIncomingCalls",group:"navigation@1",when:"view == references-view.tree && reference-list.hasResult && reference-list.source == callHierarchy && references-view.callHierarchyMode == showOutgoing"},{command:"references-view.showSupertypes",group:"navigation@1",when:"view == references-view.tree && reference-list.hasResult && reference-list.source == typeHierarchy && references-view.typeHierarchyMode != supertypes"},{command:"references-view.showSubtypes",group:"navigation@1",when:"view == references-view.tree && reference-list.hasResult && reference-list.source == typeHierarchy && references-view.typeHierarchyMode != subtypes"}],"view/item/context":[{command:"references-view.removeReferenceItem",group:"inline",when:"view == references-view.tree && viewItem == file-item || view == references-view.tree && viewItem == reference-item"},{command:"references-view.removeCallItem",group:"inline",when:"view == references-view.tree && viewItem == call-item"},{command:"references-view.removeTypeItem",group:"inline",when:"view == references-view.tree && viewItem == type-item"},{command:"references-view.refind",group:"inline",when:"view == references-view.tree && viewItem == history-item"},{command:"references-view.removeReferenceItem",group:"1",when:"view == references-view.tree && viewItem == file-item || view == references-view.tree && viewItem == reference-item"},{command:"references-view.removeCallItem",group:"1",when:"view == references-view.tree && viewItem == call-item"},{command:"references-view.removeTypeItem",group:"1",when:"view == references-view.tree && viewItem == type-item"},{command:"references-view.refind",group:"1",when:"view == references-view.tree && viewItem == history-item"},{command:"references-view.copy",group:"2@1",when:"view == references-view.tree && viewItem == file-item || view == references-view.tree && viewItem == reference-item"},{command:"references-view.copyPath",group:"2@2",when:"view == references-view.tree && viewItem == file-item"},{command:"references-view.copyAll",group:"2@3",when:"view == references-view.tree && viewItem == file-item || view == references-view.tree && viewItem == reference-item"},{command:"references-view.showOutgoingCalls",group:"1",when:"view == references-view.tree && viewItem == call-item"},{command:"references-view.showIncomingCalls",group:"1",when:"view == references-view.tree && viewItem == call-item"},{command:"references-view.showSupertypes",group:"1",when:"view == references-view.tree && viewItem == type-item"},{command:"references-view.showSubtypes",group:"1",when:"view == references-view.tree && viewItem == type-item"}],commandPalette:[{command:"references-view.removeReferenceItem",when:"never"},{command:"references-view.removeCallItem",when:"never"},{command:"references-view.removeTypeItem",when:"never"},{command:"references-view.copy",when:"never"},{command:"references-view.copyAll",when:"never"},{command:"references-view.copyPath",when:"never"},{command:"references-view.refind",when:"never"},{command:"references-view.findReferences",when:"editorHasReferenceProvider"},{command:"references-view.clear",when:"reference-list.hasResult"},{command:"references-view.clearHistory",when:"reference-list.isActive && !reference-list.hasResult"},{command:"references-view.refresh",when:"reference-list.hasResult"},{command:"references-view.pickFromHistory",when:"reference-list.isActive"},{command:"references-view.next",when:"never"},{command:"references-view.prev",when:"never"}]},keybindings:[{command:"references-view.findReferences",when:"editorHasReferenceProvider",key:"shift+alt+f12"},{command:"references-view.next",when:"reference-list.hasResult",key:"f4"},{command:"references-view.prev",when:"reference-list.hasResult",key:"shift+f4"},{command:"references-view.showCallHierarchy",when:"editorHasCallHierarchyProvider",key:"shift+alt+h"}]}
|
|
3
|
+
var manifest = {name:"references-view",displayName:"%displayName%",description:"%description%",icon:"media/icon.png",version:"1.0.0",publisher:"vscode",license:"MIT",engines:{vscode:"^1.67.0"},capabilities:{virtualWorkspaces:true,untrustedWorkspaces:{supported:true}},repository:{type:"git",url:"https://github.com/Microsoft/vscode-references-view"},bugs:{url:"https://github.com/Microsoft/vscode-references-view/issues"},categories:["Programming Languages"],activationEvents:["onCommand:references-view.find","onCommand:editor.action.showReferences"],main:undefined,browser:"./dist/extension.js",contributes:{configuration:{properties:{"references.preferredLocation":{description:"%config.references.preferredLocation%",type:"string","default":"peek","enum":["peek","view"],enumDescriptions:["%config.references.preferredLocation.peek%","%config.references.preferredLocation.view%"]}}},viewsContainers:{activitybar:[{id:"references-view",icon:"$(references)",title:"%container.title%"}]},views:{"references-view":[{id:"references-view.tree",name:"%view.title%",when:"reference-list.isActive"}]},commands:[{command:"references-view.findReferences",title:"%cmd.references-view.findReferences%",category:"%cmd.category.references%"},{command:"references-view.findImplementations",title:"%cmd.references-view.findImplementations%",category:"%cmd.category.references%"},{command:"references-view.clearHistory",title:"%cmd.references-view.clearHistory%",category:"%cmd.category.references%",icon:"$(clear-all)"},{command:"references-view.clear",title:"%cmd.references-view.clear%",category:"%cmd.category.references%",icon:"$(clear-all)"},{command:"references-view.refresh",title:"%cmd.references-view.refresh%",category:"%cmd.category.references%",icon:"$(refresh)"},{command:"references-view.pickFromHistory",title:"%cmd.references-view.pickFromHistory%",category:"%cmd.category.references%"},{command:"references-view.removeReferenceItem",title:"%cmd.references-view.removeReferenceItem%",icon:"$(close)"},{command:"references-view.copy",title:"%cmd.references-view.copy%"},{command:"references-view.copyAll",title:"%cmd.references-view.copyAll%"},{command:"references-view.copyPath",title:"%cmd.references-view.copyPath%"},{command:"references-view.refind",title:"%cmd.references-view.refind%",icon:"$(refresh)"},{command:"references-view.showCallHierarchy",title:"%cmd.references-view.showCallHierarchy%",category:"Calls"},{command:"references-view.showOutgoingCalls",title:"%cmd.references-view.showOutgoingCalls%",category:"Calls",icon:"$(call-outgoing)"},{command:"references-view.showIncomingCalls",title:"%cmd.references-view.showIncomingCalls%",category:"Calls",icon:"$(call-incoming)"},{command:"references-view.removeCallItem",title:"%cmd.references-view.removeCallItem%",icon:"$(close)"},{command:"references-view.next",title:"%cmd.references-view.next%",enablement:"references-view.canNavigate"},{command:"references-view.prev",title:"%cmd.references-view.prev%",enablement:"references-view.canNavigate"},{command:"references-view.showTypeHierarchy",title:"%cmd.references-view.showTypeHierarchy%",category:"Types"},{command:"references-view.showSupertypes",title:"%cmd.references-view.showSupertypes%",category:"Types",icon:"$(type-hierarchy-super)"},{command:"references-view.showSubtypes",title:"%cmd.references-view.showSubtypes%",category:"Types",icon:"$(type-hierarchy-sub)"},{command:"references-view.removeTypeItem",title:"%cmd.references-view.removeTypeItem%",icon:"$(close)"}],menus:{"editor/context":[{command:"references-view.findReferences",when:"editorHasReferenceProvider",group:"0_navigation@1"},{command:"references-view.findImplementations",when:"editorHasImplementationProvider",group:"0_navigation@2"},{command:"references-view.showCallHierarchy",when:"editorHasCallHierarchyProvider",group:"0_navigation@3"},{command:"references-view.showTypeHierarchy",when:"editorHasTypeHierarchyProvider",group:"0_navigation@4"}],"view/title":[{command:"references-view.clear",group:"navigation@3",when:"view == references-view.tree && reference-list.hasResult"},{command:"references-view.clearHistory",group:"navigation@3",when:"view == references-view.tree && reference-list.hasHistory && !reference-list.hasResult"},{command:"references-view.refresh",group:"navigation@2",when:"view == references-view.tree && reference-list.hasResult"},{command:"references-view.showOutgoingCalls",group:"navigation@1",when:"view == references-view.tree && reference-list.hasResult && reference-list.source == callHierarchy && references-view.callHierarchyMode == showIncoming"},{command:"references-view.showIncomingCalls",group:"navigation@1",when:"view == references-view.tree && reference-list.hasResult && reference-list.source == callHierarchy && references-view.callHierarchyMode == showOutgoing"},{command:"references-view.showSupertypes",group:"navigation@1",when:"view == references-view.tree && reference-list.hasResult && reference-list.source == typeHierarchy && references-view.typeHierarchyMode != supertypes"},{command:"references-view.showSubtypes",group:"navigation@1",when:"view == references-view.tree && reference-list.hasResult && reference-list.source == typeHierarchy && references-view.typeHierarchyMode != subtypes"}],"view/item/context":[{command:"references-view.removeReferenceItem",group:"inline",when:"view == references-view.tree && viewItem == file-item || view == references-view.tree && viewItem == reference-item"},{command:"references-view.removeCallItem",group:"inline",when:"view == references-view.tree && viewItem == call-item"},{command:"references-view.removeTypeItem",group:"inline",when:"view == references-view.tree && viewItem == type-item"},{command:"references-view.refind",group:"inline",when:"view == references-view.tree && viewItem == history-item"},{command:"references-view.removeReferenceItem",group:"1",when:"view == references-view.tree && viewItem == file-item || view == references-view.tree && viewItem == reference-item"},{command:"references-view.removeCallItem",group:"1",when:"view == references-view.tree && viewItem == call-item"},{command:"references-view.removeTypeItem",group:"1",when:"view == references-view.tree && viewItem == type-item"},{command:"references-view.refind",group:"1",when:"view == references-view.tree && viewItem == history-item"},{command:"references-view.copy",group:"2@1",when:"view == references-view.tree && viewItem == file-item || view == references-view.tree && viewItem == reference-item"},{command:"references-view.copyPath",group:"2@2",when:"view == references-view.tree && viewItem == file-item"},{command:"references-view.copyAll",group:"2@3",when:"view == references-view.tree && viewItem == file-item || view == references-view.tree && viewItem == reference-item"},{command:"references-view.showOutgoingCalls",group:"1",when:"view == references-view.tree && viewItem == call-item"},{command:"references-view.showIncomingCalls",group:"1",when:"view == references-view.tree && viewItem == call-item"},{command:"references-view.showSupertypes",group:"1",when:"view == references-view.tree && viewItem == type-item"},{command:"references-view.showSubtypes",group:"1",when:"view == references-view.tree && viewItem == type-item"}],commandPalette:[{command:"references-view.removeReferenceItem",when:"never"},{command:"references-view.removeCallItem",when:"never"},{command:"references-view.removeTypeItem",when:"never"},{command:"references-view.copy",when:"never"},{command:"references-view.copyAll",when:"never"},{command:"references-view.copyPath",when:"never"},{command:"references-view.refind",when:"never"},{command:"references-view.findReferences",when:"editorHasReferenceProvider"},{command:"references-view.clear",when:"reference-list.hasResult"},{command:"references-view.clearHistory",when:"reference-list.isActive && !reference-list.hasResult"},{command:"references-view.refresh",when:"reference-list.hasResult"},{command:"references-view.pickFromHistory",when:"reference-list.isActive"},{command:"references-view.next",when:"never"},{command:"references-view.prev",when:"never"}]},keybindings:[{command:"references-view.findReferences",when:"editorHasReferenceProvider",key:"shift+alt+f12"},{command:"references-view.next",when:"reference-list.hasResult",key:"f4"},{command:"references-view.prev",when:"reference-list.hasResult",key:"shift+f4"},{command:"references-view.showCallHierarchy",when:"editorHasCallHierarchyProvider",key:"shift+alt+h"}]}};
|
|
4
4
|
|
|
5
5
|
const { registerFileUrl, whenReady } = registerExtension(manifest);
|
|
6
|
-
registerFileUrl('
|
|
7
|
-
registerFileUrl('
|
|
8
|
-
registerFileUrl('package.nls.json', new URL('./package.nls.json', import.meta.url).toString(), 'application/json');
|
|
6
|
+
registerFileUrl('README.md', new URL('./resources/README.md', import.meta.url).toString(), 'text/markdown');
|
|
7
|
+
registerFileUrl('package.json', new URL('./resources/package.json', import.meta.url).toString(), 'application/json');
|
|
8
|
+
registerFileUrl('package.nls.json', new URL('./resources/package.nls.json', import.meta.url).toString(), 'application/json');
|
|
9
|
+
registerFileUrl('dist/extension.js', new URL('./resources/extension.js', import.meta.url).toString(), 'application/javascript');
|
|
10
|
+
registerFileUrl('dist/extension', new URL('./resources/extension.js', import.meta.url).toString(), 'application/javascript');
|
|
11
|
+
registerFileUrl('dist/extension.js.map', new URL('./resources/extension.js.map', import.meta.url).toString(), 'application/json');
|
|
12
|
+
registerFileUrl('media/demo.png', new URL('./resources/demo.png', import.meta.url).toString(), 'image/png');
|
|
13
|
+
registerFileUrl('media/icon.png', new URL('./resources/icon.png', import.meta.url).toString(), 'image/png');
|
|
9
14
|
|
|
10
15
|
export { whenReady };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-references-view-default-extension",
|
|
3
|
-
"version": "1.85.
|
|
3
|
+
"version": "1.85.3",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@1.85.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@1.85.3"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# References View
|
|
2
|
+
|
|
3
|
+
This extension shows reference search results as separate view, just like search results. It complements the peek view presentation that is also built into VS Code. The following feature are available:
|
|
4
|
+
|
|
5
|
+
* List All References via the Command Palette, the Context Menu, or via <kbd>Alt+Shift+F12</kbd>
|
|
6
|
+
* View references in a dedicated tree view that sits in the sidebar
|
|
7
|
+
* Navigate through search results via <kbd>F4</kbd> and <kbd>Shift+F4</kbd>
|
|
8
|
+
* Remove references from the list via inline commands
|
|
9
|
+
|
|
10
|
+

|
|
11
|
+
|
|
12
|
+
**Note** that this extension is bundled with Visual Studio Code version 1.29 and later - it doesn't need to be installed anymore.
|
|
13
|
+
|
|
14
|
+
## Requirements
|
|
15
|
+
|
|
16
|
+
This extension is just an alternative UI for reference search and extensions implementing reference search must still be installed.
|
|
17
|
+
|
|
18
|
+
## Issues
|
|
19
|
+
|
|
20
|
+
This extension ships with Visual Studio Code and uses its issue tracker. Please file issue here: https://github.com/Microsoft/vscode/issues
|
|
21
|
+
|
|
22
|
+
# Contributing
|
|
23
|
+
|
|
24
|
+
This project welcomes contributions and suggestions. Most contributions require you to agree to a
|
|
25
|
+
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
|
|
26
|
+
the rights to use your contribution. For details, visit https://cla.microsoft.com.
|
|
27
|
+
|
|
28
|
+
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
|
|
29
|
+
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
|
|
30
|
+
provided by the bot. You will only need to do this once across all repos using our CLA.
|
|
31
|
+
|
|
32
|
+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
|
|
33
|
+
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
|
|
34
|
+
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(()=>{"use strict";var e={897:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.$n=void 0;const s=i(496),n=i(653),r=i(135);function o(e){e instanceof r.$m&&e.remove()}t.$n=function(e,t){const i=new a(t.workspaceState,0);function n(t,n){let o;i.value=t;const a=e.getInput();n instanceof r.$m?o=new r.$l(new s.Location(n.item.uri,n.item.selectionRange.start),i.value):a instanceof r.$l&&(o=new r.$l(a.location,i.value)),o&&e.setInput(o)}t.subscriptions.push(s.commands.registerCommand("references-view.showCallHierarchy",(function(){if(s.window.activeTextEditor){const t=new r.$l(new s.Location(s.window.activeTextEditor.document.uri,s.window.activeTextEditor.selection.active),i.value);e.setInput(t)}})),s.commands.registerCommand("references-view.showOutgoingCalls",(e=>n(1,e))),s.commands.registerCommand("references-view.showIncomingCalls",(e=>n(0,e))),s.commands.registerCommand("references-view.removeCallItem",o))};class a{constructor(e,t=1){this.c=e,this.d=t,this.b=new n.$g("references-view.callHierarchyMode");const i=e.get(a.a);this.value="number"==typeof i&&i>=0&&i<=1?i:t}get value(){return this.d}set value(e){this.d=e,this.b.set(0===this.d?"showIncoming":"showOutgoing"),this.c.update(a.a,e)}}a.a="references-view.callHierarchyMode"},135:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.$m=t.$l=void 0;const s=i(496),n=i(653);class r{constructor(e,t){this.location=e,this.direction=t,this.contextValue="callHierarchy",this.title=0===t?s.l10n.t("Callers Of"):s.l10n.t("Calls From")}async resolve(){const e=await Promise.resolve(s.commands.executeCommand("vscode.prepareCallHierarchy",this.location.uri,this.location.range.start)),t=new a(this.direction,e??[]),i=new c(t);if(0!==t.roots.length)return{provider:i,get message(){return 0===t.roots.length?s.l10n.t("No results."):void 0},navigation:t,highlights:t,dnd:t,dispose(){i.dispose()}}}with(e){return new r(e,this.direction)}}t.$l=r;class o{constructor(e,t,i,s){this.model=e,this.item=t,this.parent=i,this.locations=s}remove(){this.model.remove(this)}}t.$m=o;class a{constructor(e,t){this.direction=e,this.roots=[],this.a=new s.EventEmitter,this.onDidChange=this.a.event,this.roots=t.map((e=>new o(this,e,void 0,void 0)))}async b(e){if(0===this.direction){const t=await s.commands.executeCommand("vscode.provideIncomingCalls",e.item);return t?t.map((t=>new o(this,t.from,e,t.fromRanges.map((e=>new s.Location(t.from.uri,e)))))):[]}{const t=await s.commands.executeCommand("vscode.provideOutgoingCalls",e.item);return t?t.map((t=>new o(this,t.to,e,t.fromRanges.map((t=>new s.Location(e.item.uri,t)))))):[]}}async getCallChildren(e){return e.children||(e.children=await this.b(e)),e.children}location(e){return new s.Location(e.item.uri,e.item.range)}nearest(e,t){return this.roots.find((t=>t.item.uri.toString()===e.toString()))??this.roots[0]}next(e){return this.c(e,!0)??e}previous(e){return this.c(e,!1)??e}c(e,t){if(e.children?.length)return t?e.children[0]:(0,n.$c)(e.children);const i=this.roots.includes(e)?this.roots:e.parent?.children;if(i?.length){const s=i.indexOf(e);return i[s+(t?1:-1)+i.length%i.length]}}getDragUri(e){return(0,n.$d)(e.item.uri,e.item.range)}getEditorHighlights(e,t){return e.locations?e.locations.filter((e=>e.uri.toString()===t.toString())).map((e=>e.range)):e.item.uri.toString()===t.toString()?[e.item.selectionRange]:void 0}remove(e){const t=this.roots.includes(e)?this.roots:e.parent?.children;t&&((0,n.$b)(t,e),this.a.fire(this))}}class c{constructor(e){this.c=e,this.a=new s.EventEmitter,this.onDidChangeTreeData=this.a.event,this.b=e.onDidChange((e=>this.a.fire(e instanceof o?e:void 0)))}dispose(){this.a.dispose(),this.b.dispose()}getTreeItem(e){const t=new s.TreeItem(e.item.name);let i;if(t.description=e.item.detail,t.tooltip=t.label&&e.item.detail?`${t.label} - ${e.item.detail}`:t.label?`${t.label}`:e.item.detail,t.contextValue="call-item",t.iconPath=(0,n.$i)(e.item.kind),1===e.model.direction)i=[e.item.uri,{selection:e.item.selectionRange.with({end:e.item.selectionRange.start})}];else{let t;if(e.locations)for(const i of e.locations)i.uri.toString()===e.item.uri.toString()&&(t=t?.isBefore(i.range.start)?t:i.range.start);t||(t=e.item.selectionRange.start),i=[e.item.uri,{selection:new s.Range(t,t)}]}return t.command={command:"vscode.open",title:s.l10n.t("Open Call"),arguments:i},t.collapsibleState=s.TreeItemCollapsibleState.Collapsed,t}getChildren(e){return e?this.c.getCallChildren(e):this.c.roots}getParent(e){return e.parent}}},701:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.$a=void 0;const s=i(496);t.$a=class{constructor(e,t){this.d=e,this.f=t,this.a=s.window.createTextEditorDecorationType({backgroundColor:new s.ThemeColor("editor.findMatchHighlightBackground"),rangeBehavior:s.DecorationRangeBehavior.ClosedClosed,overviewRulerLane:s.OverviewRulerLane.Center,overviewRulerColor:new s.ThemeColor("editor.findMatchHighlightBackground")}),this.b=[],this.c=new Set,this.b.push(s.workspace.onDidChangeTextDocument((e=>this.c.add(e.document.uri.toString()))),s.window.onDidChangeActiveTextEditor((()=>e.visible&&this.update())),e.onDidChangeVisibility((e=>e.visible?this.g():this.h())),e.onDidChangeSelection((()=>{e.visible&&this.update()}))),this.g()}dispose(){s.Disposable.from(...this.b).dispose();for(const e of s.window.visibleTextEditors)e.setDecorations(this.a,[])}g(){const{activeTextEditor:e}=s.window;if(!e||!e.viewColumn)return;if(this.c.has(e.document.uri.toString()))return;const[t]=this.d.selection;if(!t)return;const i=this.f.getEditorHighlights(t,e.document.uri);i&&e.setDecorations(this.a,i)}h(){for(const e of s.window.visibleTextEditors)e.setDecorations(this.a,[])}update(){this.h(),this.g()}}},124:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.$j=void 0;const s=i(496),n=i(653);t.$j=class{constructor(e){this.d=e,this.a=[],this.b=new n.$g("references-view.canNavigate"),this.a.push(s.commands.registerCommand("references-view.next",(()=>this.next(!1))),s.commands.registerCommand("references-view.prev",(()=>this.previous(!1))))}dispose(){s.Disposable.from(...this.a).dispose()}update(e){this.c=e,this.b.set(Boolean(this.c))}e(){if(!this.c)return;const[e]=this.d.selection;return e||(s.window.activeTextEditor?this.c.nearest(s.window.activeTextEditor.document.uri,s.window.activeTextEditor.selection.active):void 0)}f(e,t){s.commands.executeCommand("vscode.open",e.uri,{selection:new s.Selection(e.range.start,e.range.start),preserveFocus:t})}previous(e){if(!this.c)return;const t=this.e();if(!t)return;const i=this.c.previous(t),s=this.c.location(i);s&&(this.d.reveal(i,{select:!0,focus:!0}),this.f(s,e))}next(e){if(!this.c)return;const t=this.e();if(!t)return;const i=this.c.next(t),s=this.c.location(i);s&&(this.d.reveal(i,{select:!0,focus:!0}),this.f(s,e))}}},538:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.$s=void 0;const s=i(496),n=i(521);t.$s=function(e,t){function i(t,i){if(s.window.activeTextEditor){const r=new n.$o(t,new s.Location(s.window.activeTextEditor.document.uri,s.window.activeTextEditor.selection.active),i);e.setInput(r)}}let h;t.subscriptions.push(s.commands.registerCommand("references-view.findReferences",(()=>i("References","vscode.executeReferenceProvider"))),s.commands.registerCommand("references-view.findImplementations",(()=>i("Implementations","vscode.executeImplementationProvider"))),s.commands.registerCommand("references-view.find",((...e)=>s.commands.executeCommand("references-view.findReferences",...e))),s.commands.registerCommand("references-view.removeReferenceItem",o),s.commands.registerCommand("references-view.copy",a),s.commands.registerCommand("references-view.copyAll",r),s.commands.registerCommand("references-view.copyPath",c));const l="references.preferredLocation";function d(t){if(t&&!t.affectsConfiguration(l))return;const i=s.workspace.getConfiguration().get(l);h?.dispose(),h=void 0,"view"===i&&(h=s.commands.registerCommand("editor.action.showReferences",(async(t,i,r)=>{const o=new n.$o(s.l10n.t("References"),new s.Location(t,i),"vscode.executeReferenceProvider",r);e.setInput(o)})))}t.subscriptions.push(s.workspace.onDidChangeConfiguration(d)),t.subscriptions.push({dispose:()=>h?.dispose()}),d()};const r=async e=>{e instanceof n.$r?a(e.file.model):e instanceof n.$q&&a(e.model)};function o(e){(e instanceof n.$q||e instanceof n.$r)&&e.remove()}async function a(e){let t;(e instanceof n.$p||e instanceof n.$r||e instanceof n.$q)&&(t=await e.asCopyText()),t&&await s.env.clipboard.writeText(t)}async function c(e){e instanceof n.$q&&("file"===e.uri.scheme?s.env.clipboard.writeText(e.uri.fsPath):s.env.clipboard.writeText(e.uri.toString(!0)))}},521:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.$r=t.$q=t.$p=t.$o=void 0;const s=i(496),n=i(653);class r{constructor(e,t,i,s){this.title=e,this.location=t,this.c=i,this.d=s,this.contextValue=i}async resolve(){let e;if(this.d)e=new o(this.d);else{const t=await Promise.resolve(s.commands.executeCommand(this.c,this.location.uri,this.location.range.start));e=new o(t??[])}if(0===e.items.length)return;const t=new a(e);return{provider:t,get message(){return e.message},navigation:e,highlights:e,dnd:e,dispose(){t.dispose()}}}with(e){return new r(this.title,e,this.c)}}t.$o=r;class o{constructor(e){let t;this.c=new s.EventEmitter,this.onDidChangeTreeData=this.c.event,this.items=[];for(const i of e.sort(o.e)){const e=i instanceof s.Location?i:new s.Location(i.targetUri,i.targetRange);t&&0===o.d(t.uri,e.uri)||(t=new c(e.uri.with({fragment:""}),[],this),this.items.push(t)),t.references.push(new h(e,t))}}static d(e,t){const i=e.with({fragment:""}).toString(),s=t.with({fragment:""}).toString();return i<s?-1:i>s?1:0}static e(e,t){const i=e instanceof s.Location?e.uri:e.targetUri,n=t instanceof s.Location?t.uri:t.targetUri;if(i.toString()<n.toString())return-1;if(i.toString()>n.toString())return 1;const r=e instanceof s.Location?e.range:e.targetRange,o=t instanceof s.Location?t.range:t.targetRange;return r.start.isBefore(o.start)?-1:r.start.isAfter(o.start)?1:0}get message(){if(0===this.items.length)return s.l10n.t("No results.");const e=this.items.reduce(((e,t)=>e+t.references.length),0),t=this.items.length;return 1===e&&1===t?s.l10n.t("{0} result in {1} file",e,t):1===e?s.l10n.t("{0} result in {1} files",e,t):1===t?s.l10n.t("{0} results in {1} file",e,t):s.l10n.t("{0} results in {1} files",e,t)}location(e){return e instanceof h?e.location:new s.Location(e.uri,e.references[0]?.location.range??new s.Position(0,0))}nearest(e,t){if(0===this.items.length)return;for(const i of this.items)if(i.uri.toString()===e.toString()){for(const e of i.references)if(e.location.range.contains(t))return e;let e;for(const s of i.references){if(s.location.range.end.isAfter(t))return s;e=s}if(e)return e;break}let i=0;const s=o.f(this.items[i].toString(),e.toString());for(let t=1;t<this.items.length;t++)o.f(this.items[t].uri.toString(),e.toString())>s&&(i=t);return this.items[i].references[0]}static f(e,t){let i=0;for(;i<e.length&&i<t.length&&e.charCodeAt(i)===t.charCodeAt(i);)i+=1;return i}next(e){return this.g(e,!0)??e}previous(e){return this.g(e,!1)??e}g(e,t){const i=t?1:-1,s=e=>{const t=(this.items.indexOf(e)+i+this.items.length)%this.items.length;return this.items[t]};if(e instanceof c)return t?s(e).references[0]:(0,n.$c)(s(e).references);if(e instanceof h){const t=e.file.references.indexOf(e)+i;return t<0?(0,n.$c)(s(e.file).references):t>=e.file.references.length?s(e.file).references[0]:e.file.references[t]}}getEditorHighlights(e,t){return this.items.find((e=>e.uri.toString()===t.toString()))?.references.map((e=>e.location.range))}remove(e){e instanceof c?((0,n.$b)(this.items,e),this.c.fire(void 0)):((0,n.$b)(e.file.references,e),0===e.file.references.length?((0,n.$b)(this.items,e.file),this.c.fire(void 0)):this.c.fire(e.file))}async asCopyText(){let e="";for(const t of this.items)e+=`${await t.asCopyText()}\n`;return e}getDragUri(e){return e instanceof c?e.uri:(0,n.$d)(e.file.uri,e.location.range)}}t.$p=o;class a{constructor(e){this.e=e,this.d=new s.EventEmitter,this.onDidChangeTreeData=this.d.event,this.c=e.onDidChangeTreeData((()=>this.d.fire(void 0)))}dispose(){this.d.dispose(),this.c.dispose()}async getTreeItem(e){if(e instanceof c){const t=new s.TreeItem(e.uri);return t.contextValue="file-item",t.description=!0,t.iconPath=s.ThemeIcon.File,t.collapsibleState=s.TreeItemCollapsibleState.Collapsed,t}{const{range:t}=e.location,i=await e.getDocument(!0),{before:r,inside:o,after:a}=(0,n.$f)(i,t),c={label:r+o+a,highlights:[[r.length,r.length+o.length]]},h=new s.TreeItem(c);return h.collapsibleState=s.TreeItemCollapsibleState.None,h.contextValue="reference-item",h.command={command:"vscode.open",title:s.l10n.t("Open Reference"),arguments:[e.location.uri,{selection:t.with({end:t.start})}]},h}}async getChildren(e){return e?e instanceof c?e.references:void 0:this.e.items}getParent(e){return e instanceof h?e.file:void 0}}class c{constructor(e,t,i){this.uri=e,this.references=t,this.model=i}remove(){this.model.remove(this)}async asCopyText(){let e=`${s.workspace.asRelativePath(this.uri)}\n`;for(const t of this.references)e+=` ${await t.asCopyText()}\n`;return e}}t.$q=c;class h{constructor(e,t){this.location=e,this.file=t}async getDocument(e){if(this.c||(this.c=s.workspace.openTextDocument(this.location.uri)),e){const e=this.file.model.next(this.file);e instanceof c&&e!==this.file?s.workspace.openTextDocument(e.uri):e instanceof h&&s.workspace.openTextDocument(e.location.uri)}return this.c}remove(){this.file.model.remove(this)}async asCopyText(){const e=await this.getDocument(),t=(0,n.$f)(e,this.location.range,21,!1);return`${this.location.range.start.line+1}, ${this.location.range.start.character+1}: ${t.before+t.inside+t.after}`}}t.$r=h},937:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.$k=void 0;const s=i(496),n=i(701),r=i(124),o=i(653);t.$k=class{constructor(){this.viewId="references-view.tree",this.a=new o.$g("reference-list.isActive"),this.b=new o.$g("reference-list.hasResult"),this.c=new o.$g("reference-list.source"),this.d=new l(this),this.e=new a,this.f=new c,this.g=s.window.createTreeView(this.viewId,{treeDataProvider:this.e,showCollapseAll:!0,dragAndDropController:this.f}),this.h=new r.$j(this.g)}dispose(){this.d.dispose(),this.g.dispose(),this.j?.dispose()}getInput(){return this.i}async setInput(e){if(!await(0,o.$e)(e.location.uri,e.location.range.start))return void this.clearInput();this.c.set(e.contextValue),this.a.set(!0),this.b.set(!0),s.commands.executeCommand(`${this.viewId}.focus`);const t=!this.i||Object.getPrototypeOf(this.i)!==Object.getPrototypeOf(e);this.i=e,this.j?.dispose(),this.g.title=e.title,this.g.message=t?void 0:this.g.message;const i=Promise.resolve(e.resolve());this.e.update(i.then((e=>e?.provider??this.d))),this.f.update(i.then((e=>e?.dnd)));const r=await i;if(this.i!==e)return;if(!r)return void this.clearInput();this.d.add(e),this.g.message=r.message,this.h.update(r.navigation);const a=r.navigation?.nearest(e.location.uri,e.location.range.start);a&&this.g.visible&&await this.g.reveal(a,{select:!0,focus:!0,expand:!0});const c=[];let h;r.highlights&&(h=new n.$a(this.g,r.highlights),c.push(h)),r.provider.onDidChangeTreeData&&c.push(r.provider.onDidChangeTreeData((()=>{this.g.title=e.title,this.g.message=r.message,h?.update()}))),"function"==typeof r.dispose&&c.push(new s.Disposable((()=>r.dispose()))),this.j=s.Disposable.from(...c)}clearInput(){this.j?.dispose(),this.i=void 0,this.b.set(!1),this.c.reset(),this.g.title=s.l10n.t("References"),this.g.message=0===this.d.size?s.l10n.t("No results."):s.l10n.t("No results. Try running a previous search again:"),this.e.update(Promise.resolve(this.d))}};class a{constructor(){this.b=new s.EventEmitter,this.onDidChangeTreeData=this.b.event}update(e){this.a?.dispose(),this.a=void 0,this.b.fire(void 0),this.provider=e,e.then((t=>{this.provider===e&&t.onDidChangeTreeData&&(this.a=t.onDidChangeTreeData(this.b.fire,this.b))})).catch((e=>{this.provider=void 0,console.error(e)}))}async getTreeItem(e){return this.c(),(await this.provider).getTreeItem(e)}async getChildren(e){return this.c(),(await this.provider).getChildren(e)}async getParent(e){this.c();const t=await this.provider;return t.getParent?t.getParent(e):void 0}c(){if(!this.provider)throw new Error("MISSING provider")}}class c{constructor(){this.dropMimeTypes=[],this.dragMimeTypes=["text/uri-list"]}update(e){this.a=void 0,e.then((e=>this.a=e))}handleDrag(e,t){if(this.a){const i=[];for(const t of e){const e=this.a.getDragUri(t);e&&i.push(e.toString())}i.length>0&&t.set("text/uri-list",new s.DataTransferItem(i.join("\r\n")))}}handleDrop(){throw new Error("Method not implemented.")}}class h{constructor(e,t,i,n){this.key=e,this.word=t,this.anchor=i,this.input=n,this.description=`${s.workspace.asRelativePath(n.location.uri)} • ${n.title.toLocaleLowerCase()}`}}class l{constructor(e){this.e=e,this.a=new s.EventEmitter,this.onDidChangeTreeData=this.a.event,this.b=[],this.c=new o.$g("reference-list.hasHistory"),this.d=new Map,this.b.push(s.commands.registerCommand("references-view.clear",(()=>e.clearInput())),s.commands.registerCommand("references-view.clearHistory",(()=>{this.clear(),e.clearInput()})),s.commands.registerCommand("references-view.refind",(e=>{e instanceof h&&this.f(e)})),s.commands.registerCommand("references-view.refresh",(()=>{const e=Array.from(this.d.values()).pop();e&&this.f(e)})),s.commands.registerCommand("_references-view.showHistoryItem",(async e=>{if(e instanceof h){const t=e.anchor.guessedTrackedPosition()??e.input.location.range.start;await s.commands.executeCommand("vscode.open",e.input.location.uri,{selection:new s.Range(t,t)})}})),s.commands.registerCommand("references-view.pickFromHistory",(async()=>{const e=(await this.getChildren()).map((e=>({label:e.word,description:e.description,item:e}))),t=await s.window.showQuickPick(e,{placeHolder:s.l10n.t("Select previous reference search")});t&&this.f(t.item)})))}dispose(){s.Disposable.from(...this.b).dispose(),this.a.dispose()}f(e){this.d.delete(e.key);const t=e.anchor.guessedTrackedPosition();let i=e.input;t&&!e.input.location.range.start.isEqual(t)&&(i=e.input.with(new s.Location(e.input.location.uri,t))),this.e.setInput(i)}async add(e){const t=await s.workspace.openTextDocument(e.location.uri),i=new o.$h(t,e.location.range.start),n=t.getWordRangeAtPosition(e.location.range.start)??t.getWordRangeAtPosition(e.location.range.start,/[^\s]+/),r=n?t.getText(n):"???",a=new h(JSON.stringify([n?.start??e.location.range.start,e.location.uri,e.title]),r,i,e);this.d.delete(a.key),this.d.set(a.key,a),this.c.set(!0)}clear(){this.d.clear(),this.c.set(!1),this.a.fire(void 0)}get size(){return this.d.size}getTreeItem(e){const t=new s.TreeItem(e.word);return t.description=e.description,t.command={command:"_references-view.showHistoryItem",arguments:[e],title:s.l10n.t("Rerun")},t.collapsibleState=s.TreeItemCollapsibleState.None,t.contextValue="history-item",t}getChildren(){return Promise.all([...this.d.values()].reverse())}getParent(){}}},156:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.$v=void 0;const s=i(496),n=i(653),r=i(622);function o(e){e instanceof r.$u&&e.remove()}t.$v=function(e,t){const i=new a(t.workspaceState,"subtypes");function n(t,n){let o;i.value=t;const a=e.getInput();n instanceof r.$u?o=new r.$t(new s.Location(n.item.uri,n.item.selectionRange.start),i.value):n instanceof s.Location?o=new r.$t(n,i.value):a instanceof r.$t&&(o=new r.$t(a.location,i.value)),o&&e.setInput(o)}t.subscriptions.push(s.commands.registerCommand("references-view.showTypeHierarchy",(function(){if(s.window.activeTextEditor){const t=new r.$t(new s.Location(s.window.activeTextEditor.document.uri,s.window.activeTextEditor.selection.active),i.value);e.setInput(t)}})),s.commands.registerCommand("references-view.showSupertypes",(e=>n("supertypes",e))),s.commands.registerCommand("references-view.showSubtypes",(e=>n("subtypes",e))),s.commands.registerCommand("references-view.removeTypeItem",o))};class a{constructor(e,t="subtypes"){this.c=e,this.d=t,this.b=new n.$g("references-view.typeHierarchyMode");const i=e.get(a.a);this.value="string"==typeof i?i:t}get value(){return this.d}set value(e){this.d=e,this.b.set(e),this.c.update(a.a,e)}}a.a="references-view.typeHierarchyMode"},622:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.$u=t.$t=void 0;const s=i(496),n=i(653);class r{constructor(e,t){this.location=e,this.direction=t,this.contextValue="typeHierarchy",this.title="supertypes"===t?s.l10n.t("Supertypes Of"):s.l10n.t("Subtypes Of")}async resolve(){const e=await Promise.resolve(s.commands.executeCommand("vscode.prepareTypeHierarchy",this.location.uri,this.location.range.start)),t=new a(this.direction,e??[]),i=new c(t);if(0!==t.roots.length)return{provider:i,get message(){return 0===t.roots.length?s.l10n.t("No results."):void 0},navigation:t,highlights:t,dnd:t,dispose(){i.dispose()}}}with(e){return new r(e,this.direction)}}t.$t=r;class o{constructor(e,t,i){this.model=e,this.item=t,this.parent=i}remove(){this.model.remove(this)}}t.$u=o;class a{constructor(e,t){this.direction=e,this.roots=[],this.a=new s.EventEmitter,this.onDidChange=this.a.event,this.roots=t.map((e=>new o(this,e,void 0)))}async b(e){if("supertypes"===this.direction){const t=await s.commands.executeCommand("vscode.provideSupertypes",e.item);return t?t.map((t=>new o(this,t,e))):[]}{const t=await s.commands.executeCommand("vscode.provideSubtypes",e.item);return t?t.map((t=>new o(this,t,e))):[]}}async getTypeChildren(e){return e.children||(e.children=await this.b(e)),e.children}getDragUri(e){return(0,n.$d)(e.item.uri,e.item.range)}location(e){return new s.Location(e.item.uri,e.item.range)}nearest(e,t){return this.roots.find((t=>t.item.uri.toString()===e.toString()))??this.roots[0]}next(e){return this.c(e,!0)??e}previous(e){return this.c(e,!1)??e}c(e,t){if(e.children?.length)return t?e.children[0]:(0,n.$c)(e.children);const i=this.roots.includes(e)?this.roots:e.parent?.children;if(i?.length){const s=i.indexOf(e);return i[s+(t?1:-1)+i.length%i.length]}}getEditorHighlights(e,t){return e.item.uri.toString()===t.toString()?[e.item.selectionRange]:void 0}remove(e){const t=this.roots.includes(e)?this.roots:e.parent?.children;t&&((0,n.$b)(t,e),this.a.fire(this))}}class c{constructor(e){this.c=e,this.a=new s.EventEmitter,this.onDidChangeTreeData=this.a.event,this.b=e.onDidChange((e=>this.a.fire(e instanceof o?e:void 0)))}dispose(){this.a.dispose(),this.b.dispose()}getTreeItem(e){const t=new s.TreeItem(e.item.name);return t.description=e.item.detail,t.contextValue="type-item",t.iconPath=(0,n.$i)(e.item.kind),t.command={command:"vscode.open",title:s.l10n.t("Open Type"),arguments:[e.item.uri,{selection:e.item.selectionRange.with({end:e.item.selectionRange.start})}]},t.collapsibleState=s.TreeItemCollapsibleState.Collapsed,t}getChildren(e){return e?this.c.getTypeChildren(e):this.c.roots}getParent(e){return e.parent}}},653:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.$i=t.$h=t.$g=t.$f=t.$e=t.$d=t.$c=t.$b=void 0;const s=i(496);t.$b=function(e,t){const i=e.indexOf(t);i>=0&&e.splice(i,1)},t.$c=function(e){return e[e.length-1]},t.$d=function(e,t){return e.with({fragment:`L${1+t.start.line},${1+t.start.character}-${1+t.end.line},${1+t.end.character}`})},t.$e=async function(e,t){const i=await s.workspace.openTextDocument(e);let n=i.getWordRangeAtPosition(t);return n||(n=i.getWordRangeAtPosition(t,/[^\s]+/)),Boolean(n)},t.$f=function(e,t,i=8,n=!0){const r=t.start.with({character:Math.max(0,t.start.character-i)}),o=e.getWordRangeAtPosition(r);let a=e.getText(new s.Range(o?o.start:r,t.start));const c=e.getText(t),h=t.end.translate(0,331);let l=e.getText(new s.Range(t.end,h));return n&&(a=a.replace(/^\s*/g,""),l=l.replace(/\s*$/g,"")),{before:a,inside:c,after:l}},t.$g=class{constructor(e){this.name=e}async set(e){await s.commands.executeCommand("setContext",this.name,e)}async reset(){await s.commands.executeCommand("setContext",this.name,void 0)}},t.$h=class{constructor(e,t){this.c=e,this.d=t,this.a=e.version,this.b=this.f(e,t)}f(e,t){const i=e.getWordRangeAtPosition(t)||e.getWordRangeAtPosition(t,/[^\s]+/);return i&&e.getText(i)}guessedTrackedPosition(){if(!this.b)return this.d;if(this.a===this.c.version)return this.d;const e=this.f(this.c,this.d);if(this.b===e)return this.d;const t=this.d.line;let i,n,r=0;do{if(n=!1,i=t+r,i<this.c.lineCount){n=!0;const e=this.c.lineAt(i).text.indexOf(this.b);if(e>=0)return new s.Position(i,e)}if(r+=1,i=t-r,i>=0){n=!0;const e=this.c.lineAt(i).text.indexOf(this.b);if(e>=0)return new s.Position(i,e)}}while(r<100&&n);return this.d}};const n=["symbol-file","symbol-module","symbol-namespace","symbol-package","symbol-class","symbol-method","symbol-property","symbol-field","symbol-constructor","symbol-enum","symbol-interface","symbol-function","symbol-variable","symbol-constant","symbol-string","symbol-number","symbol-boolean","symbol-array","symbol-object","symbol-key","symbol-null","symbol-enum-member","symbol-struct","symbol-event","symbol-operator","symbol-type-parameter"];t.$i=function(e){const t=n[e];return t?new s.ThemeIcon(t):void 0}},496:e=>{e.exports=require("vscode")}},t={};function i(s){var n=t[s];if(void 0!==n)return n.exports;var r=t[s]={exports:{}};return e[s](r,r.exports,i),r.exports}var s={};(()=>{var e=s;Object.defineProperty(e,"__esModule",{value:!0}),e.activate=void 0;const t=i(897),n=i(538),r=i(937),o=i(156);e.activate=function(e){const i=new r.$k;return n.$s(i,e),t.$n(i,e),o.$v(i,e),{setInput:function(e){i.setInput(e)},getInput:function(){return i.getInput()}}}})();var n=exports;for(var r in s)n[r]=s[r];s.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
|
2
|
+
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/af28b32d7e553898b2a91af498b1fb666fdebe0c/extensions/references-view/dist/extension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension.js","mappings":"qGAKA,eAEA,SACA,SAoCA,SAASA,EAAeC,GACnBA,aAAgB,EAAAC,IACnBD,EAAKE,SApCP,cAAmBC,EAAUC,GAE5B,MAAMC,EAAY,IAAIC,EAAmBF,EAAQG,eAAgB,GASjE,SAASC,EAAkBC,EAAuBC,GAGjD,IAAIC,EAFJN,EAAUI,MAAQA,EAGlB,MAAMG,EAAWT,EAAKU,WAClBH,aAAkB,EAAAT,GACrBU,EAAW,IAAI,EAAAG,GAAG,IAAIC,EAAOC,SAASN,EAAOV,KAAKiB,IAAKP,EAAOV,KAAKkB,eAAeC,OAAQd,EAAUI,OAC1FG,aAAoB,EAAAE,KAC9BH,EAAW,IAAI,EAAAG,GAAGF,EAASQ,SAAUf,EAAUI,QAE5CE,GACHR,EAAKkB,SAASV,GAIhBP,EAAQkB,cAAcC,KACrBR,EAAOS,SAASC,gBAAgB,qCAvBjC,WACC,GAAIV,EAAOW,OAAOC,iBAAkB,CACnC,MAAMC,EAAQ,IAAI,EAAAd,GAAG,IAAIC,EAAOC,SAASD,EAAOW,OAAOC,iBAAiBE,SAASZ,IAAKF,EAAOW,OAAOC,iBAAiBG,UAAUC,QAAS1B,EAAUI,OAClJN,EAAKkB,SAASO,OAqBfb,EAAOS,SAASC,gBAAgB,qCAAsCzB,GAAuBQ,EAAkB,EAAyBR,KACxIe,EAAOS,SAASC,gBAAgB,qCAAsCzB,GAAuBQ,EAAkB,EA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B,GAG/B,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBhR,IAAjBiR,EACH,OAAOA,EAAaL,QAGrB,IAAID,EAASG,EAAyBE,GAAY,CAGjDJ,QAAS,IAOV,OAHAM,EAAoBF,GAAUL,EAAQA,EAAOC,QAASG,GAG/CJ,EAAOC,Q,0FCff,eACA,SAEA,SACA,SAEA,oBAAyBlU,GAExB,MAAMD,EAAO,IAAI,EAAA0U,GAcjB,OAZA3I,EAAW4I,GAAG3U,EAAMC,GACpBmE,EAAMwQ,GAAG5U,EAAMC,GACf2S,EAAMiC,GAAG7U,EAAMC,GAUR,CAAEiB,SART,SAAkBO,GACjBzB,EAAKkB,SAASO,IAOIf,SAJnB,WACC,OAAOV,EAAKU,e","sources":["webpack://references-view/./src/calls/index.ts","webpack://references-view/./src/calls/model.ts","webpack://references-view/./src/highlights.ts","webpack://references-view/./src/navigation.ts","webpack://references-view/./src/references/index.ts","webpack://references-view/./src/references/model.ts","webpack://references-view/./src/tree.ts","webpack://references-view/./src/types/index.ts","webpack://references-view/./src/types/model.ts","webpack://references-view/./src/utils.ts","webpack://references-view/external commonjs \"vscode\"","webpack://references-view/webpack/bootstrap","webpack://references-view/./src/extension.ts"],"sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport * as vscode from 'vscode';\nimport { $k } from '../tree';\nimport { $g } from '../utils';\nimport { $m, CallsDirection, $l } from './model';\n\nexport function $n(tree: $k, context: vscode.ExtensionContext): void {\n\n\tconst direction = new RichCallsDirection(context.workspaceState, CallsDirection.Incoming);\n\n\tfunction showCallHierarchy() {\n\t\tif (vscode.window.activeTextEditor) {\n\t\t\tconst input = new $l(new vscode.Location(vscode.window.activeTextEditor.document.uri, vscode.window.activeTextEditor.selection.active), direction.value);\n\t\t\ttree.setInput(input);\n\t\t}\n\t}\n\n\tfunction setCallsDirection(value: CallsDirection, anchor: $m | unknown) {\n\t\tdirection.value = value;\n\n\t\tlet newInput: $l | undefined;\n\t\tconst oldInput = tree.getInput();\n\t\tif (anchor instanceof $m) {\n\t\t\tnewInput = new $l(new vscode.Location(anchor.item.uri, anchor.item.selectionRange.start), direction.value);\n\t\t} else if (oldInput instanceof $l) {\n\t\t\tnewInput = new $l(oldInput.location, direction.value);\n\t\t}\n\t\tif (newInput) {\n\t\t\ttree.setInput(newInput);\n\t\t}\n\t}\n\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('references-view.showCallHierarchy', showCallHierarchy),\n\t\tvscode.commands.registerCommand('references-view.showOutgoingCalls', (item: $m | unknown) => setCallsDirection(CallsDirection.Outgoing, item)),\n\t\tvscode.commands.registerCommand('references-view.showIncomingCalls', (item: $m | unknown) => setCallsDirection(CallsDirection.Incoming, item)),\n\t\tvscode.commands.registerCommand('references-view.removeCallItem', removeCallItem)\n\t);\n}\n\nfunction removeCallItem(item: $m | unknown): void {\n\tif (item instanceof $m) {\n\t\titem.remove();\n\t}\n}\n\nclass RichCallsDirection {\n\n\tprivate static a = 'references-view.callHierarchyMode';\n\n\tprivate b = new $g<'showIncoming' | 'showOutgoing'>('references-view.callHierarchyMode');\n\n\tconstructor(\n\t\tprivate c: vscode.Memento,\n\t\tprivate d: CallsDirection = CallsDirection.Outgoing,\n\t) {\n\t\tconst raw = c.get<number>(RichCallsDirection.a);\n\t\tif (typeof raw === 'number' && raw >= 0 && raw <= 1) {\n\t\t\tthis.value = raw;\n\t\t} else {\n\t\t\tthis.value = d;\n\t\t}\n\t}\n\n\tget value() {\n\t\treturn this.d;\n\t}\n\n\tset value(value: CallsDirection) {\n\t\tthis.d = value;\n\t\tthis.b.set(this.d === CallsDirection.Incoming ? 'showIncoming' : 'showOutgoing');\n\t\tthis.c.update(RichCallsDirection.a, value);\n\t}\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport * as vscode from 'vscode';\nimport { SymbolItemDragAndDrop, SymbolItemEditorHighlights, SymbolItemNavigation, SymbolTreeInput } from '../references-view';\nimport { $d, $b, $i, $c } from '../utils';\n\nexport class $l implements SymbolTreeInput<$m> {\n\n\treadonly title: string;\n\treadonly contextValue: string = 'callHierarchy';\n\n\tconstructor(\n\t\treadonly location: vscode.Location,\n\t\treadonly direction: CallsDirection,\n\t) {\n\t\tthis.title = direction === CallsDirection.Incoming\n\t\t\t? vscode.l10n.t('Callers Of')\n\t\t\t: vscode.l10n.t('Calls From');\n\t}\n\n\tasync resolve() {\n\n\t\tconst items = await Promise.resolve(vscode.commands.executeCommand<vscode.CallHierarchyItem[]>('vscode.prepareCallHierarchy', this.location.uri, this.location.range.start));\n\t\tconst model = new CallsModel(this.direction, items ?? []);\n\t\tconst provider = new CallItemDataProvider(model);\n\n\t\tif (model.roots.length === 0) {\n\t\t\treturn;\n\t\t}\n\n\t\treturn {\n\t\t\tprovider,\n\t\t\tget message() { return model.roots.length === 0 ? vscode.l10n.t('No results.') : undefined; },\n\t\t\tnavigation: model,\n\t\t\thighlights: model,\n\t\t\tdnd: model,\n\t\t\tdispose() {\n\t\t\t\tprovider.dispose();\n\t\t\t}\n\t\t};\n\t}\n\n\twith(location: vscode.Location): $l {\n\t\treturn new $l(location, this.direction);\n\t}\n}\n\n\nexport const enum CallsDirection {\n\tIncoming,\n\tOutgoing\n}\n\n\n\nexport class $m {\n\n\tchildren?: $m[];\n\n\tconstructor(\n\t\treadonly model: CallsModel,\n\t\treadonly item: vscode.CallHierarchyItem,\n\t\treadonly parent: $m | undefined,\n\t\treadonly locations: vscode.Location[] | undefined\n\t) { }\n\n\tremove(): void {\n\t\tthis.model.remove(this);\n\t}\n}\n\nclass CallsModel implements SymbolItemNavigation<$m>, SymbolItemEditorHighlights<$m>, SymbolItemDragAndDrop<$m> {\n\n\treadonly roots: $m[] = [];\n\n\tprivate readonly a = new vscode.EventEmitter<CallsModel>();\n\treadonly onDidChange = this.a.event;\n\n\tconstructor(readonly direction: CallsDirection, items: vscode.CallHierarchyItem[]) {\n\t\tthis.roots = items.map(item => new $m(this, item, undefined, undefined));\n\t}\n\n\tprivate async b(call: $m): Promise<$m[]> {\n\t\tif (this.direction === CallsDirection.Incoming) {\n\t\t\tconst calls = await vscode.commands.executeCommand<vscode.CallHierarchyIncomingCall[]>('vscode.provideIncomingCalls', call.item);\n\t\t\treturn calls ? calls.map(item => new $m(this, item.from, call, item.fromRanges.map(range => new vscode.Location(item.from.uri, range)))) : [];\n\t\t} else {\n\t\t\tconst calls = await vscode.commands.executeCommand<vscode.CallHierarchyOutgoingCall[]>('vscode.provideOutgoingCalls', call.item);\n\t\t\treturn calls ? calls.map(item => new $m(this, item.to, call, item.fromRanges.map(range => new vscode.Location(call.item.uri, range)))) : [];\n\t\t}\n\t}\n\n\tasync getCallChildren(call: $m): Promise<$m[]> {\n\t\tif (!call.children) {\n\t\t\tcall.children = await this.b(call);\n\t\t}\n\t\treturn call.children;\n\t}\n\n\t// -- navigation\n\n\tlocation(item: $m) {\n\t\treturn new vscode.Location(item.item.uri, item.item.range);\n\t}\n\n\tnearest(uri: vscode.Uri, _position: vscode.Position): $m | undefined {\n\t\treturn this.roots.find(item => item.item.uri.toString() === uri.toString()) ?? this.roots[0];\n\t}\n\n\tnext(from: $m): $m {\n\t\treturn this.c(from, true) ?? from;\n\t}\n\n\tprevious(from: $m): $m {\n\t\treturn this.c(from, false) ?? from;\n\t}\n\n\tprivate c(item: $m, fwd: boolean): $m | void {\n\t\tif (item.children?.length) {\n\t\t\treturn fwd ? item.children[0] : $c(item.children);\n\t\t}\n\t\tconst array = this.roots.includes(item) ? this.roots : item.parent?.children;\n\t\tif (array?.length) {\n\t\t\tconst idx = array.indexOf(item);\n\t\t\tconst delta = fwd ? 1 : -1;\n\t\t\treturn array[idx + delta + array.length % array.length];\n\t\t}\n\t}\n\n\t// --- dnd\n\n\tgetDragUri(item: $m): vscode.Uri | undefined {\n\t\treturn $d(item.item.uri, item.item.range);\n\t}\n\n\t// --- highlights\n\n\tgetEditorHighlights(item: $m, uri: vscode.Uri): vscode.Range[] | undefined {\n\t\tif (!item.locations) {\n\t\t\treturn item.item.uri.toString() === uri.toString() ? [item.item.selectionRange] : undefined;\n\t\t}\n\t\treturn item.locations\n\t\t\t.filter(loc => loc.uri.toString() === uri.toString())\n\t\t\t.map(loc => loc.range);\n\t}\n\n\tremove(item: $m) {\n\t\tconst isInRoot = this.roots.includes(item);\n\t\tconst siblings = isInRoot ? this.roots : item.parent?.children;\n\t\tif (siblings) {\n\t\t\t$b(siblings, item);\n\t\t\tthis.a.fire(this);\n\t\t}\n\t}\n}\n\nclass CallItemDataProvider implements vscode.TreeDataProvider<$m> {\n\n\tprivate readonly a = new vscode.EventEmitter<$m | undefined>();\n\treadonly onDidChangeTreeData = this.a.event;\n\n\tprivate readonly b: vscode.Disposable;\n\n\tconstructor(private c: CallsModel) {\n\t\tthis.b = c.onDidChange(e => this.a.fire(e instanceof $m ? e : undefined));\n\t}\n\n\tdispose(): void {\n\t\tthis.a.dispose();\n\t\tthis.b.dispose();\n\t}\n\n\tgetTreeItem(element: $m): vscode.TreeItem {\n\n\t\tconst item = new vscode.TreeItem(element.item.name);\n\t\titem.description = element.item.detail;\n\t\titem.tooltip = item.label && element.item.detail ? `${item.label} - ${element.item.detail}` : item.label ? `${item.label}` : element.item.detail;\n\t\titem.contextValue = 'call-item';\n\t\titem.iconPath = $i(element.item.kind);\n\n\t\ttype OpenArgs = [vscode.Uri, vscode.TextDocumentShowOptions];\n\t\tlet openArgs: OpenArgs;\n\n\t\tif (element.model.direction === CallsDirection.Outgoing) {\n\n\t\t\topenArgs = [element.item.uri, { selection: element.item.selectionRange.with({ end: element.item.selectionRange.start }) }];\n\n\t\t} else {\n\t\t\t// incoming call -> reveal first call instead of caller\n\t\t\tlet firstLoctionStart: vscode.Position | undefined;\n\t\t\tif (element.locations) {\n\t\t\t\tfor (const loc of element.locations) {\n\t\t\t\t\tif (loc.uri.toString() === element.item.uri.toString()) {\n\t\t\t\t\t\tfirstLoctionStart = firstLoctionStart?.isBefore(loc.range.start) ? firstLoctionStart : loc.range.start;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!firstLoctionStart) {\n\t\t\t\tfirstLoctionStart = element.item.selectionRange.start;\n\t\t\t}\n\t\t\topenArgs = [element.item.uri, { selection: new vscode.Range(firstLoctionStart, firstLoctionStart) }];\n\t\t}\n\n\t\titem.command = {\n\t\t\tcommand: 'vscode.open',\n\t\t\ttitle: vscode.l10n.t('Open Call'),\n\t\t\targuments: openArgs\n\t\t};\n\t\titem.collapsibleState = vscode.TreeItemCollapsibleState.Collapsed;\n\t\treturn item;\n\t}\n\n\tgetChildren(element?: $m | undefined) {\n\t\treturn element\n\t\t\t? this.c.getCallChildren(element)\n\t\t\t: this.c.roots;\n\t}\n\n\tgetParent(element: $m) {\n\t\treturn element.parent;\n\t}\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport * as vscode from 'vscode';\nimport { SymbolItemEditorHighlights } from './references-view';\n\nexport class $a<T> {\n\n\tprivate readonly a = vscode.window.createTextEditorDecorationType({\n\t\tbackgroundColor: new vscode.ThemeColor('editor.findMatchHighlightBackground'),\n\t\trangeBehavior: vscode.DecorationRangeBehavior.ClosedClosed,\n\t\toverviewRulerLane: vscode.OverviewRulerLane.Center,\n\t\toverviewRulerColor: new vscode.ThemeColor('editor.findMatchHighlightBackground'),\n\t});\n\n\tprivate readonly b: vscode.Disposable[] = [];\n\tprivate readonly c = new Set<string>();\n\n\tconstructor(private readonly d: vscode.TreeView<T>, private readonly f: SymbolItemEditorHighlights<T>) {\n\t\tthis.b.push(\n\t\t\tvscode.workspace.onDidChangeTextDocument(e => this.c.add(e.document.uri.toString())),\n\t\t\tvscode.window.onDidChangeActiveTextEditor(() => d.visible && this.update()),\n\t\t\td.onDidChangeVisibility(e => e.visible ? this.g() : this.h()),\n\t\t\td.onDidChangeSelection(() => {\n\t\t\t\tif (d.visible) {\n\t\t\t\t\tthis.update();\n\t\t\t\t}\n\t\t\t})\n\t\t);\n\t\tthis.g();\n\t}\n\n\tdispose() {\n\t\tvscode.Disposable.from(...this.b).dispose();\n\t\tfor (const editor of vscode.window.visibleTextEditors) {\n\t\t\teditor.setDecorations(this.a, []);\n\t\t}\n\t}\n\n\tprivate g(): void {\n\t\tconst { activeTextEditor: editor } = vscode.window;\n\t\tif (!editor || !editor.viewColumn) {\n\t\t\treturn;\n\t\t}\n\t\tif (this.c.has(editor.document.uri.toString())) {\n\t\t\treturn;\n\t\t}\n\t\tconst [anchor] = this.d.selection;\n\t\tif (!anchor) {\n\t\t\treturn;\n\t\t}\n\t\tconst ranges = this.f.getEditorHighlights(anchor, editor.document.uri);\n\t\tif (ranges) {\n\t\t\teditor.setDecorations(this.a, ranges);\n\t\t}\n\t}\n\n\tprivate h(): void {\n\t\tfor (const editor of vscode.window.visibleTextEditors) {\n\t\t\teditor.setDecorations(this.a, []);\n\t\t}\n\t}\n\n\tupdate(): void {\n\t\tthis.h();\n\t\tthis.g();\n\t}\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport * as vscode from 'vscode';\nimport { SymbolItemNavigation } from './references-view';\nimport { $g } from './utils';\n\nexport class $j {\n\n\tprivate readonly a: vscode.Disposable[] = [];\n\tprivate readonly b = new $g<boolean>('references-view.canNavigate');\n\n\tprivate c?: SymbolItemNavigation<unknown>;\n\n\tconstructor(private readonly d: vscode.TreeView<unknown>) {\n\t\tthis.a.push(\n\t\t\tvscode.commands.registerCommand('references-view.next', () => this.next(false)),\n\t\t\tvscode.commands.registerCommand('references-view.prev', () => this.previous(false)),\n\t\t);\n\t}\n\n\tdispose(): void {\n\t\tvscode.Disposable.from(...this.a).dispose();\n\t}\n\n\tupdate(delegate: SymbolItemNavigation<unknown> | undefined) {\n\t\tthis.c = delegate;\n\t\tthis.b.set(Boolean(this.c));\n\t}\n\n\tprivate e(): undefined | unknown {\n\t\tif (!this.c) {\n\t\t\treturn undefined;\n\t\t}\n\t\tconst [sel] = this.d.selection;\n\t\tif (sel) {\n\t\t\treturn sel;\n\t\t}\n\t\tif (!vscode.window.activeTextEditor) {\n\t\t\treturn undefined;\n\t\t}\n\t\treturn this.c.nearest(vscode.window.activeTextEditor.document.uri, vscode.window.activeTextEditor.selection.active);\n\t}\n\n\tprivate f(loc: vscode.Location, preserveFocus: boolean) {\n\t\tvscode.commands.executeCommand('vscode.open', loc.uri, {\n\t\t\tselection: new vscode.Selection(loc.range.start, loc.range.start),\n\t\t\tpreserveFocus\n\t\t});\n\t}\n\n\tprevious(preserveFocus: boolean): void {\n\t\tif (!this.c) {\n\t\t\treturn;\n\t\t}\n\t\tconst item = this.e();\n\t\tif (!item) {\n\t\t\treturn;\n\t\t}\n\t\tconst newItem = this.c.previous(item);\n\t\tconst newLocation = this.c.location(newItem);\n\t\tif (newLocation) {\n\t\t\tthis.d.reveal(newItem, { select: true, focus: true });\n\t\t\tthis.f(newLocation, preserveFocus);\n\t\t}\n\t}\n\n\tnext(preserveFocus: boolean): void {\n\t\tif (!this.c) {\n\t\t\treturn;\n\t\t}\n\t\tconst item = this.e();\n\t\tif (!item) {\n\t\t\treturn;\n\t\t}\n\t\tconst newItem = this.c.next(item);\n\t\tconst newLocation = this.c.location(newItem);\n\t\tif (newLocation) {\n\t\t\tthis.d.reveal(newItem, { select: true, focus: true });\n\t\t\tthis.f(newLocation, preserveFocus);\n\t\t}\n\t}\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport * as vscode from 'vscode';\nimport { $k } from '../tree';\nimport { $q, $r, $p, $o } from './model';\n\nexport function $s(tree: $k, context: vscode.ExtensionContext): void {\n\n\tfunction findLocations(title: string, command: string) {\n\t\tif (vscode.window.activeTextEditor) {\n\t\t\tconst input = new $o(title, new vscode.Location(vscode.window.activeTextEditor.document.uri, vscode.window.activeTextEditor.selection.active), command);\n\t\t\ttree.setInput(input);\n\t\t}\n\t}\n\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('references-view.findReferences', () => findLocations('References', 'vscode.executeReferenceProvider')),\n\t\tvscode.commands.registerCommand('references-view.findImplementations', () => findLocations('Implementations', 'vscode.executeImplementationProvider')),\n\t\t// --- legacy name\n\t\tvscode.commands.registerCommand('references-view.find', (...args: any[]) => vscode.commands.executeCommand('references-view.findReferences', ...args)),\n\t\tvscode.commands.registerCommand('references-view.removeReferenceItem', removeReferenceItem),\n\t\tvscode.commands.registerCommand('references-view.copy', copyCommand),\n\t\tvscode.commands.registerCommand('references-view.copyAll', copyAllCommand),\n\t\tvscode.commands.registerCommand('references-view.copyPath', copyPathCommand),\n\t);\n\n\n\t// --- references.preferredLocation setting\n\n\tlet showReferencesDisposable: vscode.Disposable | undefined;\n\tconst config = 'references.preferredLocation';\n\tfunction updateShowReferences(event?: vscode.ConfigurationChangeEvent) {\n\t\tif (event && !event.affectsConfiguration(config)) {\n\t\t\treturn;\n\t\t}\n\t\tconst value = vscode.workspace.getConfiguration().get<string>(config);\n\n\t\tshowReferencesDisposable?.dispose();\n\t\tshowReferencesDisposable = undefined;\n\n\t\tif (value === 'view') {\n\t\t\tshowReferencesDisposable = vscode.commands.registerCommand('editor.action.showReferences', async (uri: vscode.Uri, position: vscode.Position, locations: vscode.Location[]) => {\n\t\t\t\tconst input = new $o(vscode.l10n.t('References'), new vscode.Location(uri, position), 'vscode.executeReferenceProvider', locations);\n\t\t\t\ttree.setInput(input);\n\t\t\t});\n\t\t}\n\t}\n\tcontext.subscriptions.push(vscode.workspace.onDidChangeConfiguration(updateShowReferences));\n\tcontext.subscriptions.push({ dispose: () => showReferencesDisposable?.dispose() });\n\tupdateShowReferences();\n}\n\nconst copyAllCommand = async (item: $r | $q | unknown) => {\n\tif (item instanceof $r) {\n\t\tcopyCommand(item.file.model);\n\t} else if (item instanceof $q) {\n\t\tcopyCommand(item.model);\n\t}\n};\n\nfunction removeReferenceItem(item: $q | $r | unknown) {\n\tif (item instanceof $q) {\n\t\titem.remove();\n\t} else if (item instanceof $r) {\n\t\titem.remove();\n\t}\n}\n\n\nasync function copyCommand(item: $p | $r | $q | unknown) {\n\tlet val: string | undefined;\n\tif (item instanceof $p) {\n\t\tval = await item.asCopyText();\n\t} else if (item instanceof $r) {\n\t\tval = await item.asCopyText();\n\t} else if (item instanceof $q) {\n\t\tval = await item.asCopyText();\n\t}\n\tif (val) {\n\t\tawait vscode.env.clipboard.writeText(val);\n\t}\n}\n\nasync function copyPathCommand(item: $q | unknown) {\n\tif (item instanceof $q) {\n\t\tif (item.uri.scheme === 'file') {\n\t\t\tvscode.env.clipboard.writeText(item.uri.fsPath);\n\t\t} else {\n\t\t\tvscode.env.clipboard.writeText(item.uri.toString(true));\n\t\t}\n\t}\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport * as vscode from 'vscode';\nimport { SymbolItemDragAndDrop, SymbolItemEditorHighlights, SymbolItemNavigation, SymbolTreeInput, SymbolTreeModel } from '../references-view';\nimport { $d, $b, $f, $c } from '../utils';\n\nexport class $o implements SymbolTreeInput<$q | $r> {\n\n\treadonly contextValue: string;\n\n\tconstructor(\n\t\treadonly title: string,\n\t\treadonly location: vscode.Location,\n\t\tprivate readonly c: string,\n\t\tprivate readonly d?: vscode.Location[] | vscode.LocationLink[]\n\t) {\n\t\tthis.contextValue = c;\n\t}\n\n\tasync resolve() {\n\n\t\tlet model: $p;\n\t\tif (this.d) {\n\t\t\tmodel = new $p(this.d);\n\t\t} else {\n\t\t\tconst resut = await Promise.resolve(vscode.commands.executeCommand<vscode.Location[] | vscode.LocationLink[]>(this.c, this.location.uri, this.location.range.start));\n\t\t\tmodel = new $p(resut ?? []);\n\t\t}\n\n\t\tif (model.items.length === 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst provider = new ReferencesTreeDataProvider(model);\n\n\t\treturn <SymbolTreeModel<$q | $r>>{\n\t\t\tprovider,\n\t\t\tget message() { return model.message; },\n\t\t\tnavigation: model,\n\t\t\thighlights: model,\n\t\t\tdnd: model,\n\t\t\tdispose(): void {\n\t\t\t\tprovider.dispose();\n\t\t\t}\n\t\t};\n\t}\n\n\twith(location: vscode.Location): $o {\n\t\treturn new $o(this.title, location, this.c);\n\t}\n}\n\nexport class $p implements SymbolItemNavigation<$q | $r>, SymbolItemEditorHighlights<$q | $r>, SymbolItemDragAndDrop<$q | $r> {\n\n\tprivate c = new vscode.EventEmitter<$q | $r | undefined>();\n\treadonly onDidChangeTreeData = this.c.event;\n\n\treadonly items: $q[] = [];\n\n\tconstructor(locations: vscode.Location[] | vscode.LocationLink[]) {\n\t\tlet last: $q | undefined;\n\t\tfor (const item of locations.sort($p.e)) {\n\t\t\tconst loc = item instanceof vscode.Location\n\t\t\t\t? item\n\t\t\t\t: new vscode.Location(item.targetUri, item.targetRange);\n\n\t\t\tif (!last || $p.d(last.uri, loc.uri) !== 0) {\n\t\t\t\tlast = new $q(loc.uri.with({ fragment: '' }), [], this);\n\t\t\t\tthis.items.push(last);\n\t\t\t}\n\t\t\tlast.references.push(new $r(loc, last));\n\t\t}\n\t}\n\n\tprivate static d(a: vscode.Uri, b: vscode.Uri): number {\n\t\tconst aStr = a.with({ fragment: '' }).toString();\n\t\tconst bStr = b.with({ fragment: '' }).toString();\n\t\tif (aStr < bStr) {\n\t\t\treturn -1;\n\t\t} else if (aStr > bStr) {\n\t\t\treturn 1;\n\t\t}\n\t\treturn 0;\n\t}\n\n\tprivate static e(a: vscode.Location | vscode.LocationLink, b: vscode.Location | vscode.LocationLink): number {\n\t\tconst aUri = a instanceof vscode.Location ? a.uri : a.targetUri;\n\t\tconst bUri = b instanceof vscode.Location ? b.uri : b.targetUri;\n\t\tif (aUri.toString() < bUri.toString()) {\n\t\t\treturn -1;\n\t\t} else if (aUri.toString() > bUri.toString()) {\n\t\t\treturn 1;\n\t\t}\n\n\t\tconst aRange = a instanceof vscode.Location ? a.range : a.targetRange;\n\t\tconst bRange = b instanceof vscode.Location ? b.range : b.targetRange;\n\t\tif (aRange.start.isBefore(bRange.start)) {\n\t\t\treturn -1;\n\t\t} else if (aRange.start.isAfter(bRange.start)) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}\n\n\t// --- adapter\n\n\tget message() {\n\t\tif (this.items.length === 0) {\n\t\t\treturn vscode.l10n.t('No results.');\n\t\t}\n\t\tconst total = this.items.reduce((prev, cur) => prev + cur.references.length, 0);\n\t\tconst files = this.items.length;\n\t\tif (total === 1 && files === 1) {\n\t\t\treturn vscode.l10n.t('{0} result in {1} file', total, files);\n\t\t} else if (total === 1) {\n\t\t\treturn vscode.l10n.t('{0} result in {1} files', total, files);\n\t\t} else if (files === 1) {\n\t\t\treturn vscode.l10n.t('{0} results in {1} file', total, files);\n\t\t} else {\n\t\t\treturn vscode.l10n.t('{0} results in {1} files', total, files);\n\t\t}\n\t}\n\n\tlocation(item: $q | $r) {\n\t\treturn item instanceof $r\n\t\t\t? item.location\n\t\t\t: new vscode.Location(item.uri, item.references[0]?.location.range ?? new vscode.Position(0, 0));\n\t}\n\n\tnearest(uri: vscode.Uri, position: vscode.Position): $q | $r | undefined {\n\n\t\tif (this.items.length === 0) {\n\t\t\treturn;\n\t\t}\n\t\t// NOTE: this.items is sorted by location (uri/range)\n\t\tfor (const item of this.items) {\n\t\t\tif (item.uri.toString() === uri.toString()) {\n\t\t\t\t// (1) pick the item at the request position\n\t\t\t\tfor (const ref of item.references) {\n\t\t\t\t\tif (ref.location.range.contains(position)) {\n\t\t\t\t\t\treturn ref;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// (2) pick the first item after or last before the request position\n\t\t\t\tlet lastBefore: $r | undefined;\n\t\t\t\tfor (const ref of item.references) {\n\t\t\t\t\tif (ref.location.range.end.isAfter(position)) {\n\t\t\t\t\t\treturn ref;\n\t\t\t\t\t}\n\t\t\t\t\tlastBefore = ref;\n\t\t\t\t}\n\t\t\t\tif (lastBefore) {\n\t\t\t\t\treturn lastBefore;\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// (3) pick the file with the longest common prefix\n\t\tlet best = 0;\n\t\tconst bestValue = $p.f(this.items[best].toString(), uri.toString());\n\n\t\tfor (let i = 1; i < this.items.length; i++) {\n\t\t\tconst value = $p.f(this.items[i].uri.toString(), uri.toString());\n\t\t\tif (value > bestValue) {\n\t\t\t\tbest = i;\n\t\t\t}\n\t\t}\n\n\t\treturn this.items[best].references[0];\n\t}\n\n\tprivate static f(a: string, b: string): number {\n\t\tlet pos = 0;\n\t\twhile (pos < a.length && pos < b.length && a.charCodeAt(pos) === b.charCodeAt(pos)) {\n\t\t\tpos += 1;\n\t\t}\n\t\treturn pos;\n\t}\n\n\tnext(item: $q | $r): $q | $r {\n\t\treturn this.g(item, true) ?? item;\n\t}\n\n\tprevious(item: $q | $r): $q | $r {\n\t\treturn this.g(item, false) ?? item;\n\t}\n\n\tprivate g(item: $q | $r, fwd: boolean): $r | void {\n\n\t\tconst delta = fwd ? +1 : -1;\n\n\t\tconst _move = (item: $q): $q => {\n\t\t\tconst idx = (this.items.indexOf(item) + delta + this.items.length) % this.items.length;\n\t\t\treturn this.items[idx];\n\t\t};\n\n\t\tif (item instanceof $q) {\n\t\t\tif (fwd) {\n\t\t\t\treturn _move(item).references[0];\n\t\t\t} else {\n\t\t\t\treturn $c(_move(item).references);\n\t\t\t}\n\t\t}\n\n\t\tif (item instanceof $r) {\n\t\t\tconst idx = item.file.references.indexOf(item) + delta;\n\t\t\tif (idx < 0) {\n\t\t\t\treturn $c(_move(item.file).references);\n\t\t\t} else if (idx >= item.file.references.length) {\n\t\t\t\treturn _move(item.file).references[0];\n\t\t\t} else {\n\t\t\t\treturn item.file.references[idx];\n\t\t\t}\n\t\t}\n\t}\n\n\tgetEditorHighlights(_item: $q | $r, uri: vscode.Uri): vscode.Range[] | undefined {\n\t\tconst file = this.items.find(file => file.uri.toString() === uri.toString());\n\t\treturn file?.references.map(ref => ref.location.range);\n\t}\n\n\tremove(item: $q | $r) {\n\t\tif (item instanceof $q) {\n\t\t\t$b(this.items, item);\n\t\t\tthis.c.fire(undefined);\n\t\t} else {\n\t\t\t$b(item.file.references, item);\n\t\t\tif (item.file.references.length === 0) {\n\t\t\t\t$b(this.items, item.file);\n\t\t\t\tthis.c.fire(undefined);\n\t\t\t} else {\n\t\t\t\tthis.c.fire(item.file);\n\t\t\t}\n\t\t}\n\t}\n\n\tasync asCopyText() {\n\t\tlet result = '';\n\t\tfor (const item of this.items) {\n\t\t\tresult += `${await item.asCopyText()}\\n`;\n\t\t}\n\t\treturn result;\n\t}\n\n\tgetDragUri(item: $q | $r): vscode.Uri | undefined {\n\t\tif (item instanceof $q) {\n\t\t\treturn item.uri;\n\t\t} else {\n\t\t\treturn $d(item.file.uri, item.location.range);\n\t\t}\n\t}\n}\n\nclass ReferencesTreeDataProvider implements vscode.TreeDataProvider<$q | $r>{\n\n\tprivate readonly c: vscode.Disposable;\n\tprivate readonly d = new vscode.EventEmitter<$q | $r | undefined>();\n\n\treadonly onDidChangeTreeData = this.d.event;\n\n\tconstructor(private readonly e: $p) {\n\t\tthis.c = e.onDidChangeTreeData(() => this.d.fire(undefined));\n\t}\n\n\tdispose(): void {\n\t\tthis.d.dispose();\n\t\tthis.c.dispose();\n\t}\n\n\tasync getTreeItem(element: $q | $r) {\n\t\tif (element instanceof $q) {\n\t\t\t// files\n\t\t\tconst result = new vscode.TreeItem(element.uri);\n\t\t\tresult.contextValue = 'file-item';\n\t\t\tresult.description = true;\n\t\t\tresult.iconPath = vscode.ThemeIcon.File;\n\t\t\tresult.collapsibleState = vscode.TreeItemCollapsibleState.Collapsed;\n\t\t\treturn result;\n\n\t\t} else {\n\t\t\t// references\n\t\t\tconst { range } = element.location;\n\t\t\tconst doc = await element.getDocument(true);\n\t\t\tconst { before, inside, after } = $f(doc, range);\n\n\t\t\tconst label: vscode.TreeItemLabel = {\n\t\t\t\tlabel: before + inside + after,\n\t\t\t\thighlights: [[before.length, before.length + inside.length]]\n\t\t\t};\n\n\t\t\tconst result = new vscode.TreeItem(label);\n\t\t\tresult.collapsibleState = vscode.TreeItemCollapsibleState.None;\n\t\t\tresult.contextValue = 'reference-item';\n\t\t\tresult.command = {\n\t\t\t\tcommand: 'vscode.open',\n\t\t\t\ttitle: vscode.l10n.t('Open Reference'),\n\t\t\t\targuments: [\n\t\t\t\t\telement.location.uri,\n\t\t\t\t\t<vscode.TextDocumentShowOptions>{ selection: range.with({ end: range.start }) }\n\t\t\t\t]\n\t\t\t};\n\t\t\treturn result;\n\t\t}\n\t}\n\n\tasync getChildren(element?: $q | $r) {\n\t\tif (!element) {\n\t\t\treturn this.e.items;\n\t\t}\n\t\tif (element instanceof $q) {\n\t\t\treturn element.references;\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tgetParent(element: $q | $r) {\n\t\treturn element instanceof $r ? element.file : undefined;\n\t}\n}\n\nexport class $q {\n\n\tconstructor(\n\t\treadonly uri: vscode.Uri,\n\t\treadonly references: Array<$r>,\n\t\treadonly model: $p\n\t) { }\n\n\t// --- adapter\n\n\tremove(): void {\n\t\tthis.model.remove(this);\n\t}\n\n\tasync asCopyText() {\n\t\tlet result = `${vscode.workspace.asRelativePath(this.uri)}\\n`;\n\t\tfor (const ref of this.references) {\n\t\t\tresult += ` ${await ref.asCopyText()}\\n`;\n\t\t}\n\t\treturn result;\n\t}\n}\n\nexport class $r {\n\n\tprivate c: Thenable<vscode.TextDocument> | undefined;\n\n\tconstructor(\n\t\treadonly location: vscode.Location,\n\t\treadonly file: $q,\n\t) { }\n\n\tasync getDocument(warmUpNext?: boolean) {\n\t\tif (!this.c) {\n\t\t\tthis.c = vscode.workspace.openTextDocument(this.location.uri);\n\t\t}\n\t\tif (warmUpNext) {\n\t\t\t// load next document once this document has been loaded\n\t\t\tconst next = this.file.model.next(this.file);\n\t\t\tif (next instanceof $q && next !== this.file) {\n\t\t\t\tvscode.workspace.openTextDocument(next.uri);\n\t\t\t} else if (next instanceof $r) {\n\t\t\t\tvscode.workspace.openTextDocument(next.location.uri);\n\t\t\t}\n\t\t}\n\t\treturn this.c;\n\t}\n\n\t// --- adapter\n\n\tremove(): void {\n\t\tthis.file.model.remove(this);\n\t}\n\n\tasync asCopyText() {\n\t\tconst doc = await this.getDocument();\n\t\tconst chunks = $f(doc, this.location.range, 21, false);\n\t\treturn `${this.location.range.start.line + 1}, ${this.location.range.start.character + 1}: ${chunks.before + chunks.inside + chunks.after}`;\n\t}\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport * as vscode from 'vscode';\nimport { $a } from './highlights';\nimport { $j } from './navigation';\nimport { SymbolItemDragAndDrop, SymbolTreeInput } from './references-view';\nimport { $g, $e, $h } from './utils';\n\n\nexport class $k {\n\n\treadonly viewId = 'references-view.tree';\n\n\tprivate readonly a = new $g<boolean>('reference-list.isActive');\n\tprivate readonly b = new $g<boolean>('reference-list.hasResult');\n\tprivate readonly c = new $g<string>('reference-list.source');\n\n\tprivate readonly d = new TreeInputHistory(this);\n\tprivate readonly e = new TreeDataProviderDelegate();\n\tprivate readonly f = new TreeDndDelegate();\n\tprivate readonly g: vscode.TreeView<unknown>;\n\tprivate readonly h: $j;\n\n\tprivate i?: SymbolTreeInput<unknown>;\n\tprivate j?: vscode.Disposable;\n\n\tconstructor() {\n\t\tthis.g = vscode.window.createTreeView<unknown>(this.viewId, {\n\t\t\ttreeDataProvider: this.e,\n\t\t\tshowCollapseAll: true,\n\t\t\tdragAndDropController: this.f\n\t\t});\n\t\tthis.h = new $j(this.g);\n\t}\n\n\tdispose(): void {\n\t\tthis.d.dispose();\n\t\tthis.g.dispose();\n\t\tthis.j?.dispose();\n\t}\n\n\tgetInput(): SymbolTreeInput<unknown> | undefined {\n\t\treturn this.i;\n\t}\n\n\tasync setInput(input: SymbolTreeInput<unknown>) {\n\n\t\tif (!await $e(input.location.uri, input.location.range.start)) {\n\t\t\tthis.clearInput();\n\t\t\treturn;\n\t\t}\n\n\t\tthis.c.set(input.contextValue);\n\t\tthis.a.set(true);\n\t\tthis.b.set(true);\n\t\tvscode.commands.executeCommand(`${this.viewId}.focus`);\n\n\t\tconst newInputKind = !this.i || Object.getPrototypeOf(this.i) !== Object.getPrototypeOf(input);\n\t\tthis.i = input;\n\t\tthis.j?.dispose();\n\n\t\tthis.g.title = input.title;\n\t\tthis.g.message = newInputKind ? undefined : this.g.message;\n\n\t\tconst modelPromise = Promise.resolve(input.resolve());\n\n\t\t// set promise to tree data provider to trigger tree loading UI\n\t\tthis.e.update(modelPromise.then(model => model?.provider ?? this.d));\n\t\tthis.f.update(modelPromise.then(model => model?.dnd));\n\n\t\tconst model = await modelPromise;\n\t\tif (this.i !== input) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!model) {\n\t\t\tthis.clearInput();\n\t\t\treturn;\n\t\t}\n\n\t\tthis.d.add(input);\n\t\tthis.g.message = model.message;\n\n\t\t// navigation\n\t\tthis.h.update(model.navigation);\n\n\t\t// reveal & select\n\t\tconst selection = model.navigation?.nearest(input.location.uri, input.location.range.start);\n\t\tif (selection && this.g.visible) {\n\t\t\tawait this.g.reveal(selection, { select: true, focus: true, expand: true });\n\t\t}\n\n\t\tconst disposables: vscode.Disposable[] = [];\n\n\t\t// editor highlights\n\t\tlet highlights: $a<unknown> | undefined;\n\t\tif (model.highlights) {\n\t\t\thighlights = new $a(this.g, model.highlights);\n\t\t\tdisposables.push(highlights);\n\t\t}\n\n\t\t// listener\n\t\tif (model.provider.onDidChangeTreeData) {\n\t\t\tdisposables.push(model.provider.onDidChangeTreeData(() => {\n\t\t\t\tthis.g.title = input.title;\n\t\t\t\tthis.g.message = model.message;\n\t\t\t\thighlights?.update();\n\t\t\t}));\n\t\t}\n\t\tif (typeof model.dispose === 'function') {\n\t\t\tdisposables.push(new vscode.Disposable(() => model.dispose!()));\n\t\t}\n\t\tthis.j = vscode.Disposable.from(...disposables);\n\t}\n\n\tclearInput(): void {\n\t\tthis.j?.dispose();\n\t\tthis.i = undefined;\n\t\tthis.b.set(false);\n\t\tthis.c.reset();\n\t\tthis.g.title = vscode.l10n.t('References');\n\t\tthis.g.message = this.d.size === 0\n\t\t\t? vscode.l10n.t('No results.')\n\t\t\t: vscode.l10n.t('No results. Try running a previous search again:');\n\t\tthis.e.update(Promise.resolve(this.d));\n\t}\n}\n\n// --- tree data\n\ninterface ActiveTreeDataProviderWrapper {\n\tprovider: Promise<vscode.TreeDataProvider<any>>;\n}\n\nclass TreeDataProviderDelegate implements vscode.TreeDataProvider<undefined> {\n\n\tprovider?: Promise<vscode.TreeDataProvider<any>>;\n\n\tprivate a?: vscode.Disposable;\n\tprivate b = new vscode.EventEmitter<any>();\n\n\treadonly onDidChangeTreeData = this.b.event;\n\n\tupdate(provider: Promise<vscode.TreeDataProvider<any>>) {\n\n\t\tthis.a?.dispose();\n\t\tthis.a = undefined;\n\n\t\tthis.b.fire(undefined);\n\n\t\tthis.provider = provider;\n\n\t\tprovider.then(value => {\n\t\t\tif (this.provider === provider && value.onDidChangeTreeData) {\n\t\t\t\tthis.a = value.onDidChangeTreeData(this.b.fire, this.b);\n\t\t\t}\n\t\t}).catch(err => {\n\t\t\tthis.provider = undefined;\n\t\t\tconsole.error(err);\n\t\t});\n\t}\n\n\tasync getTreeItem(element: unknown) {\n\t\tthis.c();\n\t\treturn (await this.provider).getTreeItem(element);\n\t}\n\n\tasync getChildren(parent?: unknown | undefined) {\n\t\tthis.c();\n\t\treturn (await this.provider).getChildren(parent);\n\t}\n\n\tasync getParent(element: unknown) {\n\t\tthis.c();\n\t\tconst provider = await this.provider;\n\t\treturn provider.getParent ? provider.getParent(element) : undefined;\n\t}\n\n\tprivate c(): asserts this is ActiveTreeDataProviderWrapper {\n\t\tif (!this.provider) {\n\t\t\tthrow new Error('MISSING provider');\n\t\t}\n\t}\n}\n\n// --- tree dnd\n\nclass TreeDndDelegate implements vscode.TreeDragAndDropController<undefined> {\n\n\tprivate a: SymbolItemDragAndDrop<undefined> | undefined;\n\n\treadonly dropMimeTypes: string[] = [];\n\n\treadonly dragMimeTypes: string[] = ['text/uri-list'];\n\n\tupdate(delegate: Promise<SymbolItemDragAndDrop<unknown> | undefined>) {\n\t\tthis.a = undefined;\n\t\tdelegate.then(value => this.a = value);\n\t}\n\n\thandleDrag(source: undefined[], data: vscode.DataTransfer) {\n\t\tif (this.a) {\n\t\t\tconst urls: string[] = [];\n\t\t\tfor (const item of source) {\n\t\t\t\tconst uri = this.a.getDragUri(item);\n\t\t\t\tif (uri) {\n\t\t\t\t\turls.push(uri.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (urls.length > 0) {\n\t\t\t\tdata.set('text/uri-list', new vscode.DataTransferItem(urls.join('\\r\\n')));\n\t\t\t}\n\t\t}\n\t}\n\n\thandleDrop(): void | Thenable<void> {\n\t\tthrow new Error('Method not implemented.');\n\t}\n}\n\n// --- history\n\nclass HistoryItem {\n\n\treadonly description: string;\n\n\tconstructor(\n\t\treadonly key: string,\n\t\treadonly word: string,\n\t\treadonly anchor: $h,\n\t\treadonly input: SymbolTreeInput<unknown>,\n\t) {\n\t\tthis.description = `${vscode.workspace.asRelativePath(input.location.uri)} • ${input.title.toLocaleLowerCase()}`;\n\t}\n}\n\nclass TreeInputHistory implements vscode.TreeDataProvider<HistoryItem>{\n\n\tprivate readonly a = new vscode.EventEmitter<HistoryItem | undefined>();\n\treadonly onDidChangeTreeData = this.a.event;\n\n\tprivate readonly b: vscode.Disposable[] = [];\n\tprivate readonly c = new $g<boolean>('reference-list.hasHistory');\n\tprivate readonly d = new Map<string, HistoryItem>();\n\n\tconstructor(private readonly e: $k) {\n\n\t\tthis.b.push(\n\t\t\tvscode.commands.registerCommand('references-view.clear', () => e.clearInput()),\n\t\t\tvscode.commands.registerCommand('references-view.clearHistory', () => {\n\t\t\t\tthis.clear();\n\t\t\t\te.clearInput();\n\t\t\t}),\n\t\t\tvscode.commands.registerCommand('references-view.refind', (item) => {\n\t\t\t\tif (item instanceof HistoryItem) {\n\t\t\t\t\tthis.f(item);\n\t\t\t\t}\n\t\t\t}),\n\t\t\tvscode.commands.registerCommand('references-view.refresh', () => {\n\t\t\t\tconst item = Array.from(this.d.values()).pop();\n\t\t\t\tif (item) {\n\t\t\t\t\tthis.f(item);\n\t\t\t\t}\n\t\t\t}),\n\t\t\tvscode.commands.registerCommand('_references-view.showHistoryItem', async (item) => {\n\t\t\t\tif (item instanceof HistoryItem) {\n\t\t\t\t\tconst position = item.anchor.guessedTrackedPosition() ?? item.input.location.range.start;\n\t\t\t\t\tawait vscode.commands.executeCommand('vscode.open', item.input.location.uri, { selection: new vscode.Range(position, position) });\n\t\t\t\t}\n\t\t\t}),\n\t\t\tvscode.commands.registerCommand('references-view.pickFromHistory', async () => {\n\t\t\t\tinterface HistoryPick extends vscode.QuickPickItem {\n\t\t\t\t\titem: HistoryItem;\n\t\t\t\t}\n\t\t\t\tconst entries = await this.getChildren();\n\t\t\t\tconst picks = entries.map(item => <HistoryPick>{\n\t\t\t\t\tlabel: item.word,\n\t\t\t\t\tdescription: item.description,\n\t\t\t\t\titem\n\t\t\t\t});\n\t\t\t\tconst pick = await vscode.window.showQuickPick(picks, { placeHolder: vscode.l10n.t('Select previous reference search') });\n\t\t\t\tif (pick) {\n\t\t\t\t\tthis.f(pick.item);\n\t\t\t\t}\n\t\t\t}),\n\t\t);\n\t}\n\n\tdispose(): void {\n\t\tvscode.Disposable.from(...this.b).dispose();\n\t\tthis.a.dispose();\n\t}\n\n\tprivate f(item: HistoryItem): void {\n\t\tthis.d.delete(item.key);\n\t\tconst newPosition = item.anchor.guessedTrackedPosition();\n\t\tlet newInput = item.input;\n\t\t// create a new input when having a tracked position which is\n\t\t// different than the original position.\n\t\tif (newPosition && !item.input.location.range.start.isEqual(newPosition)) {\n\t\t\tnewInput = item.input.with(new vscode.Location(item.input.location.uri, newPosition));\n\t\t}\n\t\tthis.e.setInput(newInput);\n\t}\n\n\tasync add(input: SymbolTreeInput<unknown>) {\n\n\t\tconst doc = await vscode.workspace.openTextDocument(input.location.uri);\n\n\t\tconst anchor = new $h(doc, input.location.range.start);\n\t\tconst range = doc.getWordRangeAtPosition(input.location.range.start) ?? doc.getWordRangeAtPosition(input.location.range.start, /[^\\s]+/);\n\t\tconst word = range ? doc.getText(range) : '???';\n\n\t\tconst item = new HistoryItem(JSON.stringify([range?.start ?? input.location.range.start, input.location.uri, input.title]), word, anchor, input);\n\t\t// use filo-ordering of native maps\n\t\tthis.d.delete(item.key);\n\t\tthis.d.set(item.key, item);\n\t\tthis.c.set(true);\n\t}\n\n\tclear(): void {\n\t\tthis.d.clear();\n\t\tthis.c.set(false);\n\t\tthis.a.fire(undefined);\n\t}\n\n\tget size() {\n\t\treturn this.d.size;\n\t}\n\n\t// --- tree data provider\n\n\tgetTreeItem(item: HistoryItem): vscode.TreeItem {\n\t\tconst result = new vscode.TreeItem(item.word);\n\t\tresult.description = item.description;\n\t\tresult.command = { command: '_references-view.showHistoryItem', arguments: [item], title: vscode.l10n.t('Rerun') };\n\t\tresult.collapsibleState = vscode.TreeItemCollapsibleState.None;\n\t\tresult.contextValue = 'history-item';\n\t\treturn result;\n\t}\n\n\tgetChildren() {\n\t\treturn Promise.all([...this.d.values()].reverse());\n\t}\n\n\tgetParent() {\n\t\treturn undefined;\n\t}\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport * as vscode from 'vscode';\nimport { $k } from '../tree';\nimport { $g } from '../utils';\nimport { TypeHierarchyDirection, $u, $t } from './model';\n\nexport function $v(tree: $k, context: vscode.ExtensionContext): void {\n\n\tconst direction = new RichTypesDirection(context.workspaceState, TypeHierarchyDirection.Subtypes);\n\n\tfunction showTypeHierarchy() {\n\t\tif (vscode.window.activeTextEditor) {\n\t\t\tconst input = new $t(new vscode.Location(vscode.window.activeTextEditor.document.uri, vscode.window.activeTextEditor.selection.active), direction.value);\n\t\t\ttree.setInput(input);\n\t\t}\n\t}\n\n\tfunction setTypeHierarchyDirection(value: TypeHierarchyDirection, anchor: $u | vscode.Location | unknown) {\n\t\tdirection.value = value;\n\n\t\tlet newInput: $t | undefined;\n\t\tconst oldInput = tree.getInput();\n\t\tif (anchor instanceof $u) {\n\t\t\tnewInput = new $t(new vscode.Location(anchor.item.uri, anchor.item.selectionRange.start), direction.value);\n\t\t} else if (anchor instanceof vscode.Location) {\n\t\t\tnewInput = new $t(anchor, direction.value);\n\t\t} else if (oldInput instanceof $t) {\n\t\t\tnewInput = new $t(oldInput.location, direction.value);\n\t\t}\n\t\tif (newInput) {\n\t\t\ttree.setInput(newInput);\n\t\t}\n\t}\n\n\tcontext.subscriptions.push(\n\t\tvscode.commands.registerCommand('references-view.showTypeHierarchy', showTypeHierarchy),\n\t\tvscode.commands.registerCommand('references-view.showSupertypes', (item: $u | vscode.Location | unknown) => setTypeHierarchyDirection(TypeHierarchyDirection.Supertypes, item)),\n\t\tvscode.commands.registerCommand('references-view.showSubtypes', (item: $u | vscode.Location | unknown) => setTypeHierarchyDirection(TypeHierarchyDirection.Subtypes, item)),\n\t\tvscode.commands.registerCommand('references-view.removeTypeItem', removeTypeItem)\n\t);\n}\n\nfunction removeTypeItem(item: $u | unknown): void {\n\tif (item instanceof $u) {\n\t\titem.remove();\n\t}\n}\n\nclass RichTypesDirection {\n\n\tprivate static a = 'references-view.typeHierarchyMode';\n\n\tprivate b = new $g<TypeHierarchyDirection>('references-view.typeHierarchyMode');\n\n\tconstructor(\n\t\tprivate c: vscode.Memento,\n\t\tprivate d: TypeHierarchyDirection = TypeHierarchyDirection.Subtypes,\n\t) {\n\t\tconst raw = c.get<TypeHierarchyDirection>(RichTypesDirection.a);\n\t\tif (typeof raw === 'string') {\n\t\t\tthis.value = raw;\n\t\t} else {\n\t\t\tthis.value = d;\n\t\t}\n\t}\n\n\tget value() {\n\t\treturn this.d;\n\t}\n\n\tset value(value: TypeHierarchyDirection) {\n\t\tthis.d = value;\n\t\tthis.b.set(value);\n\t\tthis.c.update(RichTypesDirection.a, value);\n\t}\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport * as vscode from 'vscode';\nimport { SymbolItemDragAndDrop, SymbolItemEditorHighlights, SymbolItemNavigation, SymbolTreeInput } from '../references-view';\nimport { $d, $b, $i, $c } from '../utils';\n\nexport class $t implements SymbolTreeInput<$u> {\n\n\treadonly title: string;\n\treadonly contextValue: string = 'typeHierarchy';\n\n\tconstructor(\n\t\treadonly location: vscode.Location,\n\t\treadonly direction: TypeHierarchyDirection,\n\t) {\n\t\tthis.title = direction === TypeHierarchyDirection.Supertypes\n\t\t\t? vscode.l10n.t('Supertypes Of')\n\t\t\t: vscode.l10n.t('Subtypes Of');\n\t}\n\n\tasync resolve() {\n\n\t\tconst items = await Promise.resolve(vscode.commands.executeCommand<vscode.TypeHierarchyItem[]>('vscode.prepareTypeHierarchy', this.location.uri, this.location.range.start));\n\t\tconst model = new TypesModel(this.direction, items ?? []);\n\t\tconst provider = new TypeItemDataProvider(model);\n\n\t\tif (model.roots.length === 0) {\n\t\t\treturn;\n\t\t}\n\n\t\treturn {\n\t\t\tprovider,\n\t\t\tget message() { return model.roots.length === 0 ? vscode.l10n.t('No results.') : undefined; },\n\t\t\tnavigation: model,\n\t\t\thighlights: model,\n\t\t\tdnd: model,\n\t\t\tdispose() {\n\t\t\t\tprovider.dispose();\n\t\t\t}\n\t\t};\n\t}\n\n\twith(location: vscode.Location): $t {\n\t\treturn new $t(location, this.direction);\n\t}\n}\n\n\nexport const enum TypeHierarchyDirection {\n\tSubtypes = 'subtypes',\n\tSupertypes = 'supertypes'\n}\n\n\nexport class $u {\n\n\tchildren?: $u[];\n\n\tconstructor(\n\t\treadonly model: TypesModel,\n\t\treadonly item: vscode.TypeHierarchyItem,\n\t\treadonly parent: $u | undefined,\n\t) { }\n\n\tremove(): void {\n\t\tthis.model.remove(this);\n\t}\n}\n\nclass TypesModel implements SymbolItemNavigation<$u>, SymbolItemEditorHighlights<$u>, SymbolItemDragAndDrop<$u> {\n\n\treadonly roots: $u[] = [];\n\n\tprivate readonly a = new vscode.EventEmitter<TypesModel>();\n\treadonly onDidChange = this.a.event;\n\n\tconstructor(readonly direction: TypeHierarchyDirection, items: vscode.TypeHierarchyItem[]) {\n\t\tthis.roots = items.map(item => new $u(this, item, undefined));\n\t}\n\n\tprivate async b(currentType: $u): Promise<$u[]> {\n\t\tif (this.direction === TypeHierarchyDirection.Supertypes) {\n\t\t\tconst types = await vscode.commands.executeCommand<vscode.TypeHierarchyItem[]>('vscode.provideSupertypes', currentType.item);\n\t\t\treturn types ? types.map(item => new $u(this, item, currentType)) : [];\n\t\t} else {\n\t\t\tconst types = await vscode.commands.executeCommand<vscode.TypeHierarchyItem[]>('vscode.provideSubtypes', currentType.item);\n\t\t\treturn types ? types.map(item => new $u(this, item, currentType)) : [];\n\t\t}\n\t}\n\n\tasync getTypeChildren(item: $u): Promise<$u[]> {\n\t\tif (!item.children) {\n\t\t\titem.children = await this.b(item);\n\t\t}\n\t\treturn item.children;\n\t}\n\n\t// -- dnd\n\n\tgetDragUri(item: $u): vscode.Uri | undefined {\n\t\treturn $d(item.item.uri, item.item.range);\n\t}\n\n\t// -- navigation\n\n\tlocation(currentType: $u) {\n\t\treturn new vscode.Location(currentType.item.uri, currentType.item.range);\n\t}\n\n\tnearest(uri: vscode.Uri, _position: vscode.Position): $u | undefined {\n\t\treturn this.roots.find(item => item.item.uri.toString() === uri.toString()) ?? this.roots[0];\n\t}\n\n\tnext(from: $u): $u {\n\t\treturn this.c(from, true) ?? from;\n\t}\n\n\tprevious(from: $u): $u {\n\t\treturn this.c(from, false) ?? from;\n\t}\n\n\tprivate c(item: $u, fwd: boolean): $u | void {\n\t\tif (item.children?.length) {\n\t\t\treturn fwd ? item.children[0] : $c(item.children);\n\t\t}\n\t\tconst array = this.roots.includes(item) ? this.roots : item.parent?.children;\n\t\tif (array?.length) {\n\t\t\tconst idx = array.indexOf(item);\n\t\t\tconst delta = fwd ? 1 : -1;\n\t\t\treturn array[idx + delta + array.length % array.length];\n\t\t}\n\t}\n\n\t// --- highlights\n\n\tgetEditorHighlights(currentType: $u, uri: vscode.Uri): vscode.Range[] | undefined {\n\t\treturn currentType.item.uri.toString() === uri.toString() ? [currentType.item.selectionRange] : undefined;\n\t}\n\n\tremove(item: $u) {\n\t\tconst isInRoot = this.roots.includes(item);\n\t\tconst siblings = isInRoot ? this.roots : item.parent?.children;\n\t\tif (siblings) {\n\t\t\t$b(siblings, item);\n\t\t\tthis.a.fire(this);\n\t\t}\n\t}\n}\n\nclass TypeItemDataProvider implements vscode.TreeDataProvider<$u> {\n\n\tprivate readonly a = new vscode.EventEmitter<$u | undefined>();\n\treadonly onDidChangeTreeData = this.a.event;\n\n\tprivate readonly b: vscode.Disposable;\n\n\tconstructor(private c: TypesModel) {\n\t\tthis.b = c.onDidChange(e => this.a.fire(e instanceof $u ? e : undefined));\n\t}\n\n\tdispose(): void {\n\t\tthis.a.dispose();\n\t\tthis.b.dispose();\n\t}\n\n\tgetTreeItem(element: $u): vscode.TreeItem {\n\n\t\tconst item = new vscode.TreeItem(element.item.name);\n\t\titem.description = element.item.detail;\n\t\titem.contextValue = 'type-item';\n\t\titem.iconPath = $i(element.item.kind);\n\t\titem.command = {\n\t\t\tcommand: 'vscode.open',\n\t\t\ttitle: vscode.l10n.t('Open Type'),\n\t\t\targuments: [\n\t\t\t\telement.item.uri,\n\t\t\t\t<vscode.TextDocumentShowOptions>{ selection: element.item.selectionRange.with({ end: element.item.selectionRange.start }) }\n\t\t\t]\n\t\t};\n\t\titem.collapsibleState = vscode.TreeItemCollapsibleState.Collapsed;\n\t\treturn item;\n\t}\n\n\tgetChildren(element?: $u | undefined) {\n\t\treturn element\n\t\t\t? this.c.getTypeChildren(element)\n\t\t\t: this.c.roots;\n\t}\n\n\tgetParent(element: $u) {\n\t\treturn element.parent;\n\t}\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport * as vscode from 'vscode';\n\nexport function $b<T>(array: T[], e: T): void {\n\tconst idx = array.indexOf(e);\n\tif (idx >= 0) {\n\t\tarray.splice(idx, 1);\n\t}\n}\n\nexport function $c<T>(array: T[]): T | undefined {\n\treturn array[array.length - 1];\n}\n\nexport function $d(uri: vscode.Uri, range: vscode.Range): vscode.Uri {\n\treturn uri.with({ fragment: `L${1 + range.start.line},${1 + range.start.character}-${1 + range.end.line},${1 + range.end.character}` });\n}\n\nexport async function $e(uri: vscode.Uri, position: vscode.Position) {\n\tconst doc = await vscode.workspace.openTextDocument(uri);\n\tlet range = doc.getWordRangeAtPosition(position);\n\tif (!range) {\n\t\trange = doc.getWordRangeAtPosition(position, /[^\\s]+/);\n\t}\n\treturn Boolean(range);\n}\n\nexport function $f(doc: vscode.TextDocument, range: vscode.Range, beforeLen: number = 8, trim: boolean = true) {\n\tconst previewStart = range.start.with({ character: Math.max(0, range.start.character - beforeLen) });\n\tconst wordRange = doc.getWordRangeAtPosition(previewStart);\n\tlet before = doc.getText(new vscode.Range(wordRange ? wordRange.start : previewStart, range.start));\n\tconst inside = doc.getText(range);\n\tconst previewEnd = range.end.translate(0, 331);\n\tlet after = doc.getText(new vscode.Range(range.end, previewEnd));\n\tif (trim) {\n\t\tbefore = before.replace(/^\\s*/g, '');\n\t\tafter = after.replace(/\\s*$/g, '');\n\t}\n\treturn { before, inside, after };\n}\n\nexport class $g<V> {\n\n\tconstructor(readonly name: string) { }\n\n\tasync set(value: V) {\n\t\tawait vscode.commands.executeCommand('setContext', this.name, value);\n\t}\n\n\tasync reset() {\n\t\tawait vscode.commands.executeCommand('setContext', this.name, undefined);\n\t}\n}\n\nexport class $h {\n\n\tprivate readonly a: number;\n\tprivate readonly b: string | undefined;\n\n\tconstructor(private readonly c: vscode.TextDocument, private readonly d: vscode.Position) {\n\t\tthis.a = c.version;\n\t\tthis.b = this.f(c, d);\n\t}\n\n\tprivate f(doc: vscode.TextDocument, pos: vscode.Position): string | undefined {\n\t\tconst range = doc.getWordRangeAtPosition(pos) || doc.getWordRangeAtPosition(pos, /[^\\s]+/);\n\t\treturn range && doc.getText(range);\n\t}\n\n\tguessedTrackedPosition(): vscode.Position | undefined {\n\t\t// funky entry\n\t\tif (!this.b) {\n\t\t\treturn this.d;\n\t\t}\n\n\t\t// no changes\n\t\tif (this.a === this.c.version) {\n\t\t\treturn this.d;\n\t\t}\n\n\t\t// no changes here...\n\t\tconst wordNow = this.f(this.c, this.d);\n\t\tif (this.b === wordNow) {\n\t\t\treturn this.d;\n\t\t}\n\n\t\t// changes: search _word downwards and upwards\n\t\tconst startLine = this.d.line;\n\t\tlet i = 0;\n\t\tlet line: number;\n\t\tlet checked: boolean;\n\t\tdo {\n\t\t\tchecked = false;\n\t\t\t// nth line down\n\t\t\tline = startLine + i;\n\t\t\tif (line < this.c.lineCount) {\n\t\t\t\tchecked = true;\n\t\t\t\tconst ch = this.c.lineAt(line).text.indexOf(this.b);\n\t\t\t\tif (ch >= 0) {\n\t\t\t\t\treturn new vscode.Position(line, ch);\n\t\t\t\t}\n\t\t\t}\n\t\t\ti += 1;\n\t\t\t// nth line up\n\t\t\tline = startLine - i;\n\t\t\tif (line >= 0) {\n\t\t\t\tchecked = true;\n\t\t\t\tconst ch = this.c.lineAt(line).text.indexOf(this.b);\n\t\t\t\tif (ch >= 0) {\n\t\t\t\t\treturn new vscode.Position(line, ch);\n\t\t\t\t}\n\t\t\t}\n\t\t} while (i < 100 && checked);\n\n\t\t// fallback\n\t\treturn this.d;\n\t}\n}\n\n// vscode.SymbolKind.File === 0, Module === 1, etc...\nconst _themeIconIds = [\n\t'symbol-file', 'symbol-module', 'symbol-namespace', 'symbol-package', 'symbol-class', 'symbol-method',\n\t'symbol-property', 'symbol-field', 'symbol-constructor', 'symbol-enum', 'symbol-interface',\n\t'symbol-function', 'symbol-variable', 'symbol-constant', 'symbol-string', 'symbol-number', 'symbol-boolean',\n\t'symbol-array', 'symbol-object', 'symbol-key', 'symbol-null', 'symbol-enum-member', 'symbol-struct',\n\t'symbol-event', 'symbol-operator', 'symbol-type-parameter'\n];\n\nexport function $i(kind: vscode.SymbolKind): vscode.ThemeIcon | undefined {\n\tconst id = _themeIconIds[kind];\n\treturn id ? new vscode.ThemeIcon(id) : undefined;\n}\n","module.exports = require(\"vscode\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport * as vscode from 'vscode';\nimport * as calls from './calls';\nimport * as references from './references';\nimport { SymbolTree, SymbolTreeInput } from './references-view';\nimport { $k } from './tree';\nimport * as types from './types';\n\nexport function activate(context: vscode.ExtensionContext): SymbolTree {\n\n\tconst tree = new $k();\n\n\treferences.$s(tree, context);\n\tcalls.$n(tree, context);\n\ttypes.$v(tree, context);\n\n\tfunction setInput(input: SymbolTreeInput<unknown>) {\n\t\ttree.setInput(input);\n\t}\n\n\tfunction getInput(): SymbolTreeInput<unknown> | undefined {\n\t\treturn tree.getInput();\n\t}\n\n\treturn { setInput, getInput };\n}\n"],"names":["removeCallItem","item","$m","remove","tree","context","direction","RichCallsDirection","workspaceState","setCallsDirection","value","anchor","newInput","oldInput","getInput","$l","vscode","Location","uri","selectionRange","start","location","setInput","subscriptions","push","commands","registerCommand","window","activeTextEditor","input","document","selection","active","constructor","c","d","b","$g","raw","get","a","this","set","update","contextValue","title","l10n","t","items","Promise","resolve","executeCommand","range","model","CallsModel","provider","CallItemDataProvider","roots","length","undefined","navigation","highlights","dnd","dispose","with","parent","locations","EventEmitter","onDidChange","event","map","call","calls","from","fromRanges","to","children","nearest","_position","find","toString","next","previous","fwd","$c","array","includes","idx","indexOf","getDragUri","$d","getEditorHighlights","filter","loc","siblings","$b","fire","onDidChangeTreeData","e","getTreeItem","element","TreeItem","name","openArgs","description","detail","tooltip","label","iconPath","$i","kind","end","firstLoctionStart","isBefore","Range","command","arguments","collapsibleState","TreeItemCollapsibleState","Collapsed","getChildren","getCallChildren","getParent","f","createTextEditorDecorationType","backgroundColor","ThemeColor","rangeBehavior","DecorationRangeBehavior","ClosedClosed","overviewRulerLane","OverviewRulerLane","Center","overviewRulerColor","Set","workspace","onDidChangeTextDocument","add","onDidChangeActiveTextEditor","visible","onDidChangeVisibility","g","h","onDidChangeSelection","Disposable","editor","visibleTextEditors","setDecorations","viewColumn","has","ranges","delegate","Boolean","sel","preserveFocus","Selection","newItem","newLocation","reveal","select","focus","findLocations","$o","showReferencesDisposable","args","removeReferenceItem","copyCommand","copyAllCommand","copyPathCommand","config","updateShowReferences","affectsConfiguration","getConfiguration","async","position","onDidChangeConfiguration","$r","file","$q","val","$p","asCopyText","env","clipboard","writeText","scheme","fsPath","resut","ReferencesTreeDataProvider","message","last","sort","targetUri","targetRange","fragment","references","aStr","bStr","aUri","bUri","aRange","bRange","isAfter","total","reduce","prev","cur","files","Position","ref","contains","lastBefore","best","bestValue","i","pos","charCodeAt","delta","_move","_item","result","ThemeIcon","File","doc","getDocument","before","inside","after","$f","None","asRelativePath","warmUpNext","openTextDocument","chunks","line","character","viewId","TreeInputHistory","TreeDataProviderDelegate","TreeDndDelegate","createTreeView","treeDataProvider","showCollapseAll","dragAndDropController","$j","j","$e","clearInput","newInputKind","Object","getPrototypeOf","modelPromise","then","expand","disposables","$a","reset","size","catch","err","console","error","Error","dropMimeTypes","dragMimeTypes","handleDrag","source","data","urls","DataTransferItem","join","handleDrop","HistoryItem","key","word","toLocaleLowerCase","Map","clear","Array","values","pop","guessedTrackedPosition","picks","pick","showQuickPick","placeHolder","delete","newPosition","isEqual","$h","getWordRangeAtPosition","getText","JSON","stringify","all","reverse","removeTypeItem","$u","RichTypesDirection","setTypeHierarchyDirection","$t","TypesModel","TypeItemDataProvider","currentType","types","getTypeChildren","splice","beforeLen","trim","previewStart","Math","max","wordRange","previewEnd","translate","replace","version","wordNow","startLine","checked","lineCount","ch","lineAt","text","_themeIconIds","id","module","exports","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","$k","$s","$n","$v"],"sourceRoot":""}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"references-view","displayName":"%displayName%","description":"%description%","icon":"media/icon.png","version":"1.0.0","publisher":"vscode","license":"MIT","engines":{"vscode":"^1.67.0"},"capabilities":{"virtualWorkspaces":true,"untrustedWorkspaces":{"supported":true}},"repository":{"type":"git","url":"https://github.com/Microsoft/vscode-references-view"},"bugs":{"url":"https://github.com/Microsoft/vscode-references-view/issues"},"categories":["Programming Languages"],"activationEvents":["onCommand:references-view.find","onCommand:editor.action.showReferences"],"main":"./dist/extension","browser":"./dist/extension.js","contributes":{"configuration":{"properties":{"references.preferredLocation":{"description":"%config.references.preferredLocation%","type":"string","default":"peek","enum":["peek","view"],"enumDescriptions":["%config.references.preferredLocation.peek%","%config.references.preferredLocation.view%"]}}},"viewsContainers":{"activitybar":[{"id":"references-view","icon":"$(references)","title":"%container.title%"}]},"views":{"references-view":[{"id":"references-view.tree","name":"%view.title%","when":"reference-list.isActive"}]},"commands":[{"command":"references-view.findReferences","title":"%cmd.references-view.findReferences%","category":"%cmd.category.references%"},{"command":"references-view.findImplementations","title":"%cmd.references-view.findImplementations%","category":"%cmd.category.references%"},{"command":"references-view.clearHistory","title":"%cmd.references-view.clearHistory%","category":"%cmd.category.references%","icon":"$(clear-all)"},{"command":"references-view.clear","title":"%cmd.references-view.clear%","category":"%cmd.category.references%","icon":"$(clear-all)"},{"command":"references-view.refresh","title":"%cmd.references-view.refresh%","category":"%cmd.category.references%","icon":"$(refresh)"},{"command":"references-view.pickFromHistory","title":"%cmd.references-view.pickFromHistory%","category":"%cmd.category.references%"},{"command":"references-view.removeReferenceItem","title":"%cmd.references-view.removeReferenceItem%","icon":"$(close)"},{"command":"references-view.copy","title":"%cmd.references-view.copy%"},{"command":"references-view.copyAll","title":"%cmd.references-view.copyAll%"},{"command":"references-view.copyPath","title":"%cmd.references-view.copyPath%"},{"command":"references-view.refind","title":"%cmd.references-view.refind%","icon":"$(refresh)"},{"command":"references-view.showCallHierarchy","title":"%cmd.references-view.showCallHierarchy%","category":"Calls"},{"command":"references-view.showOutgoingCalls","title":"%cmd.references-view.showOutgoingCalls%","category":"Calls","icon":"$(call-outgoing)"},{"command":"references-view.showIncomingCalls","title":"%cmd.references-view.showIncomingCalls%","category":"Calls","icon":"$(call-incoming)"},{"command":"references-view.removeCallItem","title":"%cmd.references-view.removeCallItem%","icon":"$(close)"},{"command":"references-view.next","title":"%cmd.references-view.next%","enablement":"references-view.canNavigate"},{"command":"references-view.prev","title":"%cmd.references-view.prev%","enablement":"references-view.canNavigate"},{"command":"references-view.showTypeHierarchy","title":"%cmd.references-view.showTypeHierarchy%","category":"Types"},{"command":"references-view.showSupertypes","title":"%cmd.references-view.showSupertypes%","category":"Types","icon":"$(type-hierarchy-super)"},{"command":"references-view.showSubtypes","title":"%cmd.references-view.showSubtypes%","category":"Types","icon":"$(type-hierarchy-sub)"},{"command":"references-view.removeTypeItem","title":"%cmd.references-view.removeTypeItem%","icon":"$(close)"}],"menus":{"editor/context":[{"command":"references-view.findReferences","when":"editorHasReferenceProvider","group":"0_navigation@1"},{"command":"references-view.findImplementations","when":"editorHasImplementationProvider","group":"0_navigation@2"},{"command":"references-view.showCallHierarchy","when":"editorHasCallHierarchyProvider","group":"0_navigation@3"},{"command":"references-view.showTypeHierarchy","when":"editorHasTypeHierarchyProvider","group":"0_navigation@4"}],"view/title":[{"command":"references-view.clear","group":"navigation@3","when":"view == references-view.tree && reference-list.hasResult"},{"command":"references-view.clearHistory","group":"navigation@3","when":"view == references-view.tree && reference-list.hasHistory && !reference-list.hasResult"},{"command":"references-view.refresh","group":"navigation@2","when":"view == references-view.tree && reference-list.hasResult"},{"command":"references-view.showOutgoingCalls","group":"navigation@1","when":"view == references-view.tree && reference-list.hasResult && reference-list.source == callHierarchy && references-view.callHierarchyMode == showIncoming"},{"command":"references-view.showIncomingCalls","group":"navigation@1","when":"view == references-view.tree && reference-list.hasResult && reference-list.source == callHierarchy && references-view.callHierarchyMode == showOutgoing"},{"command":"references-view.showSupertypes","group":"navigation@1","when":"view == references-view.tree && reference-list.hasResult && reference-list.source == typeHierarchy && references-view.typeHierarchyMode != supertypes"},{"command":"references-view.showSubtypes","group":"navigation@1","when":"view == references-view.tree && reference-list.hasResult && reference-list.source == typeHierarchy && references-view.typeHierarchyMode != subtypes"}],"view/item/context":[{"command":"references-view.removeReferenceItem","group":"inline","when":"view == references-view.tree && viewItem == file-item || view == references-view.tree && viewItem == reference-item"},{"command":"references-view.removeCallItem","group":"inline","when":"view == references-view.tree && viewItem == call-item"},{"command":"references-view.removeTypeItem","group":"inline","when":"view == references-view.tree && viewItem == type-item"},{"command":"references-view.refind","group":"inline","when":"view == references-view.tree && viewItem == history-item"},{"command":"references-view.removeReferenceItem","group":"1","when":"view == references-view.tree && viewItem == file-item || view == references-view.tree && viewItem == reference-item"},{"command":"references-view.removeCallItem","group":"1","when":"view == references-view.tree && viewItem == call-item"},{"command":"references-view.removeTypeItem","group":"1","when":"view == references-view.tree && viewItem == type-item"},{"command":"references-view.refind","group":"1","when":"view == references-view.tree && viewItem == history-item"},{"command":"references-view.copy","group":"2@1","when":"view == references-view.tree && viewItem == file-item || view == references-view.tree && viewItem == reference-item"},{"command":"references-view.copyPath","group":"2@2","when":"view == references-view.tree && viewItem == file-item"},{"command":"references-view.copyAll","group":"2@3","when":"view == references-view.tree && viewItem == file-item || view == references-view.tree && viewItem == reference-item"},{"command":"references-view.showOutgoingCalls","group":"1","when":"view == references-view.tree && viewItem == call-item"},{"command":"references-view.showIncomingCalls","group":"1","when":"view == references-view.tree && viewItem == call-item"},{"command":"references-view.showSupertypes","group":"1","when":"view == references-view.tree && viewItem == type-item"},{"command":"references-view.showSubtypes","group":"1","when":"view == references-view.tree && viewItem == type-item"}],"commandPalette":[{"command":"references-view.removeReferenceItem","when":"never"},{"command":"references-view.removeCallItem","when":"never"},{"command":"references-view.removeTypeItem","when":"never"},{"command":"references-view.copy","when":"never"},{"command":"references-view.copyAll","when":"never"},{"command":"references-view.copyPath","when":"never"},{"command":"references-view.refind","when":"never"},{"command":"references-view.findReferences","when":"editorHasReferenceProvider"},{"command":"references-view.clear","when":"reference-list.hasResult"},{"command":"references-view.clearHistory","when":"reference-list.isActive && !reference-list.hasResult"},{"command":"references-view.refresh","when":"reference-list.hasResult"},{"command":"references-view.pickFromHistory","when":"reference-list.isActive"},{"command":"references-view.next","when":"never"},{"command":"references-view.prev","when":"never"}]},"keybindings":[{"command":"references-view.findReferences","when":"editorHasReferenceProvider","key":"shift+alt+f12"},{"command":"references-view.next","when":"reference-list.hasResult","key":"f4"},{"command":"references-view.prev","when":"reference-list.hasResult","key":"shift+f4"},{"command":"references-view.showCallHierarchy","when":"editorHasCallHierarchyProvider","key":"shift+alt+h"}]}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"displayName":"Reference Search View","description":"Reference Search results as separate, stable view in the sidebar","config.references.preferredLocation":"Controls whether 'Peek References' or 'Find References' is invoked when selecting CodeLens references.","config.references.preferredLocation.peek":"Show references in peek editor.","config.references.preferredLocation.view":"Show references in separate view.","container.title":"References","view.title":"Reference Search Results","cmd.category.references":"References","cmd.references-view.findReferences":"Find All References","cmd.references-view.findImplementations":"Find All Implementations","cmd.references-view.clearHistory":"Clear History","cmd.references-view.clear":"Clear","cmd.references-view.refresh":"Refresh","cmd.references-view.pickFromHistory":"Show History","cmd.references-view.removeReferenceItem":"Dismiss","cmd.references-view.copy":"Copy","cmd.references-view.copyAll":"Copy All","cmd.references-view.copyPath":"Copy Path","cmd.references-view.refind":"Rerun","cmd.references-view.showCallHierarchy":"Show Call Hierarchy","cmd.references-view.showOutgoingCalls":"Show Outgoing Calls","cmd.references-view.showIncomingCalls":"Show Incoming Calls","cmd.references-view.removeCallItem":"Dismiss","cmd.references-view.next":"Go to Next Reference","cmd.references-view.prev":"Go to Previous Reference","cmd.references-view.showTypeHierarchy":"Show Type Hierarchy","cmd.references-view.showSupertypes":"Show Supertypes","cmd.references-view.showSubtypes":"Show Subtypes","cmd.references-view.removeTypeItem":"Dismiss"}
|