Use Barrels
This commit is contained in:
		
							parent
							
								
									2fa3c900fe
								
							
						
					
					
						commit
						7a5df9f387
					
				
					 13 changed files with 28 additions and 17 deletions
				
			
		
							
								
								
									
										1
									
								
								src/common/index.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								src/common/index.ts
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					export * from "./create-document-selector";
 | 
				
			||||||
							
								
								
									
										1
									
								
								src/completion/index.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								src/completion/index.ts
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					export * from "./xquery-completion-item-provider";
 | 
				
			||||||
| 
						 | 
					@ -1,19 +1,16 @@
 | 
				
			||||||
import { languages, window, workspace, commands } from "vscode";
 | 
					 | 
				
			||||||
import {
 | 
					import {
 | 
				
			||||||
    ExtensionContext, Memento, TextEditor, TextEditorSelectionChangeEvent,
 | 
					    commands, languages, window, workspace, ExtensionContext, Memento,
 | 
				
			||||||
    TextEditorSelectionChangeKind, WorkspaceConfiguration
 | 
					    TextEditor, TextEditorSelectionChangeEvent, TextEditorSelectionChangeKind
 | 
				
			||||||
    } from "vscode";
 | 
					    } from "vscode";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { createDocumentSelector } from "./common/create-document-selector";
 | 
					import { createDocumentSelector } from "./common";
 | 
				
			||||||
import { XQueryCompletionItemProvider } from "./completion/xquery-completion-item-provider";
 | 
					import { XQueryCompletionItemProvider } from "./completion";
 | 
				
			||||||
import { formatAsXml } from "./formatting/commands/formatAsXml";
 | 
					import { XmlFormatterFactory, XmlFormattingEditProvider } from "./formatting";
 | 
				
			||||||
import { minifyXml } from "./formatting/commands/minifyXml";
 | 
					import { formatAsXml, minifyXml } from "./formatting/commands";
 | 
				
			||||||
import { XmlFormatterFactory } from "./formatting/xml-formatter";
 | 
					import { XQueryLinter } from "./linting";
 | 
				
			||||||
import { XmlFormattingEditProvider } from "./formatting/xml-formatting-edit-provider";
 | 
					import { XmlTreeDataProvider } from "./tree-view";
 | 
				
			||||||
import { XQueryLinter } from "./linting/xquery-linter";
 | 
					import { evaluateXPath } from "./xpath/commands";
 | 
				
			||||||
import { XmlTreeDataProvider } from "./tree-view/xml-tree-data-provider";
 | 
					import { executeXQuery } from "./xquery-execution/commands";
 | 
				
			||||||
import { evaluateXPath } from "./xpath/commands/evaluateXPath";
 | 
					 | 
				
			||||||
import { executeXQuery } from "./xquery-execution/commands/executeXQuery";
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
import * as constants from "./constants";
 | 
					import * as constants from "./constants";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										2
									
								
								src/formatting/commands/index.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								src/formatting/commands/index.ts
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,2 @@
 | 
				
			||||||
 | 
					export * from "./formatAsXml";
 | 
				
			||||||
 | 
					export * from "./minifyXml";
 | 
				
			||||||
							
								
								
									
										2
									
								
								src/formatting/formatters/index.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								src/formatting/formatters/index.ts
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,2 @@
 | 
				
			||||||
 | 
					export * from "./classic-xml-formatter";
 | 
				
			||||||
 | 
					export * from "./v2-xml-formatter";
 | 
				
			||||||
							
								
								
									
										3
									
								
								src/formatting/index.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								src/formatting/index.ts
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,3 @@
 | 
				
			||||||
 | 
					export * from "./xml-formatter";
 | 
				
			||||||
 | 
					export * from "./xml-formatting-edit-provider";
 | 
				
			||||||
 | 
					export * from "./xml-formatting-options";
 | 
				
			||||||
							
								
								
									
										1
									
								
								src/linting/index.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								src/linting/index.ts
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					export * from "./xquery-linter";
 | 
				
			||||||
| 
						 | 
					@ -3,9 +3,8 @@ import { FormattingOptions } from "vscode";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { TestDataLoader } from "./test-utils/test-data-loader";
 | 
					import { TestDataLoader } from "./test-utils/test-data-loader";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import { XmlFormatter } from "../formatting/xml-formatter";
 | 
					import { XmlFormatter, XmlFormattingOptions } from "../formatting";
 | 
				
			||||||
import { XmlFormattingOptions } from "../formatting/xml-formatting-options";
 | 
					import { V2XmlFormatter } from "../formatting/formatters";
 | 
				
			||||||
import { V2XmlFormatter } from "../formatting/formatters/v2-xml-formatter";
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
describe("V2XmlFormatter", () => {
 | 
					describe("V2XmlFormatter", () => {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										1
									
								
								src/tree-view/index.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								src/tree-view/index.ts
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					export * from "./xml-tree-data-provider";
 | 
				
			||||||
							
								
								
									
										1
									
								
								src/xpath/commands/index.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								src/xpath/commands/index.ts
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					export * from "./evaluateXPath";
 | 
				
			||||||
							
								
								
									
										1
									
								
								src/xpath/index.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								src/xpath/index.ts
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					export * from "./xpath-evaluator";
 | 
				
			||||||
							
								
								
									
										1
									
								
								src/xquery-execution/commands/index.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								src/xquery-execution/commands/index.ts
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					export * from "./executeXQuery";
 | 
				
			||||||
							
								
								
									
										1
									
								
								src/xquery-execution/index.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								src/xquery-execution/index.ts
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					export * from "./child-process";
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue