├── .gitignore ├── CodeEditor.sln.DotSettings ├── LICENSE ├── README.md ├── UnityProject ├── Assets │ ├── Editor.meta │ ├── Editor │ │ ├── CodeEditor.meta │ │ └── CodeEditor │ │ │ ├── CodeEditorSkin.guiskin │ │ │ ├── CodeEditorSkin.guiskin.meta │ │ │ ├── Fonts.meta │ │ │ ├── Fonts │ │ │ ├── DejaVuSansMono.ttf │ │ │ ├── DejaVuSansMono.ttf.meta │ │ │ ├── SourceCodePro-Regular11.ttf │ │ │ ├── SourceCodePro-Regular11.ttf.meta │ │ │ ├── SourceCodePro-Regular12.ttf │ │ │ ├── SourceCodePro-Regular12.ttf.meta │ │ │ ├── SourceCodePro-Regular13.ttf │ │ │ ├── SourceCodePro-Regular13.ttf.meta │ │ │ ├── SourceCodePro-Regular14.ttf │ │ │ ├── SourceCodePro-Regular14.ttf.meta │ │ │ ├── SourceCodePro-Regular15.ttf │ │ │ ├── SourceCodePro-Regular15.ttf.meta │ │ │ ├── SourceCodePro-Regular16.ttf │ │ │ ├── SourceCodePro-Regular16.ttf.meta │ │ │ ├── SourceCodePro-Regular17.ttf │ │ │ ├── SourceCodePro-Regular17.ttf.meta │ │ │ ├── SourceCodePro-Regular18.ttf │ │ │ ├── SourceCodePro-Regular18.ttf.meta │ │ │ ├── SourceCodePro-Regular19.ttf │ │ │ ├── SourceCodePro-Regular19.ttf.meta │ │ │ ├── SourceCodePro-Regular20.ttf │ │ │ ├── SourceCodePro-Regular20.ttf.meta │ │ │ ├── SourceCodePro-Regular24.ttf │ │ │ ├── SourceCodePro-Regular24.ttf.meta │ │ │ ├── SourceCodePro-Regular30.ttf │ │ │ ├── SourceCodePro-Regular30.ttf.meta │ │ │ ├── SourceCodePro-Regular6.ttf │ │ │ └── SourceCodePro-Regular6.ttf.meta │ │ │ ├── Textures.meta │ │ │ └── Textures │ │ │ ├── Icons.meta │ │ │ ├── Icons │ │ │ ├── Icons.16x16.Class.png │ │ │ ├── Icons.16x16.Class.png.meta │ │ │ ├── Icons.16x16.Delegate.png │ │ │ ├── Icons.16x16.Delegate.png.meta │ │ │ ├── Icons.16x16.Enum.png │ │ │ ├── Icons.16x16.Enum.png.meta │ │ │ ├── Icons.16x16.Event.png │ │ │ ├── Icons.16x16.Event.png.meta │ │ │ ├── Icons.16x16.ExtensionMethod.png │ │ │ ├── Icons.16x16.ExtensionMethod.png.meta │ │ │ ├── Icons.16x16.Field.png │ │ │ ├── Icons.16x16.Field.png.meta │ │ │ ├── Icons.16x16.Indexer.png │ │ │ ├── Icons.16x16.Indexer.png.meta │ │ │ ├── Icons.16x16.Interface.png │ │ │ ├── Icons.16x16.Interface.png.meta │ │ │ ├── Icons.16x16.InternalClass.png │ │ │ ├── Icons.16x16.InternalClass.png.meta │ │ │ ├── Icons.16x16.InternalDelegate.png │ │ │ ├── Icons.16x16.InternalDelegate.png.meta │ │ │ ├── Icons.16x16.InternalEnum.png │ │ │ ├── Icons.16x16.InternalEnum.png.meta │ │ │ ├── Icons.16x16.InternalEvent.png │ │ │ ├── Icons.16x16.InternalEvent.png.meta │ │ │ ├── Icons.16x16.InternalExtensionMethod.png │ │ │ ├── Icons.16x16.InternalExtensionMethod.png.meta │ │ │ ├── Icons.16x16.InternalField.png │ │ │ ├── Icons.16x16.InternalField.png.meta │ │ │ ├── Icons.16x16.InternalIndexer.png │ │ │ ├── Icons.16x16.InternalIndexer.png.meta │ │ │ ├── Icons.16x16.InternalInterface.png │ │ │ ├── Icons.16x16.InternalInterface.png.meta │ │ │ ├── Icons.16x16.InternalMethod.png │ │ │ ├── Icons.16x16.InternalMethod.png.meta │ │ │ ├── Icons.16x16.InternalProperty.png │ │ │ ├── Icons.16x16.InternalProperty.png.meta │ │ │ ├── Icons.16x16.InternalStruct.png │ │ │ ├── Icons.16x16.InternalStruct.png.meta │ │ │ ├── Icons.16x16.Keyword.png │ │ │ ├── Icons.16x16.Keyword.png.meta │ │ │ ├── Icons.16x16.Literal.png │ │ │ ├── Icons.16x16.Literal.png.meta │ │ │ ├── Icons.16x16.Local.png │ │ │ ├── Icons.16x16.Local.png.meta │ │ │ ├── Icons.16x16.Method.png │ │ │ ├── Icons.16x16.Method.png.meta │ │ │ ├── Icons.16x16.NameSpace.png │ │ │ ├── Icons.16x16.NameSpace.png.meta │ │ │ ├── Icons.16x16.Operator.png │ │ │ ├── Icons.16x16.Operator.png.meta │ │ │ ├── Icons.16x16.Parameter.png │ │ │ ├── Icons.16x16.Parameter.png.meta │ │ │ ├── Icons.16x16.PrivateClass.png │ │ │ ├── Icons.16x16.PrivateClass.png.meta │ │ │ ├── Icons.16x16.PrivateDelegate.png │ │ │ ├── Icons.16x16.PrivateDelegate.png.meta │ │ │ ├── Icons.16x16.PrivateEnum.png │ │ │ ├── Icons.16x16.PrivateEnum.png.meta │ │ │ ├── Icons.16x16.PrivateEvent.png │ │ │ ├── Icons.16x16.PrivateEvent.png.meta │ │ │ ├── Icons.16x16.PrivateExtensionMethod.png │ │ │ ├── Icons.16x16.PrivateExtensionMethod.png.meta │ │ │ ├── Icons.16x16.PrivateField.png │ │ │ ├── Icons.16x16.PrivateField.png.meta │ │ │ ├── Icons.16x16.PrivateIndexer.png │ │ │ ├── Icons.16x16.PrivateIndexer.png.meta │ │ │ ├── Icons.16x16.PrivateInterface.png │ │ │ ├── Icons.16x16.PrivateInterface.png.meta │ │ │ ├── Icons.16x16.PrivateMethod.png │ │ │ ├── Icons.16x16.PrivateMethod.png.meta │ │ │ ├── Icons.16x16.PrivateProperty.png │ │ │ ├── Icons.16x16.PrivateProperty.png.meta │ │ │ ├── Icons.16x16.PrivateStruct.png │ │ │ ├── Icons.16x16.PrivateStruct.png.meta │ │ │ ├── Icons.16x16.Property.png │ │ │ ├── Icons.16x16.Property.png.meta │ │ │ ├── Icons.16x16.ProtectedClass.png │ │ │ ├── Icons.16x16.ProtectedClass.png.meta │ │ │ ├── Icons.16x16.ProtectedDelegate.png │ │ │ ├── Icons.16x16.ProtectedDelegate.png.meta │ │ │ ├── Icons.16x16.ProtectedEnum.png │ │ │ ├── Icons.16x16.ProtectedEnum.png.meta │ │ │ ├── Icons.16x16.ProtectedEvent.png │ │ │ ├── Icons.16x16.ProtectedEvent.png.meta │ │ │ ├── Icons.16x16.ProtectedExtensionMethod.png │ │ │ ├── Icons.16x16.ProtectedExtensionMethod.png.meta │ │ │ ├── Icons.16x16.ProtectedField.png │ │ │ ├── Icons.16x16.ProtectedField.png.meta │ │ │ ├── Icons.16x16.ProtectedIndexer.png │ │ │ ├── Icons.16x16.ProtectedIndexer.png.meta │ │ │ ├── Icons.16x16.ProtectedInterface.png │ │ │ ├── Icons.16x16.ProtectedInterface.png.meta │ │ │ ├── Icons.16x16.ProtectedMethod.png │ │ │ ├── Icons.16x16.ProtectedMethod.png.meta │ │ │ ├── Icons.16x16.ProtectedProperty.png │ │ │ ├── Icons.16x16.ProtectedProperty.png.meta │ │ │ ├── Icons.16x16.ProtectedStruct.png │ │ │ ├── Icons.16x16.ProtectedStruct.png.meta │ │ │ ├── Icons.16x16.Reference.png │ │ │ ├── Icons.16x16.Reference.png.meta │ │ │ ├── Icons.16x16.Struct.png │ │ │ └── Icons.16x16.Struct.png.meta │ │ │ ├── InnerShadowBg.png │ │ │ ├── InnerShadowBg.png.meta │ │ │ ├── ListSelection.png │ │ │ └── ListSelection.png.meta │ ├── kaizen.meta │ └── kaizen │ │ ├── .gitignore │ │ ├── build.gradle │ │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ │ ├── gradlew │ │ ├── gradlew.bat │ │ └── kaizen.d │ │ ├── CodeEditor.gradle │ │ └── repositories.gradle └── ProjectSettings │ ├── AudioManager.asset │ ├── DynamicsManager.asset │ ├── EditorBuildSettings.asset │ ├── EditorSettings.asset │ ├── InputManager.asset │ ├── NavMeshLayers.asset │ ├── NetworkManager.asset │ ├── ProjectSettings.asset │ ├── QualitySettings.asset │ ├── TagManager.asset │ └── TimeManager.asset ├── build.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── settings.gradle ├── src ├── CodeEditor.Collections.Tests │ ├── InsertionBufferTest.cs │ ├── PieceTableBenchmarks.cs │ ├── PieceTableSpansTest.cs │ ├── PieceTableTest.cs │ └── Properties │ │ └── AssemblyInfo.cs ├── CodeEditor.Collections │ ├── ArrayExtensions.cs │ ├── CodeEditor.Collections.gradle │ ├── InsertionBuffer.cs │ ├── Pair.cs │ ├── Piece.cs │ ├── PieceSpan.cs │ ├── PieceTable.cs │ └── Properties │ │ └── AssemblyInfo.cs ├── CodeEditor.Composition.Tests │ ├── CompositionContainerTest.cs │ ├── ImportDefinitionProviderTest.cs │ ├── LazyImportManyTest.cs │ ├── LazyImportTest.cs │ ├── LazyTest.cs │ └── Properties │ │ └── AssemblyInfo.cs ├── CodeEditor.Composition │ ├── CodeEditor.Composition.gradle │ ├── CompositionError.cs │ ├── CompositionException.cs │ ├── ContractAttribute.cs │ ├── ExportAttribute.cs │ ├── HasExportsAttribute.cs │ ├── Hosting │ │ ├── AggregateCatalog.cs │ │ ├── AssemblyCatalog.cs │ │ ├── AssemblyExtensions.cs │ │ ├── CompositionContainer.cs │ │ ├── DirectoryCatalog.cs │ │ ├── EmptyArray.cs │ │ └── ReflectionExtensions.cs │ ├── ICompositionContainer.cs │ ├── ImportAttribute.cs │ ├── ImportManyAttribute.cs │ ├── ImportingConstructor.cs │ ├── Lazy.cs │ ├── Primitives │ │ ├── CustomAttribute.cs │ │ ├── Export.cs │ │ ├── ExportDefinition.cs │ │ ├── IExportDefinitionProvider.cs │ │ ├── IMetadataProvider.cs │ │ ├── ImportCardinality.cs │ │ ├── ImportDefinition.cs │ │ ├── ImportDefinitionProvider.cs │ │ └── TypeExtensions.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── README.md ├── CodeEditor.ContentTypes.Tests │ ├── CodeEditor.ContentTypes.Tests.gradle │ ├── ContentTypeRegistryTest.cs │ └── ContentTypeTest.cs ├── CodeEditor.ContentTypes │ ├── CodeEditor.ContentTypes.gradle │ ├── IContentType.cs │ └── Internal │ │ ├── ContentType.cs │ │ ├── ContentTypeRegistry.cs │ │ └── TextContentType.cs ├── CodeEditor.Features.Monitoring.Services │ ├── CodeEditor.Features.Monitoring.Services.gradle │ └── DumpContentTypeRegistryService.cs ├── CodeEditor.Features.NavigateTo.SourceSymbols.ServiceModel │ ├── CodeEditor.Features.NavigateTo.SourceSymbols.ServiceModel.gradle │ └── SourceSymbols.cs ├── CodeEditor.Features.NavigateTo.SourceSymbols.Services.CSharp.Tests │ ├── CSharpSourceSymbolProviderTest.cs │ └── CodeEditor.Features.NavigateTo.SourceSymbols.Services.CSharp.Tests.gradle ├── CodeEditor.Features.NavigateTo.SourceSymbols.Services.CSharp │ ├── CSharpSourceSymbolProvider.cs │ └── CodeEditor.Features.NavigateTo.SourceSymbols.Services.CSharp.gradle ├── CodeEditor.Features.NavigateTo.SourceSymbols.Services.Tests │ ├── CodeEditor.Features.NavigateTo.SourceSymbols.Services.Tests.gradle │ ├── SourceFilesProviderTest.cs │ ├── SourceSymbolIndexProviderTest.cs │ └── SourceSymbolProviderSelectorTest.cs ├── CodeEditor.Features.NavigateTo.SourceSymbols.Services.UnityScript.Tests │ ├── CodeEditor.Features.NavigateTo.SourceSymbols.Services.UnityScript.Tests.gradle │ └── UnityScriptSourceSymbolProviderTest.cs ├── CodeEditor.Features.NavigateTo.SourceSymbols.Services.UnityScript │ ├── CodeEditor.Features.NavigateTo.SourceSymbols.Services.UnityScript.gradle │ └── UnityScriptSourceSymbolProvider.cs ├── CodeEditor.Features.NavigateTo.SourceSymbols.Services │ ├── CodeEditor.Features.NavigateTo.SourceSymbols.Services.gradle │ ├── ISourceFilesProvider.cs │ ├── ISourceSymbolProvider.cs │ ├── SourceSymbolIndexProvider.cs │ └── SourceSymbolSearchService.cs ├── CodeEditor.Features.NavigateTo.SourceSymbols │ ├── CodeEditor.Features.NavigateTo.SourceSymbols.gradle │ └── SourceSymbolNavigateToItemProvider.cs ├── CodeEditor.Features.NavigateTo.Tests │ ├── CodeEditor.Features.NavigateTo.Tests.gradle │ └── NavigateToItemProviderAggregatorTest.cs ├── CodeEditor.Features.NavigateTo.Unity.Editor │ ├── CodeEditor.Features.NavigateTo.Unity.Editor.gradle │ ├── NavigatoToMenuItems.cs │ ├── NavigatorWindow.cs │ ├── ScriptNavigatorItem.cs │ └── ScriptNavigatorItemProvider.cs ├── CodeEditor.Features.NavigateTo │ ├── CodeEditor.Features.NavigateTo.gradle │ ├── INavigateToItemProvider.cs │ ├── INavigateToItemProviderAggregator.cs │ └── Internal │ │ └── NavigateToItemProviderAggregator.cs ├── CodeEditor.Grammars │ ├── CodeEditor.Grammars.gradle │ ├── PartitionTokenizer.boo │ └── Tokenizer.boo ├── CodeEditor.IO.Tests │ └── FileTest.cs ├── CodeEditor.IO.Unity.Editor │ ├── CodeEditor.IO.Unity.Editor.gradle │ ├── UnityEditorFileSystem.cs │ └── UnityMonoExecutableProvider.cs ├── CodeEditor.IO │ ├── CodeEditor.IO.gradle │ ├── IEnvironmentVariables.cs │ ├── IFileSystem.cs │ ├── IShell.cs │ ├── Internal │ │ ├── File.cs │ │ ├── FileSystem.cs │ │ ├── Folder.cs │ │ ├── Resource.cs │ │ └── StandardShell.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── README.md ├── CodeEditor.Languages.Boo │ ├── BooClassifier.cs │ ├── BooClassifierProvider.cs │ ├── BooContentType.cs │ ├── CodeEditor.Languages.Boo.gradle │ └── Properties │ │ └── AssemblyInfo.cs ├── CodeEditor.Languages.CSharp.ContentType │ ├── AssemblyInfo.cs │ ├── CSharpContentType.cs │ └── CodeEditor.Languages.CSharp.ContentType.gradle ├── CodeEditor.Languages.CSharp │ ├── CSharpClassifier.cs │ ├── CSharpClassifierProvider.cs │ ├── CSharpCompletionProvider.cs │ ├── CodeEditor.Languages.CSharp.gradle │ └── Properties │ │ └── AssemblyInfo.cs ├── CodeEditor.Languages.Common.Tests │ ├── CodeEditor.Languages.Common.Tests.gradle │ ├── PartitionTokenTypeCacheTest.cs │ └── Properties │ │ └── AssemblyInfo.cs ├── CodeEditor.Languages.Common │ ├── Classifier.cs │ ├── CodeEditor.Languages.Common.gradle │ ├── CompletionTrigger.cs │ ├── PartitionTokenTypeCache.cs │ └── Properties │ │ └── AssemblyInfo.cs ├── CodeEditor.Languages.UnityScript.ContentType │ ├── AssemblyInfo.cs │ ├── CodeEditor.Languages.UnityScript.ContentType.gradle │ └── UnityScriptContentType.cs ├── CodeEditor.Languages.UnityScript.Tests │ ├── CodeEditor.Languages.UnityScript.Tests.gradle │ ├── CompletionTriggerTest.cs │ └── UnityScriptClassifierTest.cs ├── CodeEditor.Languages.UnityScript │ ├── CodeEditor.Languages.UnityScript.gradle │ ├── CompletionProvider.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── UnityScriptClassifier.cs │ └── UnityScriptClassifierProvider.cs ├── CodeEditor.Logging.Unity │ ├── CodeEditor.Logging.Unity.gradle │ └── UnityLogger.cs ├── CodeEditor.Logging │ ├── CodeEditor.Logging.gradle │ └── ILogger.cs ├── CodeEditor.Reactive.Tests │ ├── CodeEditor.Reactive.Tests.gradle │ └── Disposables │ │ └── MultipleAssignmentDisposableTest.cs ├── CodeEditor.Reactive │ ├── CodeEditor.Reactive.gradle │ ├── Disposables │ │ ├── Disposable.cs │ │ ├── MultipleAssignmentDisposable.cs │ │ └── SerialDisposable.cs │ ├── IObservableX.cs │ ├── ObservableBridge.cs │ └── Subjects │ │ └── ISubjectX.cs ├── CodeEditor.ReactiveServiceStack │ ├── CodeEditor.ReactiveServiceStack.gradle │ ├── IObservableServiceClient.cs │ └── ReactiveServiceStackExtensions.cs ├── CodeEditor.ServiceClient.Tests │ ├── CodeEditor.ServiceClient.Tests.gradle │ └── ObservableServiceClientProviderTest.cs ├── CodeEditor.ServiceClient │ ├── CodeEditor.ServiceClient.gradle │ └── IObservableServiceClientProvider.cs ├── CodeEditor.ServiceHost │ ├── CodeEditor.ServiceHost.gradle │ ├── Program.cs │ └── app.config ├── CodeEditor.Testing │ ├── CodeEditor.Testing.gradle │ ├── MockBasedTest.cs │ └── Properties │ │ └── AssemblyInfo.cs ├── CodeEditor.Text.Data.Tests │ ├── CodeEditor.Text.Data.Tests.gradle │ ├── EmptyTextBufferTest.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── TextBufferBasedTest.cs │ ├── TextBufferBenchmark.cs │ ├── TextBufferDeletionTest.cs │ ├── TextBufferInsertTests.cs │ ├── TextBufferLineTest.cs │ ├── TextBufferLinesTest.cs │ └── TextDocumentFactoryTest.cs ├── CodeEditor.Text.Data │ ├── CodeEditor.Text.Data.gradle │ ├── ITextBuffer.cs │ ├── ITextDocument.cs │ ├── ITextSnapshot.cs │ ├── ITextSnapshotLine.cs │ ├── ITextSnapshotLines.cs │ ├── Implementation │ │ ├── Immutable.cs │ │ ├── LineParser.cs │ │ ├── LineSpan.cs │ │ ├── TextBuffer.cs │ │ ├── TextDocument.cs │ │ ├── TextDocumentFactory.cs │ │ ├── TextSnapshot.cs │ │ ├── TextSnapshotLine.cs │ │ └── TextSnapshotLines.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Span.cs │ ├── TextChange.cs │ └── TextSpan.cs ├── CodeEditor.Text.Logic.Tests │ ├── ClassificationSpansTests.cs │ ├── CodeEditor.Text.Logic.Tests.gradle │ └── Properties │ │ └── AssemblyInfo.cs ├── CodeEditor.Text.Logic │ ├── ClassificationChange.cs │ ├── ClassificationSpan.cs │ ├── ClassificationSpans.cs │ ├── CodeEditor.Text.Logic.gradle │ ├── IClassification.cs │ ├── IClassifier.cs │ ├── IStandardClassificationRegistry.cs │ ├── Implementation │ │ ├── Classification.cs │ │ └── StandardClassificationRegistry.cs │ └── Properties │ │ └── AssemblyInfo.cs ├── CodeEditor.Text.UI.Tests │ ├── CaretTest.cs │ ├── CodeEditor.Text.UI.Tests.gradle │ ├── DefaultTextStructureNavigatorTest.cs │ └── SelectionTest.cs ├── CodeEditor.Text.UI.Unity.Editor.Tests │ └── Properties │ │ └── AssemblyInfo.cs ├── CodeEditor.Text.UI.Unity.Editor │ ├── CodeEditor.Text.UI.Unity.Editor.gradle │ ├── Implementation │ │ ├── CodeEditorMenuItems.cs │ │ ├── CodeEditorWindow.cs │ │ ├── CodeView.cs │ │ ├── CodeViewCompletion.cs │ │ ├── CompletionSession.cs │ │ ├── FontManager.cs │ │ ├── FontManagerProvider.cs │ │ ├── Icons.cs │ │ ├── ListPopup │ │ │ ├── CodeCompletionListItem.cs │ │ │ ├── CodeCompletionListItemGUI.cs │ │ │ ├── CodeCompletionListItemProvider.cs │ │ │ ├── CodeCompletionTextFormatter.cs │ │ │ ├── CodeCompletionWindow.cs │ │ │ ├── IListItem.cs │ │ │ ├── IListItemGUI.cs │ │ │ └── IListItemProvider.cs │ │ ├── MissingEditorAPI.cs │ │ ├── MonoScriptInspector.cs │ │ ├── MouseDragReader.cs │ │ ├── RegionResizer.cs │ │ ├── SettingsDialog.cs │ │ ├── TextViewAppearanceProvider.cs │ │ ├── UnityEditorFileNavigationService.cs │ │ ├── UnityEditorGUISkinProvider .cs │ │ ├── UnityEditorMouseCursorRegions.cs │ │ ├── UnityEditorPreferences.cs │ │ └── UnityEditorScheduler.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── UnityEditorCompositionContainer.cs ├── CodeEditor.Text.UI.Unity.Engine.Tests │ ├── CodeEditor.Text.UI.Unity.Engine.Tests.gradle │ ├── TextViewDocumentFactoryTest.cs │ ├── TextViewDocumentTest.cs │ └── TextViewWhitespaceTest.cs ├── CodeEditor.Text.UI.Unity.Engine │ ├── CodeEditor.Text.UI.Unity.Engine.gradle │ ├── GUIUtils.cs │ ├── IClassificationStyler.cs │ ├── IDefaultTextViewMarginsProvider.cs │ ├── IFontManager.cs │ ├── IFontManagerProvider.cs │ ├── IGUISkinProvider.cs │ ├── IIcons.cs │ ├── IMouseCursorRegions.cs │ ├── IPreferences.cs │ ├── ISetting.cs │ ├── ISettings.cs │ ├── ISettingsProvider.cs │ ├── ITextView.cs │ ├── ITextViewAdornment.cs │ ├── ITextViewAdornments.cs │ ├── ITextViewAppearance.cs │ ├── ITextViewAppearanceProvider.cs │ ├── ITextViewDocument.cs │ ├── ITextViewDocumentFactory.cs │ ├── ITextViewFactory.cs │ ├── ITextViewLine.cs │ ├── ITextViewMargin.cs │ ├── ITextViewMarginProvider.cs │ ├── ITextViewMargins.cs │ ├── ITextViewWhitespace.cs │ ├── ITextViewWhitespaceProvider.cs │ ├── Implementation │ │ ├── ClassificationStyler.cs │ │ ├── Colors.cs │ │ ├── DefaultTextViewMarginsProvider.cs │ │ ├── LineNumberMargin.cs │ │ ├── LineNumberMarginProvider.cs │ │ ├── MissingEngineAPI.cs │ │ ├── Setting.cs │ │ ├── Settings.cs │ │ ├── SettingsProvider.cs │ │ ├── TextView.cs │ │ ├── TextViewAdornments.cs │ │ ├── TextViewDocument.cs │ │ ├── TextViewDocumentFactory.cs │ │ ├── TextViewFactory.cs │ │ ├── TextViewLine.cs │ │ ├── TextViewMargins.cs │ │ ├── TextViewWhitespace.cs │ │ └── TextViewWhitespaceProvider.cs │ └── TextViewExtensions.cs └── CodeEditor.Text.UI │ ├── CodeEditor.Text.UI.gradle │ ├── Completion │ ├── ICompletionProvider.cs │ ├── ICompletionTrigger.cs │ └── Implementation │ │ ├── Completion.cs │ │ └── CompletionSet.cs │ ├── ICaret.cs │ ├── ICaretBounds.cs │ ├── ICaretFactory.cs │ ├── IFileNavigationService.cs │ ├── ITextStructureNavigator.cs │ ├── Implementation │ ├── Caret.cs │ ├── CaretFactory.cs │ └── DefaultTextStructureNavigator.cs │ ├── Position.cs │ ├── Properties │ └── AssemblyInfo.cs │ └── Selection.cs └── todo.org /.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | obj 3 | build 4 | out 5 | lib 6 | .gradle 7 | *.iml 8 | *.ipr 9 | *.iws 10 | *~ 11 | *.csproj 12 | *.sln 13 | *.user 14 | *.suo 15 | _ReSharper.* 16 | gradle.properties 17 | .DS_Store 18 | UnityProject/Library/ 19 | UnityProject/Temp/ 20 | UnityProject/Assets/Scripts/ 21 | UnityProject/Assets/Scripts.meta 22 | UnityProject/Assembly* 23 | UnityProject/UnityProject* 24 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e0b495b458e41c4c8af554c88cef530 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bf9bd7e86d5a9f34daa55405b4a55843 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/CodeEditorSkin.guiskin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/CodeEditorSkin.guiskin -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/CodeEditorSkin.guiskin.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3ef02880a8e7cee448fd55c00f6cc956 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 52d44a1310cb25e49b6de94ddf91ef60 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/DejaVuSansMono.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Fonts/DejaVuSansMono.ttf -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/DejaVuSansMono.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f682de242b8c70488004efc68641a10 3 | TrueTypeFontImporter: 4 | serializedVersion: 2 5 | fontSize: 16 6 | fontColor: {r: 1, g: 1, b: 1, a: 1} 7 | forceTextureCase: -2 8 | characterSpacing: 1 9 | characterPadding: 0 10 | includeFontData: 1 11 | use2xBehaviour: 0 12 | fontNames: [] 13 | customCharacters: 14 | fontRenderingMode: 1 15 | userData: 16 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular11.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular11.ttf -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular11.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e7a33d4cf35fa1e479c38e6915c6c315 3 | TrueTypeFontImporter: 4 | serializedVersion: 2 5 | fontSize: 11 6 | forceTextureCase: -2 7 | characterSpacing: 1 8 | characterPadding: 0 9 | includeFontData: 1 10 | use2xBehaviour: 0 11 | fontNames: [] 12 | customCharacters: 13 | fontRenderingMode: 1 14 | userData: 15 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular12.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular12.ttf -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular12.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 76c1e21655919fa468782b7deeed0630 3 | TrueTypeFontImporter: 4 | serializedVersion: 2 5 | fontSize: 12 6 | forceTextureCase: -2 7 | characterSpacing: 1 8 | characterPadding: 0 9 | includeFontData: 1 10 | use2xBehaviour: 0 11 | fontNames: [] 12 | customCharacters: 13 | fontRenderingMode: 1 14 | userData: 15 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular13.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular13.ttf -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular13.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d91c045c4bee104c9a8041ac8215349 3 | TrueTypeFontImporter: 4 | serializedVersion: 2 5 | fontSize: 13 6 | forceTextureCase: -2 7 | characterSpacing: 1 8 | characterPadding: 0 9 | includeFontData: 1 10 | use2xBehaviour: 0 11 | fontNames: [] 12 | customCharacters: 13 | fontRenderingMode: 1 14 | userData: 15 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular14.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular14.ttf -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular14.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8176c960755048045a96e9c15405db4b 3 | TrueTypeFontImporter: 4 | serializedVersion: 2 5 | fontSize: 14 6 | forceTextureCase: -2 7 | characterSpacing: 1 8 | characterPadding: 0 9 | includeFontData: 1 10 | use2xBehaviour: 0 11 | fontNames: [] 12 | customCharacters: 13 | fontRenderingMode: 1 14 | userData: 15 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular15.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular15.ttf -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular15.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fcf5b947fedf14d4180ea1e2318d75df 3 | TrueTypeFontImporter: 4 | serializedVersion: 2 5 | fontSize: 15 6 | forceTextureCase: -2 7 | characterSpacing: 1 8 | characterPadding: 0 9 | includeFontData: 1 10 | use2xBehaviour: 0 11 | fontNames: [] 12 | customCharacters: 13 | fontRenderingMode: 1 14 | userData: 15 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular16.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular16.ttf -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular16.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 352667a9bbbd11b4fa0945ecc03f9e87 3 | TrueTypeFontImporter: 4 | serializedVersion: 2 5 | fontSize: 16 6 | forceTextureCase: -2 7 | characterSpacing: 1 8 | characterPadding: 0 9 | includeFontData: 1 10 | use2xBehaviour: 0 11 | fontNames: [] 12 | customCharacters: 13 | fontRenderingMode: 1 14 | userData: 15 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular17.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular17.ttf -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular17.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e933ca68b4990244888343454525131c 3 | TrueTypeFontImporter: 4 | serializedVersion: 2 5 | fontSize: 17 6 | forceTextureCase: -2 7 | characterSpacing: 1 8 | characterPadding: 0 9 | includeFontData: 1 10 | use2xBehaviour: 0 11 | fontNames: [] 12 | customCharacters: 13 | fontRenderingMode: 1 14 | userData: 15 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular18.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular18.ttf -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular18.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c3d5b0269fa3ef54e988a7399dcf41ec 3 | TrueTypeFontImporter: 4 | serializedVersion: 2 5 | fontSize: 18 6 | forceTextureCase: -2 7 | characterSpacing: 1 8 | characterPadding: 0 9 | includeFontData: 1 10 | use2xBehaviour: 0 11 | fontNames: [] 12 | customCharacters: 13 | fontRenderingMode: 1 14 | userData: 15 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular19.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular19.ttf -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular19.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 06d02ac832afe804b85681f3702aeffc 3 | TrueTypeFontImporter: 4 | serializedVersion: 2 5 | fontSize: 19 6 | forceTextureCase: -2 7 | characterSpacing: 1 8 | characterPadding: 0 9 | includeFontData: 1 10 | use2xBehaviour: 0 11 | fontNames: [] 12 | customCharacters: 13 | fontRenderingMode: 1 14 | userData: 15 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular20.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular20.ttf -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular20.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c488a9842860954bbbc4006ccbbc964 3 | TrueTypeFontImporter: 4 | serializedVersion: 2 5 | fontSize: 20 6 | forceTextureCase: -2 7 | characterSpacing: 1 8 | characterPadding: 0 9 | includeFontData: 1 10 | use2xBehaviour: 0 11 | fontNames: [] 12 | customCharacters: 13 | fontRenderingMode: 1 14 | userData: 15 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular24.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular24.ttf -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular24.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f10a140e77b818479b931e9b6d4b862 3 | TrueTypeFontImporter: 4 | serializedVersion: 2 5 | fontSize: 24 6 | forceTextureCase: -2 7 | characterSpacing: 1 8 | characterPadding: 0 9 | includeFontData: 1 10 | use2xBehaviour: 0 11 | fontNames: [] 12 | customCharacters: 13 | fontRenderingMode: 1 14 | userData: 15 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular30.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular30.ttf -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular30.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 60d27fb25423ab244ad46470ba229714 3 | TrueTypeFontImporter: 4 | serializedVersion: 2 5 | fontSize: 30 6 | forceTextureCase: -2 7 | characterSpacing: 1 8 | characterPadding: 0 9 | includeFontData: 1 10 | use2xBehaviour: 0 11 | fontNames: [] 12 | customCharacters: 13 | fontRenderingMode: 1 14 | userData: 15 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular6.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular6.ttf -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Fonts/SourceCodePro-Regular6.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b0d7cbcf76b4f7841a92dd9f3ebe770f 3 | TrueTypeFontImporter: 4 | serializedVersion: 2 5 | fontSize: 6 6 | forceTextureCase: -2 7 | characterSpacing: 1 8 | characterPadding: 0 9 | includeFontData: 1 10 | use2xBehaviour: 0 11 | fontNames: [] 12 | customCharacters: 13 | fontRenderingMode: 1 14 | userData: 15 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dce07ea4905b86d40b6bdaa9a8cd68fb 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 26957fbed0b40174194549aee49442ea 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Class.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Class.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Class.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e9f7cf28b09222642969f56394c8be7e 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Delegate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Delegate.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Delegate.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 830f19ecc48b0e74385ef9853580b3b5 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Enum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Enum.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Enum.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2440ae321f24d554abf00620cae0357c 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Event.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Event.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Event.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df9e3f73544fd9949abea0734a8e3ad7 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ExtensionMethod.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ExtensionMethod.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ExtensionMethod.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d615c30a547553844abd1b570d3c00e5 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Field.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Field.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Field.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 07143ca7adf8c23488a66e27d81e7817 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Indexer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Indexer.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Indexer.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec8b60576a4779848b6b707a8bc1cbc9 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Interface.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Interface.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Interface.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7120a6b6f00559f4ca131d4cbd9f32d9 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalClass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalClass.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalClass.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: be7a164a020587a479d583017cee2ea9 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalDelegate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalDelegate.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalDelegate.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e330cc509502d3d4abab221c14ad638b 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalEnum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalEnum.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalEnum.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 049c705389fa0c04eb009395d3b04128 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalEvent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalEvent.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalEvent.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3831033968fe0945945cc48f1119632 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalExtensionMethod.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalExtensionMethod.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalExtensionMethod.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b42f28f40086cb14cb914ebd016e4434 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalField.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalField.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalField.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fdd2aad5b166cb94fb55b4a33f267d40 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalIndexer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalIndexer.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalIndexer.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 908b7493db23d6e4eb31e7dab5cdefaa 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalInterface.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalInterface.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalInterface.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 22fad1fb50c213f48af4727e31fc3928 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalMethod.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalMethod.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalMethod.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: be3a20f4f4c2ee34f8065c23413c20b9 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalProperty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalProperty.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalProperty.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c6225faf1ad744948bf648bb3cb22314 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalStruct.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalStruct.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.InternalStruct.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ea9780f636d7c974d8f5b929ab48863e 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Keyword.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Keyword.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Keyword.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e91ca174daf6774fa64a8d4a3becf71 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Literal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Literal.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Literal.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 94993b7d97be966488dfb47b38070881 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Local.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Local.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Local.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b212f7e0bfb237b48943fa58328315a9 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Method.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Method.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Method.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eb831bed629ba5341aaec03184f5d9d0 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.NameSpace.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.NameSpace.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.NameSpace.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b4c7288058f849e408b2386bd7b25db0 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Operator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Operator.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Operator.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 444f896fd149c0c40a751b66ef930e94 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Parameter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Parameter.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Parameter.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d6fa8eed144dd34bae4f6b0fb32af34 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateClass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateClass.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateClass.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41eecff2bf77df646aba9b6c09fed6e8 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateDelegate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateDelegate.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateDelegate.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 76570f92652edf04ab1a34290166f37a 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateEnum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateEnum.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateEnum.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 903b531ce5d79a647a75d78f5f4ac982 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateEvent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateEvent.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateEvent.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1913d45d931a93645adb336767c89fd6 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateExtensionMethod.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateExtensionMethod.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateExtensionMethod.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 898303ca141a745428f5500ca5b8acf3 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateField.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateField.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateField.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6547d919db26b6c4f982a3a4878c0100 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateIndexer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateIndexer.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateIndexer.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 126e35be050d242428e47f3b1f8c368e 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateInterface.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateInterface.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateInterface.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2946142793a211541a79a75d61ae648c 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateMethod.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateMethod.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateMethod.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8d201ac0850087441a2c7c3d64d9499a 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateProperty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateProperty.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateProperty.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 37a89afbacd3ffb4487e85384461d623 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateStruct.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateStruct.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.PrivateStruct.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d21e4806db9730c4793f8639d376be52 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Property.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Property.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Property.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 17f4efbe84cfdb648b3a6d984deb5b0b 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedClass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedClass.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedClass.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2fc4a5fb59aa74d4384d7e90018168fd 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedDelegate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedDelegate.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedDelegate.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ca95f6fcefbad994791ff0cfc425cfdc 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedEnum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedEnum.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedEnum.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 071e67c093e34504f80ec567cf901e3e 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedEvent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedEvent.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedEvent.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7489852667b0904a8bec98af64d9c03 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedExtensionMethod.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedExtensionMethod.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedExtensionMethod.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b5f5582d1c2bf0440818f0c9b968f310 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedField.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedField.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedField.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d23ab55e8983194e9d3a6ca54845334 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedIndexer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedIndexer.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedIndexer.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2be7cf0c7ec99ed4f853ee625aab6bfd 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedInterface.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedInterface.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedInterface.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7ec5923eb39f5464491770b87a881344 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedMethod.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedMethod.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedMethod.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c77175f7d7b861498e83e372badfafe 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedProperty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedProperty.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedProperty.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ebbe2a627403dda438c5d145f1450c7b 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedStruct.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedStruct.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.ProtectedStruct.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 66a8df60b6da432438aebd2c5920a6cd 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Reference.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Reference.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Reference.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7687b72023e567a4982edef84c1a7b13 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Struct.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Struct.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/Icons/Icons.16x16.Struct.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 024cfd9ac9322154bacf2f96feae0772 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 1 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: 1 28 | mipBias: -1 29 | wrapMode: 1 30 | nPOTScale: 0 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 1 34 | textureType: 2 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/InnerShadowBg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/InnerShadowBg.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/InnerShadowBg.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fbd7d5edad15d794cb1a58b17919e033 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 1 8 | linearTexture: 0 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: -1 28 | mipBias: -1 29 | wrapMode: -1 30 | nPOTScale: 1 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 0 34 | textureType: -1 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/ListSelection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/Editor/CodeEditor/Textures/ListSelection.png -------------------------------------------------------------------------------- /UnityProject/Assets/Editor/CodeEditor/Textures/ListSelection.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9cd5711e27ae44444b63f49ac6288003 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 1 8 | linearTexture: 0 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | seamlessCubemap: 0 23 | textureFormat: -1 24 | maxTextureSize: 1024 25 | textureSettings: 26 | filterMode: -1 27 | aniso: -1 28 | mipBias: -1 29 | wrapMode: -1 30 | nPOTScale: 1 31 | lightmap: 0 32 | compressionQuality: 50 33 | alphaIsTransparency: 0 34 | textureType: -1 35 | buildTargetSettings: [] 36 | userData: 37 | -------------------------------------------------------------------------------- /UnityProject/Assets/kaizen.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87e2c62b53d25435294cc0ed84abcafc 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /UnityProject/Assets/kaizen/.gitignore: -------------------------------------------------------------------------------- 1 | *.meta -------------------------------------------------------------------------------- /UnityProject/Assets/kaizen/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | buildscript { 3 | repositories { 4 | ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' } 5 | mavenCentral() 6 | } 7 | dependencies { 8 | classpath 'kaizen:kaizen:latest.integration' 9 | } 10 | } 11 | 12 | apply plugin: 'kaizen-installation' 13 | 14 | -------------------------------------------------------------------------------- /UnityProject/Assets/kaizen/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/Assets/kaizen/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /UnityProject/Assets/kaizen/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Sep 27 09:13:56 BRT 2012 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=http\://services.gradle.org/distributions/gradle-1.2-bin.zip 7 | -------------------------------------------------------------------------------- /UnityProject/Assets/kaizen/kaizen.d/CodeEditor.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | editor group: 'CodeEditor', name: 'CodeEditor', version: 'latest.integration', configuration: 'editor' 3 | } -------------------------------------------------------------------------------- /UnityProject/Assets/kaizen/kaizen.d/repositories.gradle: -------------------------------------------------------------------------------- 1 | repositories { 2 | ivy { url 'http://unity-technologies.github.com/kaizen/repositories/unstable' } 3 | } -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/ProjectSettings/AudioManager.asset -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/ProjectSettings/DynamicsManager.asset -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/ProjectSettings/EditorBuildSettings.asset -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/ProjectSettings/EditorSettings.asset -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/ProjectSettings/InputManager.asset -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/NavMeshLayers.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/ProjectSettings/NavMeshLayers.asset -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/ProjectSettings/NetworkManager.asset -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/ProjectSettings/ProjectSettings.asset -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/ProjectSettings/QualitySettings.asset -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/ProjectSettings/TagManager.asset -------------------------------------------------------------------------------- /UnityProject/ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/UnityProject/ProjectSettings/TimeManager.asset -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/CodeEditor/24986270c14e860c8e7e711403ffc37a1d29c8c0/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Sep 27 09:13:56 BRT 2012 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=http\://services.gradle.org/distributions/gradle-1.4-bin.zip 7 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | 2 | // automatically include all directories under src/ as projects 3 | def srcDir = file('src') 4 | srcDir.eachDir { include it.name } 5 | 6 | rootProject.children.each { 7 | it.projectDir = new File(srcDir, it.name) 8 | it.buildFileName = "${it.name}.gradle" 9 | } 10 | 11 | -------------------------------------------------------------------------------- /src/CodeEditor.Collections.Tests/PieceTableSpansTest.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | 3 | namespace CodeEditor.Collections.Tests 4 | { 5 | [TestFixture] 6 | public class PieceTableSpansTest 7 | { 8 | [Test] 9 | [TestCase("", 0)] 10 | [TestCase("01", 0)] 11 | [TestCase("01", 1)] 12 | [TestCase("01", 2)] 13 | public void InsertingAdjacentElementDoesNotCausePieceTableGrowth(string s, int index) 14 | { 15 | var v0 = PieceTable.ForString(s); 16 | var v1 = v0.Insert(index, '*'); 17 | var v2 = v1.Insert(index + 1, '-'); 18 | Assert.AreEqual(v1.PieceCount, v2.PieceCount); 19 | } 20 | 21 | [Test] 22 | [TestCase(0, 3, 0)] 23 | [TestCase(0, 1, 2)] 24 | [TestCase(0, 2, 1)] 25 | [TestCase(1, 1, 2)] 26 | [TestCase(1, 2, 1)] 27 | [TestCase(2, 1, 2)] 28 | public void DeletionPieceCountAfterInsert(int position, int length, int expectedPieceCount) 29 | { 30 | var v0 = PieceTable.ForString("02"); 31 | var v1 = v0.Insert(1, '1'); 32 | Assert.AreEqual(3, v1.PieceCount); 33 | 34 | var v2 = v1.Delete(position, length); 35 | Assert.AreEqual(expectedPieceCount, v2.PieceCount); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/CodeEditor.Collections.Tests/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | [assembly: AssemblyTitle("CodeEditor.Collections.Tests")] 5 | [assembly: AssemblyDescription("")] 6 | [assembly: AssemblyConfiguration("")] 7 | [assembly: AssemblyTrademark("")] 8 | [assembly: AssemblyCulture("")] 9 | [assembly: ComVisible(false)] 10 | [assembly: AssemblyVersion("1.0.0.0")] 11 | [assembly: AssemblyFileVersion("1.0.0.0")] 12 | -------------------------------------------------------------------------------- /src/CodeEditor.Collections/ArrayExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CodeEditor.Collections 4 | { 5 | public static class ArrayExtensions 6 | { 7 | public static T[] Append(this T[] array, T newElement) 8 | { 9 | var result = new T[array.Length + 1]; 10 | Array.Copy(array, result, array.Length); 11 | result[array.Length] = newElement; 12 | return result; 13 | } 14 | 15 | public static T[] Replace(this T[] array, int index, T newElement) 16 | { 17 | return array.ReplaceRange(index, 1, newElement); 18 | } 19 | 20 | public static T[] ReplaceRange(this T[] array, int index, int count, params T[] newRange) 21 | { 22 | var result = new T[array.Length + newRange.Length - count]; 23 | Array.Copy(array, 0, result, 0, index); 24 | Array.Copy(newRange, 0, result, index, newRange.Length); 25 | Array.Copy(array, index + count, result, index + newRange.Length, array.Length - index - count); 26 | return result; 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /src/CodeEditor.Collections/CodeEditor.Collections.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.1' 2 | -------------------------------------------------------------------------------- /src/CodeEditor.Collections/Pair.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Collections 2 | { 3 | public static class Pair 4 | { 5 | public static Pair Create(TFirst previous, TSecond next) 6 | { 7 | return new Pair(previous, next); 8 | } 9 | } 10 | 11 | public struct Pair 12 | { 13 | public readonly TFirst First; 14 | public readonly TSecond Second; 15 | 16 | public Pair(TFirst first, TSecond second) 17 | { 18 | First = first; 19 | Second = second; 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /src/CodeEditor.Collections/PieceSpan.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Collections 2 | { 3 | public static class PieceSpan 4 | { 5 | public static PieceSpan For(IPiece piece, int start) 6 | { 7 | return new PieceSpan(piece, start); 8 | } 9 | } 10 | 11 | public struct PieceSpan 12 | { 13 | public readonly IPiece Piece; 14 | public readonly int Start; 15 | 16 | public PieceSpan(IPiece piece, int start) 17 | { 18 | Start = start; 19 | Piece = piece; 20 | } 21 | 22 | public int End 23 | { 24 | get { return Start + Length; } 25 | } 26 | 27 | public int Length 28 | { 29 | get { return Piece.Length; } 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/CodeEditor.Composition.Tests/LazyTest.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | 3 | namespace CodeEditor.Composition.Tests 4 | { 5 | [TestFixture] 6 | public class LazyTest 7 | { 8 | [Test] 9 | public void FactoryIsInvokedOnlyOnce() 10 | { 11 | var count = 0; 12 | var lazy = new Lazy(() => (object) ++count); 13 | Assert.AreEqual(0, count); 14 | 15 | Assert.AreEqual(1, lazy.Value); 16 | Assert.AreEqual(1, count); 17 | 18 | Assert.AreEqual(1, lazy.Value); 19 | Assert.AreEqual(1, count); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/CodeEditor.Composition.Tests/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | [assembly: AssemblyTitle("CodeEditor.Composition.Tests")] 5 | [assembly: AssemblyCulture("")] 6 | [assembly: ComVisible(false)] 7 | [assembly: AssemblyVersion("1.0.0.0")] 8 | [assembly: AssemblyFileVersion("1.0.0.0")] 9 | -------------------------------------------------------------------------------- /src/CodeEditor.Composition/CodeEditor.Composition.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.2' 2 | 3 | -------------------------------------------------------------------------------- /src/CodeEditor.Composition/CompositionError.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CodeEditor.Composition 4 | { 5 | [Serializable] 6 | public class CompositionError 7 | { 8 | public CompositionError(Type contractType, string message) 9 | { 10 | ContractType = contractType; 11 | Message = message; 12 | } 13 | 14 | public Type ContractType { get; private set; } 15 | 16 | public string Message { get; private set; } 17 | } 18 | } -------------------------------------------------------------------------------- /src/CodeEditor.Composition/CompositionException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Runtime.Serialization; 4 | 5 | namespace CodeEditor.Composition 6 | { 7 | [Serializable] 8 | public class CompositionException : Exception 9 | { 10 | private readonly IList _errors = new List(); 11 | 12 | public CompositionException(CompositionError error) : base(error.Message) 13 | { 14 | Add(error); 15 | } 16 | 17 | public CompositionException(Exception cause, CompositionError error) : base(error.Message, cause) 18 | { 19 | Add(error); 20 | } 21 | 22 | protected CompositionException(SerializationInfo info, StreamingContext context) : base(info, context) 23 | { 24 | } 25 | 26 | public IList Errors 27 | { 28 | get { return _errors; } 29 | } 30 | 31 | private void Add(CompositionError error) 32 | { 33 | _errors.Add(error); 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/CodeEditor.Composition/ContractAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CodeEditor.Composition 4 | { 5 | public abstract class ContractAttribute : Attribute 6 | { 7 | private readonly Type _contractType; 8 | 9 | protected ContractAttribute(Type contractType) 10 | { 11 | _contractType = contractType; 12 | } 13 | 14 | public Type ContractType 15 | { 16 | get { return _contractType; } 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /src/CodeEditor.Composition/HasExportsAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CodeEditor.Composition 4 | { 5 | /// 6 | /// Marks an assembly as providing exports. The attribute provides a way 7 | /// for clients to force a reference to the composition assembly and thus 8 | /// take part in composition even when they only reference subclasses 9 | /// of the . 10 | /// 11 | [AttributeUsage(AttributeTargets.Assembly)] 12 | public class HasExportsAttribute : Attribute 13 | { 14 | } 15 | } -------------------------------------------------------------------------------- /src/CodeEditor.Composition/Hosting/AggregateCatalog.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using CodeEditor.Composition.Primitives; 5 | 6 | namespace CodeEditor.Composition.Hosting 7 | { 8 | public class AggregateCatalog : IExportDefinitionProvider 9 | { 10 | private readonly IExportDefinitionProvider[] _exportDefinitionProviders; 11 | 12 | public AggregateCatalog(IEnumerable exportProviders) : this(exportProviders.ToArray()) 13 | { 14 | } 15 | 16 | public AggregateCatalog(params IExportDefinitionProvider[] exportDefinitionProviders) 17 | { 18 | _exportDefinitionProviders = exportDefinitionProviders; 19 | } 20 | 21 | public IEnumerable GetExports(Type contractType) 22 | { 23 | return _exportDefinitionProviders.SelectMany(provider => provider.GetExports(contractType)); 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /src/CodeEditor.Composition/Hosting/DirectoryCatalog.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Reflection; 6 | using CodeEditor.Composition.Primitives; 7 | 8 | namespace CodeEditor.Composition.Hosting 9 | { 10 | public class DirectoryCatalog : IExportDefinitionProvider 11 | { 12 | public static Assembly[] AllAssembliesIn(string directory) 13 | { 14 | return Directory.GetFiles(directory, "*.dll").Select(s => Assembly.LoadFrom(s)).ToArray(); 15 | } 16 | 17 | readonly IExportDefinitionProvider _catalog; 18 | 19 | public DirectoryCatalog(string directory) 20 | { 21 | _catalog = AssemblyCatalog.For(AllAssembliesIn(directory)); 22 | } 23 | 24 | public IEnumerable GetExports(Type contractType) 25 | { 26 | return _catalog.GetExports(contractType); 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /src/CodeEditor.Composition/Hosting/EmptyArray.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Composition.Hosting 2 | { 3 | public static class EmptyArray 4 | { 5 | public static T[] Of() 6 | { 7 | return ArrayHolder.Array; 8 | } 9 | 10 | static class ArrayHolder 11 | { 12 | public static readonly T[] Array = new T[0]; 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /src/CodeEditor.Composition/Hosting/ReflectionExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace CodeEditor.Composition.Hosting 5 | { 6 | static class ReflectionExtensions 7 | { 8 | public static IEnumerable BaseTypes(this Type type) 9 | { 10 | var baseType = type.BaseType; 11 | while (baseType != null) 12 | { 13 | yield return baseType; 14 | baseType = baseType.BaseType; 15 | } 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /src/CodeEditor.Composition/ICompositionContainer.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Composition.Primitives; 2 | 3 | namespace CodeEditor.Composition 4 | { 5 | public interface ICompositionContainer : IExportProvider 6 | { 7 | } 8 | } -------------------------------------------------------------------------------- /src/CodeEditor.Composition/ImportAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CodeEditor.Composition.Primitives; 3 | 4 | namespace CodeEditor.Composition 5 | { 6 | /// 7 | /// Imports a service. 8 | /// 9 | [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] 10 | public class ImportAttribute : ContractAttribute 11 | { 12 | public ImportAttribute(Type contractType) : base(contractType) {} 13 | public ImportAttribute() : base(null) {} 14 | 15 | public virtual ImportCardinality Cardinality 16 | { 17 | get { return ImportCardinality.One; } 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /src/CodeEditor.Composition/ImportManyAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CodeEditor.Composition.Primitives; 3 | 4 | namespace CodeEditor.Composition 5 | { 6 | /// 7 | /// Imports all providers of a service. 8 | /// 9 | [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] 10 | public class ImportManyAttribute : ImportAttribute 11 | { 12 | public ImportManyAttribute(Type contractType) : base(contractType) { } 13 | public ImportManyAttribute() : base(null) { } 14 | 15 | public override ImportCardinality Cardinality 16 | { 17 | get { return ImportCardinality.Many; } 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /src/CodeEditor.Composition/ImportingConstructor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CodeEditor.Composition 4 | { 5 | [AttributeUsage(AttributeTargets.Constructor)] 6 | public class ImportingConstructor : Attribute 7 | { 8 | } 9 | } -------------------------------------------------------------------------------- /src/CodeEditor.Composition/Primitives/CustomAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Reflection; 5 | 6 | namespace CodeEditor.Composition.Primitives 7 | { 8 | static class CustomAttribute where T : Attribute 9 | { 10 | public static T From(MemberInfo member) 11 | { 12 | return (T)Attribute.GetCustomAttribute(member, typeof(T), false); 13 | } 14 | 15 | public static IEnumerable AllFrom(MemberInfo member) 16 | { 17 | return Attribute.GetCustomAttributes(member, typeof(T), false).Cast(); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /src/CodeEditor.Composition/Primitives/Export.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | namespace CodeEditor.Composition.Primitives 6 | { 7 | public interface IExportProvider 8 | { 9 | IEnumerable GetExports(Type contractType); 10 | } 11 | 12 | public static class ExportProviderExtensions 13 | { 14 | public static IEnumerable GetExportsWhereMetadata(this IExportProvider provider, Func predicate, Type contractType) 15 | { 16 | return provider.GetExports(contractType).Where(e => e.Metadata.OfType().Any(predicate)); 17 | } 18 | } 19 | 20 | public class Export : Lazy, IMetadataProvider 21 | { 22 | public Export(ExportDefinition definition, Func valueFactory) : base(valueFactory) 23 | { 24 | Definition = definition; 25 | } 26 | 27 | public ExportDefinition Definition 28 | { 29 | get; private set; 30 | } 31 | 32 | public IEnumerable Metadata 33 | { 34 | get { return Definition.Metadata; } 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /src/CodeEditor.Composition/Primitives/ExportDefinition.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace CodeEditor.Composition.Primitives 5 | { 6 | public class ExportDefinition : IMetadataProvider 7 | { 8 | public static IEnumerable DefaultMetadataForType(Type type) 9 | { 10 | return Attribute.GetCustomAttributes(type); 11 | } 12 | 13 | readonly Lazy> _metadata; 14 | 15 | public ExportDefinition(Type contractType, Type implementation) 16 | : this(contractType, implementation, () => DefaultMetadataForType(implementation)) 17 | { 18 | } 19 | 20 | public ExportDefinition(Type contractType, Type implementation, Func> metadataFactory) 21 | { 22 | ContractType = contractType; 23 | Implementation = implementation; 24 | _metadata = new Lazy>(metadataFactory); 25 | } 26 | 27 | public Type ContractType { get; private set; } 28 | 29 | public Type Implementation { get; private set; } 30 | 31 | public IEnumerable Metadata 32 | { 33 | get { return _metadata.Value; } 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/CodeEditor.Composition/Primitives/IExportDefinitionProvider.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace CodeEditor.Composition.Primitives 5 | { 6 | public interface IExportDefinitionProvider 7 | { 8 | IEnumerable GetExports(Type contractType); 9 | } 10 | } -------------------------------------------------------------------------------- /src/CodeEditor.Composition/Primitives/IMetadataProvider.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace CodeEditor.Composition.Primitives 4 | { 5 | public interface IMetadataProvider 6 | { 7 | IEnumerable Metadata { get; } 8 | } 9 | } -------------------------------------------------------------------------------- /src/CodeEditor.Composition/Primitives/ImportCardinality.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Composition.Primitives 2 | { 3 | public enum ImportCardinality 4 | { 5 | One, 6 | Many 7 | } 8 | } -------------------------------------------------------------------------------- /src/CodeEditor.Composition/Primitives/ImportDefinition.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CodeEditor.Composition.Primitives 4 | { 5 | public class ImportDefinition 6 | { 7 | private readonly Action _action; 8 | private readonly Func _constraint; 9 | 10 | public ImportDefinition(Type contractType, ImportCardinality cardinality, Action action, Func constraint) 11 | { 12 | ContractType = contractType; 13 | Cardinality = cardinality; 14 | _action = action; 15 | _constraint = constraint; 16 | } 17 | 18 | public Type ContractType { get; private set; } 19 | 20 | public ImportCardinality Cardinality { get; private set; } 21 | 22 | public void SatisfyWith(Export[] export, object target) 23 | { 24 | _action(export, target); 25 | } 26 | 27 | public bool IsSatisfiableBy(Export export) 28 | { 29 | return _constraint(export); 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /src/CodeEditor.Composition/Primitives/TypeExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | 4 | namespace CodeEditor.Composition.Primitives 5 | { 6 | static class TypeExtensions 7 | { 8 | private const BindingFlags InstanceMemberFlags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic; 9 | 10 | public static MemberInfo[] InstanceMembers(this Type type) 11 | { 12 | return type.GetMembers(InstanceMemberFlags); 13 | } 14 | 15 | public static ConstructorInfo[] InstanceConstructors(this Type type) 16 | { 17 | return type.GetConstructors(InstanceMemberFlags); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /src/CodeEditor.Composition/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | [assembly: AssemblyTitle("CodeEditor.Composition")] 5 | [assembly: AssemblyDescription("")] 6 | [assembly: AssemblyConfiguration("")] 7 | [assembly: AssemblyProduct("CodeEditor")] 8 | [assembly: AssemblyTrademark("")] 9 | [assembly: AssemblyCulture("")] 10 | [assembly: ComVisible(false)] 11 | [assembly: AssemblyVersion("1.0.0.0")] 12 | [assembly: AssemblyFileVersion("1.0.0.0")] 13 | -------------------------------------------------------------------------------- /src/CodeEditor.Composition/README.md: -------------------------------------------------------------------------------- 1 | A composition layer for Unity applications providing an API very similar 2 | to [MEF](http://msdn.microsoft.com/en-us/library/dd460648.aspx). 3 | -------------------------------------------------------------------------------- /src/CodeEditor.ContentTypes.Tests/CodeEditor.ContentTypes.Tests.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | 'default' project(':CodeEditor.Composition') 3 | } 4 | -------------------------------------------------------------------------------- /src/CodeEditor.ContentTypes.Tests/ContentTypeTest.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Composition.Primitives; 2 | using CodeEditor.ContentTypes.Internal; 3 | using CodeEditor.Testing; 4 | using NUnit.Framework; 5 | 6 | namespace CodeEditor.ContentTypes.Tests 7 | { 8 | [TestFixture] 9 | public class ContentTypeTest : MockBasedTest 10 | { 11 | [Test] 12 | public void GetServiceReturnsNullWhenNoServiceCanBeFound() 13 | { 14 | var exportProvider = MockFor(); 15 | exportProvider 16 | .Setup(p => p.GetExports(typeof(IService))) 17 | .Returns(new Export[0]); 18 | 19 | var contentType = new ContentType(exportProvider.Object, "", null); 20 | Assert.IsNull(contentType.GetService()); 21 | } 22 | 23 | interface IService 24 | { 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/CodeEditor.ContentTypes/CodeEditor.ContentTypes.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | 3 | dependencies { 4 | 'default' project(':CodeEditor.Composition') 5 | } 6 | -------------------------------------------------------------------------------- /src/CodeEditor.ContentTypes/Internal/ContentType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq; 3 | using CodeEditor.Composition.Primitives; 4 | 5 | namespace CodeEditor.ContentTypes.Internal 6 | { 7 | public class ContentType : IContentType 8 | { 9 | private readonly IExportProvider _exportProvider; 10 | private readonly string _name; 11 | private readonly IContentTypeDefinition _definition; 12 | 13 | public ContentType(IExportProvider exportProvider, string name, IContentTypeDefinition definition) 14 | { 15 | _exportProvider = exportProvider; 16 | _name = name; 17 | _definition = definition; 18 | } 19 | 20 | public string Name 21 | { 22 | get { return _name; } 23 | } 24 | 25 | public IContentTypeDefinition Definition 26 | { 27 | get { return _definition; } 28 | } 29 | 30 | public object GetService(Type contractType) 31 | { 32 | return _exportProvider 33 | .GetExportsWhereMetadata(m => m.Name == _name, contractType) 34 | .Select(e => e.Value) 35 | .SingleOrDefault(); 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /src/CodeEditor.ContentTypes/Internal/TextContentType.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.ContentTypes.Internal 2 | { 3 | [ContentTypeDefinition("text")] 4 | class TextContentType : IContentTypeDefinition 5 | { 6 | } 7 | 8 | [FileExtensionToContentType("text", ".txt")] 9 | class TextFileExtension 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/CodeEditor.Features.Monitoring.Services/CodeEditor.Features.Monitoring.Services.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | 3 | dependencies { 4 | 'default' rootProject.references.serviceStack 5 | 'default' project(':CodeEditor.ContentTypes') 6 | } 7 | -------------------------------------------------------------------------------- /src/CodeEditor.Features.Monitoring.Services/DumpContentTypeRegistryService.cs: -------------------------------------------------------------------------------- 1 | using System.Linq; 2 | using CodeEditor.ContentTypes; 3 | using ServiceStack.ServiceInterface; 4 | 5 | namespace CodeEditor.Features.Monitoring.Services 6 | { 7 | public class DumpContentTypeRegistryRequest 8 | { 9 | } 10 | 11 | public class DumpContentTypeRegistryService : Service 12 | { 13 | public IContentTypeRegistry ContentTypeRegistry { get; set; } 14 | 15 | public object Get(DumpContentTypeRegistryRequest request) 16 | { 17 | return ContentTypeRegistry 18 | .ContentTypes 19 | .Select(_ => new 20 | { 21 | ContentType = _.Name, 22 | FileExtensions = ContentTypeRegistry.FileExtensionsFor(_) 23 | }); 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /src/CodeEditor.Features.NavigateTo.SourceSymbols.ServiceModel/CodeEditor.Features.NavigateTo.SourceSymbols.ServiceModel.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | 3 | dependencies { 4 | 'default' rootProject.references.serviceStackInterfaces 5 | } 6 | -------------------------------------------------------------------------------- /src/CodeEditor.Features.NavigateTo.SourceSymbols.ServiceModel/SourceSymbols.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using ServiceStack.ServiceHost; 3 | 4 | namespace CodeEditor.Features.NavigateTo.SourceSymbols.ServiceModel 5 | { 6 | public class SourceSymbolSearchRequest : IReturn> 7 | { 8 | public string Filter { get; set; } 9 | } 10 | 11 | public class SourceSymbol 12 | { 13 | public string SourceFile { get; set; } 14 | public int Line { get; set; } 15 | public int Column { get; set; } 16 | public string DisplayText { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/CodeEditor.Features.NavigateTo.SourceSymbols.Services.CSharp.Tests/CodeEditor.Features.NavigateTo.SourceSymbols.Services.CSharp.Tests.gradle: -------------------------------------------------------------------------------- 1 | assembly { 2 | targetFrameworkVersion 'v4.0' 3 | } 4 | 5 | dependencies { 6 | 'default' rootProject.references.frameworks 7 | 'default' project(':CodeEditor.Features.NavigateTo.SourceSymbols.Services') 8 | } 9 | -------------------------------------------------------------------------------- /src/CodeEditor.Features.NavigateTo.SourceSymbols.Services.CSharp/CodeEditor.Features.NavigateTo.SourceSymbols.Services.CSharp.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | 3 | assembly { 4 | targetFrameworkVersion 'v4.0' 5 | } 6 | 7 | def nrefactory(assembly) { 8 | [group: 'ICSharpCode.NRefactory', name: assembly, version: '5.3.0', configuration: 'Net40'] 9 | } 10 | 11 | dependencies { 12 | def projects = [ 13 | ':CodeEditor.Composition', 14 | ':CodeEditor.IO', 15 | ':CodeEditor.Logging', 16 | ':CodeEditor.Reactive', 17 | ':CodeEditor.ContentTypes', 18 | ':CodeEditor.Features.NavigateTo.SourceSymbols.Services', 19 | ':CodeEditor.Languages.CSharp.ContentType', 20 | ] 21 | projects.each { 22 | 'default' project(it) 23 | } 24 | 'default' nrefactory('ICSharpCode.NRefactory') 25 | 'default' nrefactory('ICSharpCode.NRefactory.CSharp') 26 | } 27 | -------------------------------------------------------------------------------- /src/CodeEditor.Features.NavigateTo.SourceSymbols.Services.Tests/CodeEditor.Features.NavigateTo.SourceSymbols.Services.Tests.gradle: -------------------------------------------------------------------------------- 1 | assembly { 2 | targetFrameworkVersion 'v4.0' 3 | } 4 | 5 | dependencies { 6 | 'default' rootProject.references.moq 7 | [ 8 | ':CodeEditor.Features.NavigateTo.SourceSymbols.ServiceModel', 9 | ':CodeEditor.IO', 10 | ':CodeEditor.Logging', 11 | ':CodeEditor.Composition', 12 | ':CodeEditor.ContentTypes', 13 | ':CodeEditor.Reactive', 14 | ].each { 15 | 'default' project(it) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/CodeEditor.Features.NavigateTo.SourceSymbols.Services.UnityScript.Tests/CodeEditor.Features.NavigateTo.SourceSymbols.Services.UnityScript.Tests.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | 3 | dependencies { 4 | 'default' project(':CodeEditor.Features.NavigateTo.SourceSymbols.Services') 5 | 'default' project(':CodeEditor.IO') 6 | } 7 | -------------------------------------------------------------------------------- /src/CodeEditor.Features.NavigateTo.SourceSymbols.Services.UnityScript/CodeEditor.Features.NavigateTo.SourceSymbols.Services.UnityScript.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | 3 | dependencies { 4 | def projects = [ 5 | ':CodeEditor.Composition', 6 | ':CodeEditor.IO', 7 | ':CodeEditor.Logging', 8 | ':CodeEditor.Reactive', 9 | ':CodeEditor.ContentTypes', 10 | ':CodeEditor.Features.NavigateTo.SourceSymbols.Services', 11 | ':CodeEditor.Languages.UnityScript.ContentType', 12 | ] 13 | projects.each { 14 | 'default' project(it) 15 | } 16 | 17 | def booRefs = ['Boo.Lang', 'Boo.Lang.Compiler', 'Boo.Lang.Parser'] 18 | booRefs.each { 19 | 'default' rootProject.references.boo(it) 20 | } 21 | 22 | 'default' 'unityscript:UnityScript:0.1.4' 23 | } 24 | -------------------------------------------------------------------------------- /src/CodeEditor.Features.NavigateTo.SourceSymbols.Services/CodeEditor.Features.NavigateTo.SourceSymbols.Services.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | 3 | dependencies { 4 | 'default' project(':CodeEditor.Features.NavigateTo.SourceSymbols.ServiceModel') 5 | 'default' project(':CodeEditor.Composition') 6 | 'default' project(':CodeEditor.Reactive') 7 | 'default' project(':CodeEditor.ReactiveServiceStack') 8 | 'default' project(':CodeEditor.IO') 9 | 'default' project(':CodeEditor.ContentTypes') 10 | 'default' project(':CodeEditor.Logging') 11 | 'default' rootProject.references.serviceStack 12 | } 13 | -------------------------------------------------------------------------------- /src/CodeEditor.Features.NavigateTo.SourceSymbols.Services/SourceSymbolSearchService.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Features.NavigateTo.SourceSymbols.ServiceModel; 2 | using CodeEditor.Reactive; 3 | using CodeEditor.ReactiveServiceStack; 4 | using ServiceStack.ServiceInterface; 5 | 6 | namespace CodeEditor.Features.NavigateTo.SourceSymbols.Services 7 | { 8 | public class SourceSymbolSearchService : AsyncServiceBase 9 | { 10 | public ISourceSymbolIndexProvider IndexProvider { get; set; } 11 | 12 | protected override object Run(SourceSymbolSearchRequest request) 13 | { 14 | return 15 | SourceSymbolIndex 16 | .SearchSymbol(request.Filter) 17 | .Select(s => new SourceSymbol {DisplayText = s.DisplayText, SourceFile = s.SourceFile.Path, Line = s.Line-1, Column = s.Column-1}) 18 | .ToJsonStreamWriter(); 19 | } 20 | 21 | ISourceSymbolIndex SourceSymbolIndex 22 | { 23 | get { return IndexProvider.Index; } 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /src/CodeEditor.Features.NavigateTo.SourceSymbols/CodeEditor.Features.NavigateTo.SourceSymbols.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | 3 | dependencies { 4 | 'default' project(':CodeEditor.Features.NavigateTo') 5 | 'default' project(':CodeEditor.Features.NavigateTo.SourceSymbols.ServiceModel') 6 | 'default' project(':CodeEditor.ReactiveServiceStack') 7 | 'default' project(':CodeEditor.ServiceClient') 8 | 'default' project(':CodeEditor.Text.UI') 9 | 'default' rootProject.references.frameworks 10 | 'default' rootProject.references.serviceStackClient 11 | } 12 | -------------------------------------------------------------------------------- /src/CodeEditor.Features.NavigateTo.Tests/CodeEditor.Features.NavigateTo.Tests.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | 3 | dependencies { 4 | 'default' rootProject.references.frameworks 5 | } 6 | -------------------------------------------------------------------------------- /src/CodeEditor.Features.NavigateTo.Unity.Editor/CodeEditor.Features.NavigateTo.Unity.Editor.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | 3 | dependencies { 4 | 'default' project(':CodeEditor.Features.NavigateTo') 5 | 'default' project(':CodeEditor.Text.UI.Unity.Editor') 6 | 'default' project(':CodeEditor.Text.UI') 7 | 'default' rootProject.references.frameworks 8 | 'default' rootProject.references.unityEditor 9 | } 10 | -------------------------------------------------------------------------------- /src/CodeEditor.Features.NavigateTo.Unity.Editor/NavigatoToMenuItems.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | 3 | namespace CodeEditor.Features.NavigateTo.Unity.Editor 4 | { 5 | public static class NavigatoToMenuItems 6 | { 7 | [MenuItem("Window/NavigateTo %.")] 8 | public static void OpenNavigateToFileWindow() 9 | { 10 | NavigatorWindow.Open(); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/CodeEditor.Features.NavigateTo.Unity.Editor/ScriptNavigatorItem.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Text.UI; 2 | using UnityEditor; 3 | 4 | namespace CodeEditor.Features.NavigateTo.Unity.Editor 5 | { 6 | public class ScriptNavigatorItem : INavigateToItem 7 | { 8 | readonly IFileNavigationService _fileNavigationService; 9 | 10 | public ScriptNavigatorItem(string displayText, int instanceID, IFileNavigationService fileNavigationService) 11 | { 12 | _fileNavigationService = fileNavigationService; 13 | DisplayText = displayText; 14 | InstanceID = instanceID; 15 | } 16 | 17 | public string DisplayText { get; set; } 18 | 19 | public int InstanceID { get; set; } 20 | 21 | public void NavigateTo() 22 | { 23 | var path = AssetDatabase.GetAssetPath(InstanceID); 24 | if (!string.IsNullOrEmpty(path)) 25 | _fileNavigationService.NavigateTo(System.IO.Path.GetFullPath(path)); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/CodeEditor.Features.NavigateTo/CodeEditor.Features.NavigateTo.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | 3 | dependencies { 4 | 'default' project(':CodeEditor.Reactive') 5 | 'default' project(':CodeEditor.Logging') 6 | 'default' project(':CodeEditor.Composition') 7 | } 8 | -------------------------------------------------------------------------------- /src/CodeEditor.Features.NavigateTo/INavigateToItemProvider.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Reactive; 2 | 3 | namespace CodeEditor.Features.NavigateTo 4 | { 5 | public interface INavigateToItemProvider 6 | { 7 | IObservableX Search(string filter); 8 | } 9 | 10 | public interface INavigateToItem 11 | { 12 | string DisplayText { get; } 13 | void NavigateTo(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/CodeEditor.Features.NavigateTo/INavigateToItemProviderAggregator.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Features.NavigateTo 2 | { 3 | /// 4 | /// Provides a single view over all exported implementations. 5 | /// 6 | public interface INavigateToItemProviderAggregator : INavigateToItemProvider 7 | { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/CodeEditor.Features.NavigateTo/Internal/NavigateToItemProviderAggregator.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq; 3 | using CodeEditor.Composition; 4 | using CodeEditor.Logging; 5 | using CodeEditor.Reactive; 6 | 7 | namespace CodeEditor.Features.NavigateTo.Internal 8 | { 9 | [Export(typeof(INavigateToItemProviderAggregator))] 10 | public class NavigateToItemProviderAggregator : INavigateToItemProviderAggregator 11 | { 12 | [ImportMany] 13 | public INavigateToItemProvider[] Providers { get; set; } 14 | 15 | [Import] 16 | public ILogger Logger { get; set; } 17 | 18 | public IObservableX Search(string filter) 19 | { 20 | return Providers 21 | .Select(provider => 22 | provider 23 | .Search(filter) 24 | .Catch((Exception exception) => 25 | { 26 | Logger.LogError(exception); 27 | return ObservableX.Empty(); 28 | })) 29 | .Merge(); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/CodeEditor.Grammars/CodeEditor.Grammars.gradle: -------------------------------------------------------------------------------- 1 | 2 | version = '0.1.1' 3 | 4 | dependencies { 5 | 'default' rootProject.references.adt 6 | 'default' rootProject.references.ometa 7 | 'default' rootProject.references.boo('Boo.Lang.PatternMatching') 8 | } 9 | 10 | -------------------------------------------------------------------------------- /src/CodeEditor.Grammars/Tokenizer.boo: -------------------------------------------------------------------------------- 1 | namespace Boo.Ide.Grammars 2 | 3 | import Boo.OMeta 4 | import Boo.Adt 5 | import PatternMatching 6 | 7 | enum TokenType: 8 | None 9 | Identifier 10 | Number 11 | Punctuation 12 | WhiteSpace 13 | 14 | data Token(Begin as int, End as int, Type as TokenType) < System.ValueType 15 | 16 | ometa Tokenizer: 17 | 18 | def Tokenize(text as string): 19 | remaining = OMetaInput.For(text) 20 | while not remaining.IsEmpty: 21 | match next(remaining): 22 | case SuccessfulMatch(Input, Value): 23 | yield Token(remaining.Position, Input.Position, Value) 24 | remaining = Input 25 | 26 | next = noise | symbol 27 | noise = ++(~symbol, _) ^ TokenType.None 28 | symbol = identifier | number | punctuation | whitespaces 29 | whitespaces = ++whitespace ^ TokenType.WhiteSpace 30 | punctuation = (_ >> c and char.IsPunctuation(c)) ^ TokenType.Punctuation 31 | number = ++digit, (('.', ++digit) | ''), ('f' | 'F' | 'l' | 'L' | '') ^ TokenType.Number 32 | identifier = prefix, --suffix ^ TokenType.Identifier 33 | prefix = letter | '_' 34 | suffix = prefix | digit 35 | -------------------------------------------------------------------------------- /src/CodeEditor.IO.Tests/FileTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using NUnit.Framework; 4 | using File = CodeEditor.IO.Internal.File; 5 | 6 | namespace CodeEditor.IO.Tests 7 | { 8 | [TestFixture] 9 | public class FileTest 10 | { 11 | [Test] 12 | public void CanReadAllTextOfFileSharedForRead() 13 | { 14 | var fileName = Path.GetTempFileName(); 15 | using (var writer = new StreamWriter(System.IO.File.Open(fileName, FileMode.Open, FileAccess.Write, FileShare.Read))) 16 | { 17 | writer.Write("42"); 18 | writer.Flush(); 19 | Assert.AreEqual("42", new File(fileName).ReadAllText()); 20 | } 21 | } 22 | 23 | [Test] 24 | public void FileRemembersAbsoluteLocationAtMomentOfCreation() 25 | { 26 | var file = new File("test"); 27 | var originalDirectory = Environment.CurrentDirectory; 28 | Environment.CurrentDirectory = Path.GetDirectoryName(originalDirectory); 29 | Assert.AreEqual(Path.Combine(originalDirectory, "test"), file.Path.Location); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/CodeEditor.IO.Unity.Editor/CodeEditor.IO.Unity.Editor.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | 3 | dependencies { 4 | 'default' project(':CodeEditor.IO') 5 | 'default' rootProject.references.unityEditor 6 | } 7 | -------------------------------------------------------------------------------- /src/CodeEditor.IO.Unity.Editor/UnityMonoExecutableProvider.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using UnityEditor; 3 | 4 | namespace CodeEditor.IO.Unity.Editor 5 | { 6 | /// 7 | /// A that returns the location 8 | /// of the MonoBleedingEdge executable shipped with Unity. 9 | /// 10 | public class UnityMonoExecutableProvider : MonoExecutableProvider 11 | { 12 | public UnityMonoExecutableProvider() 13 | : base(MonoBleedingEdgeExecutable) 14 | { 15 | } 16 | 17 | static string MonoBleedingEdgeExecutable 18 | { 19 | get { return Path.Combine(EditorApplication.applicationContentsPath, "MonoBleedingEdge/bin/mono.exe"); } 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /src/CodeEditor.IO/CodeEditor.IO.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.2' 2 | 3 | dependencies { 4 | 'default' project(':CodeEditor.Composition') 5 | } 6 | -------------------------------------------------------------------------------- /src/CodeEditor.IO/IEnvironmentVariables.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Composition; 2 | 3 | namespace CodeEditor.IO 4 | { 5 | public interface IEnvironmentVariables 6 | { 7 | /// null if the variable is not set 8 | string ValueOf(string variable); 9 | } 10 | 11 | [Export(typeof(IEnvironmentVariables))] 12 | class EnvironmentVariables : IEnvironmentVariables 13 | { 14 | public string ValueOf(string variable) 15 | { 16 | return System.Environment.GetEnvironmentVariable(variable); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /src/CodeEditor.IO/Internal/File.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | 3 | namespace CodeEditor.IO.Internal 4 | { 5 | public class File : Resource, IFile 6 | { 7 | public File(ResourcePath path) : base(path) 8 | { 9 | } 10 | 11 | public string ReadAllText() 12 | { 13 | using (var reader = new StreamReader(System.IO.File.Open(Location, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))) 14 | return reader.ReadToEnd(); 15 | } 16 | 17 | public virtual void WriteAllText(string text) 18 | { 19 | System.IO.File.WriteAllText(Location, text); 20 | } 21 | 22 | public void Delete() 23 | { 24 | System.IO.File.Delete(Location); 25 | } 26 | 27 | public override bool Exists() 28 | { 29 | return System.IO.File.Exists(Location); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/CodeEditor.IO/Internal/FileSystem.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Composition; 2 | 3 | namespace CodeEditor.IO.Internal 4 | { 5 | [Export(typeof(IFileSystem))] 6 | public class FileSystem : IFileSystem 7 | { 8 | public IFile FileFor(ResourcePath path) 9 | { 10 | return new File(path); 11 | } 12 | 13 | public IFolder FolderFor(ResourcePath path) 14 | { 15 | return new Folder(path, this); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/CodeEditor.IO/Internal/Resource.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.IO.Internal 2 | { 3 | public abstract class Resource : IResource 4 | { 5 | readonly ResourcePath _path; 6 | 7 | protected Resource(ResourcePath path) 8 | { 9 | _path = path.ToAbsolutePath(); 10 | } 11 | 12 | public ResourcePath Path 13 | { 14 | get { return _path; } 15 | } 16 | 17 | public string Location 18 | { 19 | get { return _path.Location; } 20 | } 21 | 22 | public string Extension 23 | { 24 | get { return _path.Extension; } 25 | } 26 | 27 | public abstract bool Exists(); 28 | } 29 | } -------------------------------------------------------------------------------- /src/CodeEditor.IO/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | [assembly: AssemblyTitle("CodeEditor.IO")] 5 | [assembly: AssemblyDescription("")] 6 | [assembly: AssemblyConfiguration("")] 7 | [assembly: AssemblyCompany("")] 8 | [assembly: AssemblyProduct("CodeEditor.IO")] 9 | [assembly: AssemblyCopyright("Copyright © 2012")] 10 | [assembly: AssemblyTrademark("")] 11 | [assembly: AssemblyCulture("")] 12 | [assembly: ComVisible(false)] 13 | [assembly: AssemblyVersion("1.0.0.0")] 14 | [assembly: AssemblyFileVersion("1.0.0.0")] 15 | -------------------------------------------------------------------------------- /src/CodeEditor.IO/README.md: -------------------------------------------------------------------------------- 1 | A mockable file system API. 2 | -------------------------------------------------------------------------------- /src/CodeEditor.Languages.Boo/BooClassifierProvider.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Composition; 2 | using CodeEditor.ContentTypes; 3 | using CodeEditor.Text.Data; 4 | using CodeEditor.Text.Logic; 5 | 6 | namespace CodeEditor.Languages.Boo 7 | { 8 | [Export(typeof(IClassifierProvider))] 9 | [ContentType(BooContentType.Name)] 10 | class BooClassifierProvider : IClassifierProvider 11 | { 12 | [Import] 13 | public IStandardClassificationRegistry ClassificationRegistry { get; set; } 14 | 15 | public IClassifier ClassifierFor(ITextBuffer buffer) 16 | { 17 | return new BooClassifier(ClassificationRegistry, buffer); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /src/CodeEditor.Languages.Boo/BooContentType.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.ContentTypes; 2 | 3 | namespace CodeEditor.Languages.Boo 4 | { 5 | [ContentTypeDefinition(Name)] 6 | class BooContentType : IContentTypeDefinition 7 | { 8 | public const string Name = "Boo"; 9 | } 10 | 11 | [FileExtensionToContentType(BooContentType.Name, ".boo")] 12 | class BooFileExtension : IFileExtensionToContentTypeDefinition 13 | { 14 | } 15 | } -------------------------------------------------------------------------------- /src/CodeEditor.Languages.Boo/CodeEditor.Languages.Boo.gradle: -------------------------------------------------------------------------------- 1 | 2 | version = '0.1.1' 3 | 4 | dependencies { 5 | 'default' rootProject.references.languagesCommon 6 | } 7 | -------------------------------------------------------------------------------- /src/CodeEditor.Languages.Boo/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | [assembly: AssemblyTitle("CodeEditor.Languages.Boo")] 5 | [assembly: AssemblyDescription("")] 6 | [assembly: AssemblyConfiguration("")] 7 | [assembly: AssemblyCompany("")] 8 | [assembly: AssemblyProduct("CodeEditor.Languages.Boo")] 9 | [assembly: AssemblyCopyright("Copyright © 2012")] 10 | [assembly: AssemblyTrademark("")] 11 | [assembly: AssemblyCulture("")] 12 | [assembly: ComVisible(false)] 13 | [assembly: AssemblyVersion("1.0.0.0")] 14 | [assembly: AssemblyFileVersion("1.0.0.0")] 15 | -------------------------------------------------------------------------------- /src/CodeEditor.Languages.CSharp.ContentType/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Composition; 2 | 3 | [assembly: HasExports] 4 | 5 | -------------------------------------------------------------------------------- /src/CodeEditor.Languages.CSharp.ContentType/CSharpContentType.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.ContentTypes; 2 | 3 | namespace CodeEditor.Languages.CSharp.ContentType 4 | { 5 | [ContentTypeDefinition(Name)] 6 | public class CSharpContentType : IContentTypeDefinition 7 | { 8 | public const string Name = "CSharp"; 9 | } 10 | 11 | [FileExtensionToContentType(CSharpContentType.Name, ".cs")] 12 | class CSharpFileExtension : IFileExtensionToContentTypeDefinition 13 | { 14 | } 15 | } -------------------------------------------------------------------------------- /src/CodeEditor.Languages.CSharp.ContentType/CodeEditor.Languages.CSharp.ContentType.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | 3 | dependencies { 4 | 'default' project(':CodeEditor.Composition') 5 | 'default' project(':CodeEditor.ContentTypes') 6 | } 7 | -------------------------------------------------------------------------------- /src/CodeEditor.Languages.CSharp/CSharpClassifierProvider.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Composition; 2 | using CodeEditor.ContentTypes; 3 | using CodeEditor.Languages.CSharp.ContentType; 4 | using CodeEditor.Text.Data; 5 | using CodeEditor.Text.Logic; 6 | 7 | namespace CodeEditor.Languages.CSharp 8 | { 9 | [Export(typeof(IClassifierProvider))] 10 | [ContentType(CSharpContentType.Name)] 11 | class CSharpClassifierProvider : IClassifierProvider 12 | { 13 | [Import] 14 | public IStandardClassificationRegistry ClassificationRegistry { get; set; } 15 | 16 | public IClassifier ClassifierFor(ITextBuffer buffer) 17 | { 18 | return new CSharpClassifier(ClassificationRegistry, buffer); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/CodeEditor.Languages.CSharp/CSharpCompletionProvider.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Text.Data; 2 | using CodeEditor.Text.UI.Completion; 3 | using CodeEditor.Text.UI.Completion.Implementation; 4 | 5 | namespace CodeEditor.Languages.CSharp 6 | { 7 | public class CSharpCompletionProvider : ICompletionProvider 8 | { 9 | public ICompletionSet CompletionsFor(TextSpan contextForCompletion) 10 | { 11 | return new CompletionSet(new Completion[0]); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/CodeEditor.Languages.CSharp/CodeEditor.Languages.CSharp.gradle: -------------------------------------------------------------------------------- 1 | 2 | version = '0.1.1' 3 | 4 | dependencies { 5 | 'default' rootProject.references.languagesCommon 6 | 'default' project(':CodeEditor.Languages.CSharp.ContentType') 7 | } 8 | -------------------------------------------------------------------------------- /src/CodeEditor.Languages.CSharp/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | [assembly: AssemblyTitle("CodeEditor.Languages.CSharp")] 5 | [assembly: AssemblyDescription("")] 6 | [assembly: AssemblyConfiguration("")] 7 | [assembly: AssemblyCompany("")] 8 | [assembly: AssemblyProduct("CodeEditor.Languages.CSharp")] 9 | [assembly: AssemblyCopyright("Copyright © 2012")] 10 | [assembly: AssemblyTrademark("")] 11 | [assembly: AssemblyCulture("")] 12 | [assembly: ComVisible(false)] 13 | [assembly: AssemblyVersion("1.0.0.0")] 14 | [assembly: AssemblyFileVersion("1.0.0.0")] 15 | -------------------------------------------------------------------------------- /src/CodeEditor.Languages.Common.Tests/CodeEditor.Languages.Common.Tests.gradle: -------------------------------------------------------------------------------- 1 | 2 | dependencies { 3 | 'default' rootProject.references.languagesCommon 4 | def projectReferences = [ 5 | 'CodeEditor.Grammars', 6 | ] 7 | projectReferences.each { 8 | 'default' project(":$it") 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/CodeEditor.Languages.Common.Tests/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | [assembly: AssemblyTitle("CodeEditor.Languages.Common.Tests")] 5 | [assembly: AssemblyDescription("")] 6 | [assembly: AssemblyConfiguration("")] 7 | [assembly: AssemblyCompany("Microsoft")] 8 | [assembly: AssemblyProduct("CodeEditor.Languages.Common.Tests")] 9 | [assembly: AssemblyTrademark("")] 10 | [assembly: AssemblyCulture("")] 11 | [assembly: ComVisible(false)] 12 | [assembly: AssemblyVersion("1.0.0.0")] 13 | [assembly: AssemblyFileVersion("1.0.0.0")] 14 | -------------------------------------------------------------------------------- /src/CodeEditor.Languages.Common/CodeEditor.Languages.Common.gradle: -------------------------------------------------------------------------------- 1 | 2 | version = '0.1.1' 3 | 4 | dependencies { 5 | def projectReferences = [ 6 | 'CodeEditor.Composition', 7 | 'CodeEditor.IO', 8 | 'CodeEditor.Logging', 9 | 'CodeEditor.Reactive', 10 | 'CodeEditor.Text.Data', 11 | 'CodeEditor.Text.Logic', 12 | 'CodeEditor.Text.UI', 13 | 'CodeEditor.Grammars', 14 | 'CodeEditor.Collections', 15 | 'CodeEditor.ServiceClient', 16 | 'CodeEditor.ReactiveServiceStack', 17 | ] 18 | projectReferences.each { 19 | 'default' project(":$it") 20 | } 21 | 'default' rootProject.references.ometa 22 | 'default' rootProject.references.serviceStackClient 23 | } 24 | -------------------------------------------------------------------------------- /src/CodeEditor.Languages.Common/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | [assembly: AssemblyTitle("CodeEditor.Languages.Common")] 5 | [assembly: AssemblyDescription("")] 6 | [assembly: AssemblyConfiguration("")] 7 | [assembly: AssemblyCompany("")] 8 | [assembly: AssemblyProduct("CodeEditor.Languages.Common")] 9 | [assembly: AssemblyCopyright("Copyright © 2012")] 10 | [assembly: AssemblyTrademark("")] 11 | [assembly: AssemblyCulture("")] 12 | [assembly: ComVisible(false)] 13 | [assembly: AssemblyVersion("1.0.0.0")] 14 | [assembly: AssemblyFileVersion("1.0.0.0")] 15 | -------------------------------------------------------------------------------- /src/CodeEditor.Languages.UnityScript.ContentType/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Composition; 2 | 3 | [assembly: HasExports] 4 | -------------------------------------------------------------------------------- /src/CodeEditor.Languages.UnityScript.ContentType/CodeEditor.Languages.UnityScript.ContentType.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | 3 | dependencies { 4 | 'default' project(':CodeEditor.Composition') 5 | 'default' project(':CodeEditor.ContentTypes') 6 | } 7 | -------------------------------------------------------------------------------- /src/CodeEditor.Languages.UnityScript.ContentType/UnityScriptContentType.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.ContentTypes; 2 | 3 | namespace CodeEditor.Languages.UnityScript.ContentType 4 | { 5 | [ContentTypeDefinition(Name)] 6 | public class UnityScriptContentType : IContentTypeDefinition 7 | { 8 | public const string Name = "UnityScript"; 9 | } 10 | 11 | [FileExtensionToContentType(UnityScriptContentType.Name, ".js")] 12 | class UnityScriptFileExtension : IFileExtensionToContentTypeDefinition 13 | { 14 | } 15 | } -------------------------------------------------------------------------------- /src/CodeEditor.Languages.UnityScript.Tests/CodeEditor.Languages.UnityScript.Tests.gradle: -------------------------------------------------------------------------------- 1 | 2 | dependencies { 3 | def projectReferences = [ 4 | 'CodeEditor.Text.Data', 5 | 'CodeEditor.Text.Logic', 6 | 'CodeEditor.Text.UI', 7 | 'CodeEditor.Languages.Common', 8 | 'CodeEditor.Text.Data.Tests', 9 | ] 10 | projectReferences.each { 11 | 'default' project(":$it") 12 | } 13 | 'default' rootProject.references.moq 14 | } 15 | -------------------------------------------------------------------------------- /src/CodeEditor.Languages.UnityScript/CodeEditor.Languages.UnityScript.gradle: -------------------------------------------------------------------------------- 1 | 2 | version = '0.1.1' 3 | 4 | dependencies { 5 | 'default' rootProject.references.languagesCommon 6 | 'default' project(':CodeEditor.Languages.UnityScript.ContentType') 7 | } 8 | -------------------------------------------------------------------------------- /src/CodeEditor.Languages.UnityScript/CompletionProvider.cs: -------------------------------------------------------------------------------- 1 | using System.Linq; 2 | using CodeEditor.Composition; 3 | using CodeEditor.ContentTypes; 4 | using CodeEditor.Languages.UnityScript.ContentType; 5 | using CodeEditor.Text.Data; 6 | using CodeEditor.Text.UI.Completion; 7 | using CodeEditor.Text.UI.Completion.Implementation; 8 | 9 | namespace CodeEditor.Languages.UnityScript 10 | { 11 | [Export(typeof(ICompletionProvider))] 12 | [ContentType(UnityScriptContentType.Name)] 13 | public class UnityScriptCompletionProvider : ICompletionProvider 14 | { 15 | public ICompletionSet CompletionsFor(TextSpan contextForCompletion) 16 | { 17 | return new CompletionSet(UnityScriptClassifier.Keywords.Select(kw => (ICompletion)new Completion(kw))); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/CodeEditor.Languages.UnityScript/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | [assembly: AssemblyTitle("CodeEditor.Languages.UnityScript")] 5 | [assembly: AssemblyDescription("")] 6 | [assembly: AssemblyConfiguration("")] 7 | [assembly: AssemblyCompany("")] 8 | [assembly: AssemblyProduct("CodeEditor.Languages.UnityScript")] 9 | [assembly: AssemblyCopyright("Copyright © 2012")] 10 | [assembly: AssemblyTrademark("")] 11 | [assembly: AssemblyCulture("")] 12 | [assembly: ComVisible(false)] 13 | [assembly: AssemblyVersion("1.0.0.0")] 14 | [assembly: AssemblyFileVersion("1.0.0.0")] 15 | -------------------------------------------------------------------------------- /src/CodeEditor.Languages.UnityScript/UnityScriptClassifierProvider.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Composition; 2 | using CodeEditor.ContentTypes; 3 | using CodeEditor.Languages.UnityScript.ContentType; 4 | using CodeEditor.Text.Data; 5 | using CodeEditor.Text.Logic; 6 | 7 | namespace CodeEditor.Languages.UnityScript 8 | { 9 | [Export(typeof(IClassifierProvider))] 10 | [ContentType(UnityScriptContentType.Name)] 11 | class UnityScriptClassifierProvider : IClassifierProvider 12 | { 13 | [Import] 14 | public IStandardClassificationRegistry ClassificationRegistry { get; set; } 15 | 16 | public IClassifier ClassifierFor(ITextBuffer buffer) 17 | { 18 | return new UnityScriptClassifier(ClassificationRegistry, buffer); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/CodeEditor.Logging.Unity/CodeEditor.Logging.Unity.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | 3 | dependencies { 4 | 'default' project(':CodeEditor.Logging') 5 | 'default' rootProject.references.unityEngine 6 | } 7 | -------------------------------------------------------------------------------- /src/CodeEditor.Logging.Unity/UnityLogger.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace CodeEditor.Logging.Unity 5 | { 6 | public class UnityLogger : ILogger 7 | { 8 | public void Log(object value) 9 | { 10 | Debug.Log(value); 11 | } 12 | 13 | public void LogError(Exception exception) 14 | { 15 | Debug.LogException(exception); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /src/CodeEditor.Logging/CodeEditor.Logging.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | 3 | dependencies { 4 | 'default' project(':CodeEditor.Composition') 5 | } 6 | -------------------------------------------------------------------------------- /src/CodeEditor.Logging/ILogger.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CodeEditor.Composition; 3 | 4 | namespace CodeEditor.Logging 5 | { 6 | public interface ILogger 7 | { 8 | void Log(object value); 9 | void LogError(Exception exception); 10 | } 11 | 12 | [Export(typeof(ILogger))] 13 | public class StandardLogger : ILogger 14 | { 15 | public void Log(object value) 16 | { 17 | Console.WriteLine(value); 18 | } 19 | 20 | public void LogError(Exception exception) 21 | { 22 | Console.Error.WriteLine(exception); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /src/CodeEditor.Reactive.Tests/CodeEditor.Reactive.Tests.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | -------------------------------------------------------------------------------- /src/CodeEditor.Reactive/CodeEditor.Reactive.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | 3 | dependencies { 4 | 'default' rootProject.references.rx35 5 | } 6 | 7 | -------------------------------------------------------------------------------- /src/CodeEditor.Reactive/Disposables/Disposable.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CodeEditor.Reactive.Disposables 4 | { 5 | public static class Disposable 6 | { 7 | public static IDisposable Empty 8 | { 9 | get { return System.Disposables.Disposable.Empty; } 10 | } 11 | 12 | public static IDisposable Create(Action dispose) 13 | { 14 | return System.Disposables.Disposable.Create(dispose); 15 | } 16 | 17 | public static IDisposable Compose(params IDisposable[] disposables) 18 | { 19 | return new System.Disposables.CompositeDisposable(disposables); 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /src/CodeEditor.Reactive/Disposables/MultipleAssignmentDisposable.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CodeEditor.Reactive.Disposables 4 | { 5 | public class MultipleAssignmentDisposable : IDisposable 6 | { 7 | readonly object _lock = new object(); 8 | bool _disposed; 9 | IDisposable _disposable; 10 | 11 | public IDisposable Disposable 12 | { 13 | get 14 | { 15 | lock (_lock) 16 | return _disposable; 17 | } 18 | set 19 | { 20 | lock (_lock) 21 | { 22 | if (_disposed) 23 | value.Dispose(); 24 | else 25 | _disposable = value; 26 | } 27 | } 28 | } 29 | 30 | public void Dispose() 31 | { 32 | lock (_lock) 33 | { 34 | if (_disposed) 35 | return; 36 | _disposed = true; 37 | if (_disposable == null) 38 | return; 39 | _disposable.Dispose(); 40 | _disposable = null; 41 | } 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/CodeEditor.Reactive/Disposables/SerialDisposable.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Disposables; 3 | 4 | namespace CodeEditor.Reactive.Disposables 5 | { 6 | public class SerialDisposable : IDisposable 7 | { 8 | readonly MutableDisposable _disposable = new MutableDisposable(); 9 | 10 | public IDisposable Disposable 11 | { 12 | get { return _disposable.Disposable; } 13 | set { _disposable.Disposable = value; } 14 | } 15 | 16 | public void Dispose() 17 | { 18 | _disposable.Dispose(); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/CodeEditor.ReactiveServiceStack/CodeEditor.ReactiveServiceStack.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | 3 | dependencies { 4 | 'default' project(':CodeEditor.Composition') 5 | 'default' project(':CodeEditor.Reactive') 6 | 'default' rootProject.references.serviceStackClient 7 | } 8 | -------------------------------------------------------------------------------- /src/CodeEditor.ServiceClient.Tests/CodeEditor.ServiceClient.Tests.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | 3 | dependencies { 4 | 'default' rootProject.references.frameworks 5 | 'default' project(':CodeEditor.ReactiveServiceStack') 6 | } 7 | -------------------------------------------------------------------------------- /src/CodeEditor.ServiceClient/CodeEditor.ServiceClient.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | 3 | dependencies { 4 | 'default' rootProject.references.frameworks 5 | 'default' rootProject.references.serviceStackClient 6 | 'default' project(':CodeEditor.ReactiveServiceStack') 7 | } 8 | -------------------------------------------------------------------------------- /src/CodeEditor.ServiceHost/CodeEditor.ServiceHost.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.0' 2 | 3 | assembly { 4 | target = 'exe' 5 | targetFrameworkVersion = 'v4.0' 6 | } 7 | 8 | dependencies { 9 | def projectReferences = [ 10 | 'CodeEditor.Composition', 11 | ] 12 | projectReferences.each { 13 | 'default' project(":$it") 14 | } 15 | 'default' rootProject.references.serviceStack 16 | } 17 | 18 | -------------------------------------------------------------------------------- /src/CodeEditor.ServiceHost/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/CodeEditor.Testing/CodeEditor.Testing.gradle: -------------------------------------------------------------------------------- 1 | 2 | version = '0.1.1' 3 | 4 | dependencies { 5 | 'default' project(':CodeEditor.Composition') 6 | 'default' rootProject.references.nunitFramework 7 | 'default' rootProject.references.moq 8 | } 9 | -------------------------------------------------------------------------------- /src/CodeEditor.Testing/MockBasedTest.cs: -------------------------------------------------------------------------------- 1 | using Moq; 2 | using NUnit.Framework; 3 | 4 | namespace CodeEditor.Testing 5 | { 6 | public abstract class MockBasedTest 7 | { 8 | [SetUp] 9 | public void SetUpMockRepository() 10 | { 11 | _mocks = new MockRepository(MockBehavior.Strict); 12 | } 13 | 14 | protected Mock MockFor() where T : class 15 | { 16 | return MockFor(MockBehavior.Strict); 17 | } 18 | 19 | protected Mock MockFor(MockBehavior mockBehavior) where T : class 20 | { 21 | return _mocks.Create(mockBehavior); 22 | } 23 | 24 | protected void VerifyAllMocks() 25 | { 26 | _mocks.VerifyAll(); 27 | } 28 | 29 | private MockRepository _mocks; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/CodeEditor.Testing/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | [assembly: AssemblyTitle("CodeEditor.Testing")] 5 | [assembly: AssemblyDescription("")] 6 | [assembly: AssemblyConfiguration("")] 7 | [assembly: AssemblyCompany("")] 8 | [assembly: AssemblyProduct("CodeEditor.Testing")] 9 | [assembly: AssemblyCopyright("Copyright © 2012")] 10 | [assembly: AssemblyTrademark("")] 11 | [assembly: AssemblyCulture("")] 12 | [assembly: ComVisible(false)] 13 | [assembly: AssemblyVersion("1.0.0.0")] 14 | [assembly: AssemblyFileVersion("1.0.0.0")] 15 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.Data.Tests/CodeEditor.Text.Data.Tests.gradle: -------------------------------------------------------------------------------- 1 | 2 | dependencies { 3 | def projectReferences = [ 4 | 'CodeEditor.Composition', 5 | 'CodeEditor.ContentTypes', 6 | 'CodeEditor.Collections', 7 | 'CodeEditor.IO', 8 | ] 9 | projectReferences.each { 10 | 'default' project(":$it") 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.Data.Tests/EmptyTextBufferTest.cs: -------------------------------------------------------------------------------- 1 | using NUnit.Framework; 2 | 3 | namespace CodeEditor.Text.Data.Tests 4 | { 5 | [TestFixture] 6 | public class EmptyTextBufferTest : TextBufferBasedTest 7 | { 8 | [Test] 9 | public void EmptyBufferHasSingleEmptyLine() 10 | { 11 | Assert.AreEqual(1, Buffer.CurrentSnapshot.Lines.Count); 12 | AssertTextOfLine(0, ""); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.Data.Tests/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | [assembly: AssemblyTitle("CodeEditor.Text.Data.Tests")] 5 | [assembly: AssemblyDescription("")] 6 | [assembly: AssemblyConfiguration("")] 7 | [assembly: AssemblyCompany("")] 8 | [assembly: AssemblyProduct("CodeEditor.Text.Data.Tests")] 9 | [assembly: AssemblyCopyright("Copyright © 2012")] 10 | [assembly: AssemblyTrademark("")] 11 | [assembly: AssemblyCulture("")] 12 | [assembly: ComVisible(false)] 13 | [assembly: AssemblyVersion("1.0.0.0")] 14 | [assembly: AssemblyFileVersion("1.0.0.0")] 15 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.Data.Tests/TextBufferBasedTest.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Text.Data.Implementation; 2 | using NUnit.Framework; 3 | 4 | namespace CodeEditor.Text.Data.Tests 5 | { 6 | public class TextBufferBasedTest 7 | { 8 | private ITextBuffer _buffer; 9 | 10 | [SetUp] 11 | public void CreateBuffer() 12 | { 13 | SetText(""); 14 | } 15 | 16 | protected ITextBuffer Buffer 17 | { 18 | get { return _buffer; } 19 | } 20 | 21 | protected ITextSnapshot CurrentSnapshot 22 | { 23 | get { return Buffer.CurrentSnapshot; } 24 | } 25 | 26 | protected void AssertTextOfLine(int lineNumber, string expected) 27 | { 28 | Assert.AreEqual(expected, Buffer.CurrentSnapshot.Lines[lineNumber].Text); 29 | } 30 | 31 | protected void SetText(string text) 32 | { 33 | _buffer = new TextBuffer(text, null); 34 | } 35 | 36 | protected void AssertText(string expected) 37 | { 38 | Assert.AreEqual(expected, Buffer.CurrentSnapshot.Text); 39 | } 40 | 41 | protected ITextSnapshotLine TextLine(int number) 42 | { 43 | return Buffer.CurrentSnapshot.Lines[number]; 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.Data.Tests/TextBufferLineTest.cs: -------------------------------------------------------------------------------- 1 | using System.Linq; 2 | using NUnit.Framework; 3 | 4 | namespace CodeEditor.Text.Data.Tests 5 | { 6 | [TestFixture] 7 | public class TextBufferLineTest : TextBufferBasedTest 8 | { 9 | [Test] 10 | [TestCaseAttribute(0, 0, 7)] 11 | [TestCaseAttribute(1, 7, 6)] 12 | public void ExtentIncludingLineBreak(int lineNumber, int expectedStart, int expectedLength) 13 | { 14 | SetText("line 0\nline 1"); 15 | Assert.AreEqual(new Span(expectedStart, expectedLength), Buffer.CurrentSnapshot.Lines[lineNumber].ExtentIncludingLineBreak.Span); 16 | } 17 | 18 | [Test] 19 | [TestCaseAttribute("0", new[] { "0" })] 20 | [TestCaseAttribute("0\n", new[] { "0", "" })] 21 | [TestCaseAttribute("0\n1", new[] { "0", "1" })] 22 | [TestCaseAttribute("0\n1\n", new[] { "0", "1", "" })] 23 | public void InsertingNewLineCharacterBegetsNewLine(string textToBeInserted, string[] expectedLines) 24 | { 25 | SetText(""); 26 | Buffer.Insert(0, textToBeInserted); 27 | Assert.AreEqual(expectedLines, Buffer.CurrentSnapshot.Lines.Select(l => l.Text).ToArray()); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.Data/CodeEditor.Text.Data.gradle: -------------------------------------------------------------------------------- 1 | version = '0.1.1' 2 | 3 | dependencies { 4 | def projectReferences = [ 5 | 'CodeEditor.Composition', 6 | 'CodeEditor.ContentTypes', 7 | 'CodeEditor.IO', 8 | 'CodeEditor.Collections' 9 | ] 10 | projectReferences.each { 11 | 'default' project(":$it") 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.Data/ITextBuffer.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.ContentTypes; 2 | 3 | namespace CodeEditor.Text.Data 4 | { 5 | public interface ITextBuffer 6 | { 7 | IContentType ContentType { get; } 8 | ITextSnapshot CurrentSnapshot { get; } 9 | 10 | void Insert(int position, string text); 11 | void Delete(int start, int length); 12 | 13 | event TextChange Changed; 14 | } 15 | 16 | public static class TextBufferExtensions 17 | { 18 | public static void Append(this ITextBuffer buffer, string text) 19 | { 20 | buffer.Insert(buffer.CurrentSnapshot.Length, text); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.Data/ITextDocument.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.IO; 2 | 3 | namespace CodeEditor.Text.Data 4 | { 5 | public interface ITextDocumentFactory 6 | { 7 | ITextDocument ForFile(IFile file); 8 | } 9 | 10 | public interface ITextDocument 11 | { 12 | IFile File { get; } 13 | ITextBuffer Buffer { get; } 14 | void Save(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.Data/ITextSnapshot.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Text.Data 2 | { 3 | public interface ITextSnapshot 4 | { 5 | char this[int position] { get; } 6 | string Text { get; } 7 | int Length { get; } 8 | ITextBuffer Buffer { get; } 9 | ITextSnapshotLines Lines { get; } 10 | 11 | string GetText(Span span); 12 | TextSpan GetSpan(int position, int length); 13 | int LineNumberForPosition(int position); 14 | string GetText(int start, int length); 15 | } 16 | 17 | public static class TextSnapshotExtensions 18 | { 19 | public static TextSpan GetSpan(this ITextSnapshot snapshot, Span span) 20 | { 21 | return snapshot.GetSpan(span.Start, span.Length); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.Data/ITextSnapshotLine.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Text.Data 2 | { 3 | public interface ITextSnapshotLine 4 | { 5 | ITextSnapshot Snapshot { get; } 6 | string Text { get; } 7 | TextSpan Extent { get; } 8 | TextSpan ExtentIncludingLineBreak { get; } 9 | int Start { get; } 10 | int End { get; } 11 | int Length { get; } 12 | int LineNumber { get; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.Data/ITextSnapshotLines.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace CodeEditor.Text.Data 4 | { 5 | public interface ITextSnapshotLines : IEnumerable 6 | { 7 | int Count { get; } 8 | ITextSnapshotLine this[int lineNumber] { get; } 9 | } 10 | } -------------------------------------------------------------------------------- /src/CodeEditor.Text.Data/Implementation/Immutable.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CodeEditor.Text.Data.Implementation 4 | { 5 | public struct Immutable 6 | { 7 | private T _value; 8 | private bool _hasValue; 9 | 10 | public T Value 11 | { 12 | get 13 | { 14 | if (!_hasValue) 15 | throw new InvalidOperationException("Value hasn't been set yet"); 16 | return _value; 17 | } 18 | 19 | set 20 | { 21 | if (_hasValue) 22 | throw new InvalidOperationException("Value has already been set"); 23 | _value = value; 24 | _hasValue = true; 25 | } 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /src/CodeEditor.Text.Data/Implementation/LineParser.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using CodeEditor.Collections; 3 | 4 | namespace CodeEditor.Text.Data.Implementation 5 | { 6 | public static class LineParser 7 | { 8 | public static IEnumerable LineSpansFor(PieceTable text) 9 | { 10 | var length = text.Length; 11 | if (length == 0) 12 | { 13 | yield return new LineSpan(0, 0, 0); 14 | yield break; 15 | } 16 | 17 | var offset = 0; 18 | var textLength = 0; 19 | var iterator = text[0]; 20 | do 21 | { 22 | var c = iterator.GetValue(); 23 | if (c == '\n') 24 | { 25 | const int lineBreakLength = 1; 26 | yield return new LineSpan(offset, textLength, lineBreakLength); 27 | offset += textLength + lineBreakLength; 28 | textLength = 0; 29 | } 30 | else 31 | ++textLength; 32 | 33 | iterator = iterator.Next; 34 | } 35 | while (iterator.Position < length); 36 | 37 | if (textLength > 0 || iterator.Previous.GetValue() == '\n') 38 | yield return new LineSpan(offset, textLength, 0); 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /src/CodeEditor.Text.Data/Implementation/LineSpan.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Text.Data.Implementation 2 | { 3 | public struct LineSpan 4 | { 5 | public readonly int Start; 6 | public readonly int TextLength; 7 | public readonly int LineBreakLength; 8 | 9 | public LineSpan(int start, int textLength, int lineBreakLength) 10 | { 11 | Start = start; 12 | TextLength = textLength; 13 | LineBreakLength = lineBreakLength; 14 | } 15 | 16 | public int LengthIncludingLineBreak 17 | { 18 | get { return TextLength + LineBreakLength; } 19 | } 20 | 21 | public int End 22 | { 23 | get { return Start + LengthIncludingLineBreak; } 24 | } 25 | 26 | public bool IsTerminated 27 | { 28 | get { return LineBreakLength > 0; } 29 | } 30 | 31 | public bool Contains(int position) 32 | { 33 | return position >= Start && position < End; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/CodeEditor.Text.Data/Implementation/TextDocument.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.ContentTypes; 2 | using CodeEditor.IO; 3 | 4 | namespace CodeEditor.Text.Data.Implementation 5 | { 6 | internal class TextDocument : ITextDocument 7 | { 8 | private readonly IFile _file; 9 | private readonly ITextBuffer _buffer; 10 | 11 | public TextDocument(IFile file, IContentType contentType) 12 | { 13 | _file = file; 14 | _buffer = new TextBuffer(file.ReadAllText(), contentType); 15 | } 16 | 17 | public IFile File 18 | { 19 | get { return _file; } 20 | } 21 | 22 | public ITextBuffer Buffer 23 | { 24 | get { return _buffer; } 25 | } 26 | 27 | public void Save() 28 | { 29 | _file.WriteAllText(_buffer.CurrentSnapshot.Text); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.Data/Implementation/TextDocumentFactory.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CodeEditor.Composition; 3 | using CodeEditor.ContentTypes; 4 | using CodeEditor.IO; 5 | 6 | namespace CodeEditor.Text.Data.Implementation 7 | { 8 | [Export(typeof(ITextDocumentFactory))] 9 | public class TextDocumentFactory : ITextDocumentFactory 10 | { 11 | [Import] 12 | public IContentTypeRegistry ContentTypeRegistry { get; set; } 13 | 14 | public ITextDocument ForFile(IFile file) 15 | { 16 | return new TextDocument(file, ContentTypeForFileExtension(file.Extension)); 17 | } 18 | 19 | private IContentType ContentTypeForFileExtension(string fileExtension) 20 | { 21 | var contentType = ContentTypeRegistry.ForFileExtension(fileExtension); 22 | if (contentType == null) 23 | throw new ArgumentException(string.Format("No content type registered for file extension `{0}'.", fileExtension)); 24 | return contentType; 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.Data/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | [assembly: AssemblyTitle("CodeEditor.Text.Data")] 5 | [assembly: AssemblyDescription("")] 6 | [assembly: AssemblyConfiguration("")] 7 | [assembly: AssemblyCompany("")] 8 | [assembly: AssemblyProduct("CodeEditor.Text.Data")] 9 | [assembly: AssemblyCopyright("Copyright © 2012")] 10 | [assembly: ComVisible(false)] 11 | [assembly: AssemblyVersion("1.0.0.0")] 12 | [assembly: AssemblyFileVersion("1.0.0.0")] 13 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.Data/Span.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CodeEditor.Text.Data 4 | { 5 | public struct Span 6 | { 7 | public readonly int Start; 8 | public readonly int Length; 9 | 10 | public Span(int start, int length) 11 | { 12 | Start = start; 13 | Length = length; 14 | } 15 | 16 | public int End 17 | { 18 | get { return Start + Length; } 19 | } 20 | 21 | public bool Contains(int position) 22 | { 23 | return position >= Start && position < End; 24 | } 25 | 26 | public override string ToString() 27 | { 28 | return string.Format("[{0}..{1})", Start, End); 29 | } 30 | 31 | public static Span operator +(Span x, Span y) 32 | { 33 | if (x.End != y.Start) 34 | throw new ArgumentException("Can not add non contiguous Spans"); 35 | 36 | return new Span(x.Start, x.Length + y.Length); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.Logic.Tests/CodeEditor.Text.Logic.Tests.gradle: -------------------------------------------------------------------------------- 1 | 2 | dependencies { 3 | 'default' project(':CodeEditor.Text.Data') 4 | 'default' rootProject.references.moq 5 | } 6 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.Logic.Tests/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | [assembly: AssemblyTitle("CodeEditor.Text.Logic.Tests")] 5 | [assembly: AssemblyDescription("")] 6 | [assembly: AssemblyConfiguration("")] 7 | [assembly: AssemblyCompany("")] 8 | [assembly: AssemblyCopyright("Copyright © 2012")] 9 | [assembly: AssemblyTrademark("")] 10 | [assembly: AssemblyCulture("")] 11 | [assembly: ComVisible(false)] 12 | [assembly: AssemblyVersion("1.0.0.0")] 13 | [assembly: AssemblyFileVersion("1.0.0.0")] 14 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.Logic/ClassificationChange.cs: -------------------------------------------------------------------------------- 1 | //namespace CodeEditor.TextModel 2 | //{ 3 | // public delegate void ClassificationChange(object sender, ClassificationChangeArgs args); 4 | 5 | // public class ClassificationChangeArgs 6 | // { 7 | // public readonly TextSpan Span; 8 | 9 | // public ClassificationChangeArgs(TextSpan span) 10 | // { 11 | // Span = span; 12 | // } 13 | // } 14 | //} 15 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.Logic/ClassificationSpan.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Text.Data; 2 | 3 | namespace CodeEditor.Text.Logic 4 | { 5 | public struct ClassificationSpan 6 | { 7 | public readonly IClassification Classification; 8 | public readonly TextSpan Span; 9 | 10 | public ClassificationSpan(IClassification classification, TextSpan span) 11 | { 12 | Classification = classification; 13 | Span = span; 14 | } 15 | 16 | public int Start 17 | { 18 | get { return Span.Start; } 19 | } 20 | 21 | public int Length 22 | { 23 | get { return Span.Length; } 24 | } 25 | 26 | public override string ToString() 27 | { 28 | return string.Format("{0} - {1}", Classification, Span); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.Logic/ClassificationSpans.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace CodeEditor.Text.Logic 4 | { 5 | public static class ClassificationSpans 6 | { 7 | public static IEnumerable Merge(IEnumerable classificationSpans) 8 | { 9 | var enumerator = classificationSpans.GetEnumerator(); 10 | while (enumerator.MoveNext()) 11 | { 12 | var merged = enumerator.Current; 13 | while (enumerator.MoveNext()) 14 | { 15 | if (enumerator.Current.Classification != merged.Classification) 16 | { 17 | yield return merged; 18 | merged = enumerator.Current; 19 | } 20 | else 21 | merged = new ClassificationSpan(merged.Classification, merged.Span + enumerator.Current.Span); 22 | } 23 | yield return merged; 24 | } 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /src/CodeEditor.Text.Logic/CodeEditor.Text.Logic.gradle: -------------------------------------------------------------------------------- 1 | 2 | version = '0.1.1' 3 | 4 | dependencies { 5 | def projectReferences = [ 6 | 'CodeEditor.Composition', 7 | 'CodeEditor.Text.Data', 8 | ] 9 | projectReferences.each { 10 | 'default' project(":$it") 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.Logic/IClassification.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Text.Logic 2 | { 3 | public interface IClassification 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /src/CodeEditor.Text.Logic/IClassifier.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using CodeEditor.Text.Data; 3 | 4 | namespace CodeEditor.Text.Logic 5 | { 6 | public interface IClassifierProvider 7 | { 8 | IClassifier ClassifierFor(ITextBuffer buffer); 9 | } 10 | 11 | public interface IClassifier 12 | { 13 | IEnumerable Classify(ITextSnapshotLine line); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.Logic/IStandardClassificationRegistry.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Text.Logic 2 | { 3 | public interface IStandardClassificationRegistry 4 | { 5 | IClassification Text { get; } 6 | IClassification Keyword { get; } 7 | IClassification WhiteSpace { get; } 8 | IClassification Identifier { get; } 9 | IClassification Operator { get; } 10 | IClassification String { get; } 11 | IClassification Punctuation { get; } 12 | IClassification Comment { get; } 13 | IClassification Number { get; } 14 | } 15 | } -------------------------------------------------------------------------------- /src/CodeEditor.Text.Logic/Implementation/Classification.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Text.Logic.Implementation 2 | { 3 | public class Classification : IClassification 4 | { 5 | private readonly string _description; 6 | 7 | public Classification(string description) 8 | { 9 | _description = description; 10 | } 11 | 12 | public override string ToString() 13 | { 14 | return _description; 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/CodeEditor.Text.Logic/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | [assembly: AssemblyTitle("CodeEditor.Text.Logic")] 5 | [assembly: AssemblyDescription("")] 6 | [assembly: AssemblyConfiguration("")] 7 | [assembly: AssemblyCompany("")] 8 | [assembly: AssemblyProduct("CodeEditor.Text.Logic")] 9 | [assembly: AssemblyCopyright("Copyright © 2012")] 10 | [assembly: AssemblyTrademark("")] 11 | [assembly: AssemblyCulture("")] 12 | [assembly: ComVisible(false)] 13 | [assembly: AssemblyVersion("1.0.0.0")] 14 | [assembly: AssemblyFileVersion("1.0.0.0")] 15 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Tests/CodeEditor.Text.UI.Tests.gradle: -------------------------------------------------------------------------------- 1 | 2 | dependencies { 3 | 'default' project(':CodeEditor.Text.Data') 4 | 'default' project(':CodeEditor.Text.Data.Tests') 5 | 'default' project(':CodeEditor.Reactive') 6 | } 7 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Editor.Tests/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | [assembly: AssemblyTitle("CodeEditor.Text.UI.UnityEditor.Tests")] 5 | [assembly: AssemblyDescription("")] 6 | [assembly: AssemblyConfiguration("")] 7 | [assembly: AssemblyCompany("")] 8 | [assembly: AssemblyCopyright("Copyright © 2012")] 9 | [assembly: AssemblyTrademark("")] 10 | [assembly: AssemblyCulture("")] 11 | [assembly: ComVisible(false)] 12 | [assembly: AssemblyVersion("1.0.0.0")] 13 | [assembly: AssemblyFileVersion("1.0.0.0")] 14 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Editor/CodeEditor.Text.UI.Unity.Editor.gradle: -------------------------------------------------------------------------------- 1 | 2 | version = '0.2.0' 3 | 4 | dependencies { 5 | def projectReferences = [ 6 | 'CodeEditor.Composition', 7 | 'CodeEditor.IO', 8 | 'CodeEditor.IO.Unity.Editor', 9 | 'CodeEditor.Reactive', 10 | 'CodeEditor.ReactiveServiceStack', 11 | 'CodeEditor.Logging', 12 | 'CodeEditor.Logging.Unity', 13 | 'CodeEditor.Text.Data', 14 | 'CodeEditor.Text.Logic', 15 | 'CodeEditor.Text.UI', 16 | 'CodeEditor.Text.UI.Unity.Engine', 17 | 'CodeEditor.ServiceClient', 18 | ] 19 | projectReferences.each { 20 | 'default' project(":$it") 21 | } 22 | 'default' rootProject.references.unityEditor 23 | 'default' rootProject.references.serviceStackClient 24 | } 25 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Editor/Implementation/CodeEditorMenuItems.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | 3 | namespace CodeEditor.Text.UI.Unity.Editor.Implementation 4 | { 5 | public static class CodeEditorMenuItems 6 | { 7 | [MenuItem("Window/Code Editor %w")] 8 | public static void OpenOrFocusCodeEditorWindow() 9 | { 10 | CodeEditorWindow.OpenOrFocusExistingWindow (); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Editor/Implementation/CompletionSession.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | using CodeEditor.Text.Data; 4 | using CodeEditor.Text.UI.Completion; 5 | 6 | namespace CodeEditor.Text.UI.Unity.Editor.Implementation 7 | { 8 | internal class CompletionSession 9 | { 10 | private readonly ICompletionSet _completions; 11 | 12 | public CompletionSession(TextSpan completionSpan, ICompletionSet completions) 13 | { 14 | _completions = completions; 15 | } 16 | 17 | public IEnumerable Completions 18 | { 19 | get { return _completions.Completions.Select(c => c.DisplayText); } 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Editor/Implementation/FontManagerProvider.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Composition; 2 | using CodeEditor.Text.UI.Unity.Engine; 3 | using CodeEditor.Text.UI.Unity.Engine.Implementation; 4 | 5 | namespace CodeEditor.Text.UI.Unity.Editor.Implementation 6 | { 7 | [Export(typeof(IFontManagerProvider))] 8 | class FontManagerProvider : IFontManagerProvider 9 | { 10 | public IFontManager GetFontManager(ISettings settings) 11 | { 12 | string defaultFontName = "SourceCodePro-Regular"; 13 | int defaultSize = 14; 14 | var _currentFontName = new StringSetting("CurrentFontName", defaultFontName, settings); 15 | var _currentFontSize = new IntSetting("CurrentFontSize", defaultSize, settings); 16 | return new FontManager(_currentFontName, _currentFontSize); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Editor/Implementation/ListPopup/CodeCompletionListItem.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace CodeEditor.Text.UI.Unity.Editor.Implementation.ListPopup 3 | { 4 | class CodeCompletionListItem : IListItem 5 | { 6 | public string RichText { get; set; } 7 | public string Text { get; set; } 8 | public string ItemType { get; set; } 9 | 10 | public CodeCompletionListItem(string text, string itemType, CodeCompletionListItemProvider owner) 11 | { 12 | Text = text; 13 | ItemType = itemType; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Editor/Implementation/ListPopup/IListItem.cs: -------------------------------------------------------------------------------- 1 |  2 | namespace CodeEditor.Text.UI.Unity.Editor.Implementation.ListPopup 3 | { 4 | public interface IListItem 5 | { 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Editor/Implementation/ListPopup/IListItemGUI.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CodeEditor.Text.UI.Unity.Editor.Implementation.ListPopup 4 | { 5 | interface IListItemGUI 6 | { 7 | float ItemHeight { get; set; } 8 | void OnGUI(Rect rect, IListItem item, bool selected); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Editor/Implementation/ListPopup/IListItemProvider.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace CodeEditor.Text.UI.Unity.Editor.Implementation.ListPopup 4 | { 5 | public interface IListItemProvider 6 | { 7 | List GetList(); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Editor/Implementation/UnityEditorFileNavigationService.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Composition; 2 | 3 | namespace CodeEditor.Text.UI.Unity.Editor.Implementation 4 | { 5 | [Export(typeof(IFileNavigationService))] 6 | class UnityEditorFileNavigationService : IFileNavigationService 7 | { 8 | public void NavigateTo(string fileName, IAnchor anchor = null) 9 | { 10 | CodeEditorWindow.OpenWindowFor(fileName, PositionFrom(anchor)); 11 | } 12 | 13 | static Position? PositionFrom(IAnchor anchor) 14 | { 15 | var positionAnchor = anchor as PositionAnchor; 16 | if (positionAnchor == null) 17 | return null; 18 | return positionAnchor.Position; 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Editor/Implementation/UnityEditorGUISkinProvider .cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Composition; 2 | using CodeEditor.Text.UI.Unity.Engine; 3 | using UnityEngine; 4 | 5 | namespace CodeEditor.Text.UI.Unity.Editor.Implementation 6 | { 7 | [Export(typeof(IGUISkinProvider))] 8 | class UnityEditorGUISkinProvider : IGUISkinProvider 9 | { 10 | GUISkin _guiSkin; 11 | 12 | public GUISkin GetGUISkin() 13 | { 14 | if (_guiSkin == null) 15 | { 16 | string userSkinPath = "Assets/Editor/CodeEditor/CodeEditorSkin.guiskin"; 17 | _guiSkin = UnityEditor.AssetDatabase.LoadAssetAtPath(userSkinPath, typeof(GUISkin)) as GUISkin; 18 | if (_guiSkin == null) 19 | { 20 | Debug.Log("CodeEditor skin not found! " + userSkinPath); 21 | _guiSkin = GUI.skin; 22 | } 23 | } 24 | return _guiSkin; 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Editor/Implementation/UnityEditorPreferences.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Composition; 2 | using CodeEditor.Text.UI.Unity.Engine; 3 | using UnityEditor; 4 | 5 | namespace CodeEditor.Text.UI.Unity.Editor.Implementation 6 | { 7 | [Export(typeof(IPreferences))] 8 | class UnityEditorPreferences : IPreferences 9 | { 10 | public void SetInt(string key, int value) 11 | { 12 | EditorPrefs.SetInt(key, value); 13 | } 14 | 15 | public int GetInt(string key, int defaultValue) 16 | { 17 | return EditorPrefs.GetInt(key, defaultValue); 18 | } 19 | 20 | public void SetBool(string key, bool value) 21 | { 22 | EditorPrefs.SetBool(key, value); 23 | } 24 | 25 | public bool GetBool(string key, bool defaultValue) 26 | { 27 | return EditorPrefs.GetBool(key, defaultValue); 28 | } 29 | 30 | public void SetString(string key, string value) 31 | { 32 | EditorPrefs.SetString(key, value); 33 | } 34 | 35 | public string GetString(string key, string defaultValue) 36 | { 37 | return EditorPrefs.GetString(key, defaultValue); 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Editor/Implementation/UnityEditorScheduler.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using ServiceStack.Common.Net30; 4 | using UnityEditor; 5 | 6 | namespace CodeEditor.Text.UI.Unity.Editor.Implementation 7 | { 8 | public class UnityEditorScheduler 9 | { 10 | public static UnityEditorScheduler Instance 11 | { 12 | get { return Singleton; } 13 | } 14 | 15 | static readonly UnityEditorScheduler Singleton = new UnityEditorScheduler(); 16 | 17 | readonly ConcurrentQueue _actions = new ConcurrentQueue(); 18 | 19 | UnityEditorScheduler() 20 | { 21 | EditorApplication.update += Update; 22 | } 23 | 24 | public void Schedule(Action action) 25 | { 26 | _actions.Enqueue(action); 27 | } 28 | 29 | private void Update() 30 | { 31 | Action action; 32 | if (_actions.TryDequeue(out action)) 33 | action(); 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Editor/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | [assembly: AssemblyTitle("CodeEditor.Text.UI.UnityEditor")] 5 | [assembly: AssemblyDescription("")] 6 | [assembly: AssemblyConfiguration("")] 7 | [assembly: AssemblyCompany("")] 8 | [assembly: AssemblyProduct("CodeEditor.Text.UI.UnityEditor")] 9 | [assembly: AssemblyCopyright("Copyright © 2012")] 10 | [assembly: AssemblyTrademark("")] 11 | [assembly: AssemblyCulture("")] 12 | [assembly: ComVisible(false)] 13 | [assembly: AssemblyVersion("1.0.0.0")] 14 | [assembly: AssemblyFileVersion("1.0.0.0")] 15 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine.Tests/CodeEditor.Text.UI.Unity.Engine.Tests.gradle: -------------------------------------------------------------------------------- 1 | 2 | dependencies { 3 | def projectReferences = [ 4 | 'CodeEditor.IO', 5 | 'CodeEditor.Collections', 6 | 'CodeEditor.ContentTypes', 7 | 'CodeEditor.Text.Data', 8 | 'CodeEditor.Text.Logic', 9 | 'CodeEditor.Text.UI', 10 | ] 11 | projectReferences.each { 12 | 'default' project(":$it") 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/CodeEditor.Text.UI.Unity.Engine.gradle: -------------------------------------------------------------------------------- 1 | 2 | version = '0.2.0' 3 | 4 | dependencies { 5 | def projectReferences = [ 6 | 'CodeEditor.Composition', 7 | 'CodeEditor.ContentTypes', 8 | 'CodeEditor.IO', 9 | 'CodeEditor.Text.Data', 10 | 'CodeEditor.Text.Logic', 11 | 'CodeEditor.Text.UI', 12 | ] 13 | projectReferences.each { 14 | 'default' project(":$it") 15 | } 16 | 'default' group: 'Unity', name: 'UnityEngine', version: '4.0+', configuration: 'editor' 17 | } 18 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/GUIUtils.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CodeEditor.Text.UI.Unity.Engine 4 | { 5 | public class GUIUtils 6 | { 7 | private static Texture2D _whiteTexture; 8 | 9 | public static void DrawRect(Rect rect, Color color) 10 | { 11 | var backup = GUI.color; 12 | GUI.color = new Color(color.r, color.g, color.b); 13 | GUI.DrawTexture(rect, whiteTexture, ScaleMode.StretchToFill, false); 14 | GUI.color = backup; 15 | } 16 | 17 | private static Texture2D whiteTexture 18 | { 19 | get 20 | { 21 | if (_whiteTexture != null) 22 | return _whiteTexture; 23 | 24 | _whiteTexture = new Texture2D(1, 1); 25 | _whiteTexture.SetPixel(0, 0, Color.white); 26 | _whiteTexture.hideFlags = HideFlags.HideAndDontSave; 27 | return _whiteTexture; 28 | } 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/IClassificationStyler.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using CodeEditor.Text.Logic; 4 | using UnityEngine; 5 | 6 | namespace CodeEditor.Text.UI.Unity.Engine 7 | { 8 | public interface IClassificationStyler 9 | { 10 | Color ColorFor(IClassification classification); 11 | IStandardClassificationRegistry StandardClassificationRegistry { get; } 12 | Dictionary ClassificationColors {get; set;} 13 | event EventHandler Changed; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/IDefaultTextViewMarginsProvider.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Text.UI.Unity.Engine 2 | { 3 | public interface IDefaultTextViewMarginsProvider 4 | { 5 | ITextViewMargins MarginsFor(ITextView textView); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/IFontManager.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace CodeEditor.Text.UI.Unity.Engine 5 | { 6 | public interface IFontManager 7 | { 8 | string[] GetSupportedFontNames(); 9 | int[] GetCurrentFontSizes(); 10 | Font CurrentFont { get; } 11 | string CurrentFontName { get; set; } 12 | int CurrentFontSize { get;set; } 13 | event EventHandler Changed; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/IFontManagerProvider.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Text.UI.Unity.Engine 2 | { 3 | /// 4 | /// Must be implemented by the host. 5 | /// 6 | public interface IFontManagerProvider 7 | { 8 | IFontManager GetFontManager(ISettings settings); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/IGUISkinProvider.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CodeEditor.Text.UI.Unity.Engine 4 | { 5 | public interface IGUISkinProvider 6 | { 7 | GUISkin GetGUISkin(); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/IIcons.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CodeEditor.Text.UI.Unity.Engine.Implementation 4 | { 5 | public interface IIcons 6 | { 7 | Texture2D GetIcon(string iconNameWithExtension); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/IMouseCursorRegions.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CodeEditor.Text.UI.Unity.Engine 4 | { 5 | /// 6 | /// Provides a way to assign mouse cursors to specific regions. 7 | /// 8 | public interface IMouseCursorRegions 9 | { 10 | void AddMouseCursorRegion(Rect region, IMouseCursor cursor); 11 | } 12 | 13 | /// 14 | /// Standard set of mouse cursors provided by the host. 15 | /// 16 | public interface IMouseCursors 17 | { 18 | IMouseCursor Arrow { get; } 19 | IMouseCursor Text { get; } 20 | IMouseCursor Finger { get; } 21 | } 22 | 23 | /// 24 | /// Represents a mouse cursor that can be rendered by the host. 25 | /// 26 | public interface IMouseCursor 27 | { 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/IPreferences.cs: -------------------------------------------------------------------------------- 1 | // Wrap EditorPrefs or PlayerPrefs 2 | 3 | namespace CodeEditor.Text.UI.Unity.Engine 4 | { 5 | public interface IPreferences 6 | { 7 | void SetInt(string key, int value); 8 | int GetInt(string key, int defaultValue); 9 | 10 | void SetBool(string key, bool value); 11 | bool GetBool(string key, bool defaultValue); 12 | 13 | void SetString(string key, string value); 14 | string GetString(string key, string defaultValue); 15 | 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/ISetting.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CodeEditor.Text.UI.Unity.Engine 4 | { 5 | public interface ISetting 6 | { 7 | string ID { get; set; } 8 | event EventHandler Changed; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/ISettings.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace CodeEditor.Text.UI.Unity.Engine 4 | { 5 | public interface ISettings 6 | { 7 | void AddSetting(string id, ISetting setting); 8 | void RemoveSetting(string id, ISetting setting); 9 | void Clear(); 10 | ISetting GetSetting(string id); 11 | List GetListOfIDs(); 12 | IPreferences Preferences { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/ISettingsProvider.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Text.UI.Unity.Engine 2 | { 3 | interface ISettingsProvider 4 | { 5 | ISettings GetSettings(IPreferences preferences); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/ITextViewAdornment.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CodeEditor.Text.UI.Unity.Engine 4 | { 5 | public interface ITextViewAdornment 6 | { 7 | void Draw(ITextViewLine line, Rect lineRect); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/ITextViewAdornments.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CodeEditor.Text.UI.Unity.Engine 4 | { 5 | internal interface ITextViewAdornments 6 | { 7 | void Draw(ITextViewLine line, Rect lineRect); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/ITextViewAppearance.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace CodeEditor.Text.UI.Unity.Engine 5 | { 6 | public interface ITextViewAppearance 7 | { 8 | GUIStyle Background { get; set; } 9 | GUIStyle Text { get; } 10 | GUIStyle LineNumber { get; } 11 | Color LineNumberColor { get; set; } 12 | Color SelectionColor { get; set; } 13 | Color BackgroundColor { get; set; } 14 | 15 | event EventHandler Changed; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/ITextViewAppearanceProvider.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Text.UI.Unity.Engine 2 | { 3 | /// 4 | /// Must be implemented by the host. 5 | /// 6 | public interface ITextViewAppearanceProvider 7 | { 8 | ITextViewAppearance AppearanceFor(ITextViewDocument document, IFontManager fontManager); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/ITextViewDocumentFactory.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.IO; 2 | 3 | namespace CodeEditor.Text.UI.Unity.Engine 4 | { 5 | public interface ITextViewDocumentFactory 6 | { 7 | ITextViewDocument DocumentForFile(IFile file); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/ITextViewLine.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Text.UI.Unity.Engine 2 | { 3 | public interface ITextViewLine 4 | { 5 | string Text { get; } 6 | string RichText { get; } 7 | int Start { get; } 8 | int LineNumber { get; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/ITextViewMargin.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CodeEditor.Text.UI.Unity.Engine 4 | { 5 | public interface ITextViewMargin 6 | { 7 | float Width { get; } 8 | bool Visible { get; set; } 9 | void Repaint(ITextViewLine line, Rect marginRect); 10 | void HandleInputEvent(ITextViewLine line, Rect marginRect); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/ITextViewMarginProvider.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Text.UI.Unity.Engine 2 | { 3 | public interface ITextViewMarginProvider 4 | { 5 | ITextViewMargin MarginFor(ITextView textView); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/ITextViewMargins.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace CodeEditor.Text.UI.Unity.Engine 4 | { 5 | public interface ITextViewMargins 6 | { 7 | void Repaint(ITextViewLine line, Rect lineRect); 8 | float TotalWidth { get; } 9 | void HandleInputEvent(ITextViewLine line, Rect lineRect); 10 | } 11 | } -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/ITextViewWhitespace.cs: -------------------------------------------------------------------------------- 1 | 2 | using System.Collections.Generic; 3 | 4 | namespace CodeEditor.Text.UI.Unity.Engine 5 | { 6 | public interface ITextViewWhitespace 7 | { 8 | int NumberOfSpacesPerTab { get; set; } 9 | bool Visible { get; set; } 10 | char VisibleSpaceChar { get; set; } 11 | char VisibleTabChar { get; set; } 12 | List GetTabSizes(string baseText); 13 | string FormatBaseText(string baseText); 14 | string FormatBaseText(string baseText, out List tabSizes); 15 | string FormatRichText(string richText, List tabSizes); 16 | int ConvertToGraphicalCaretColumn(int logicalCaretColumn, ITextViewLine line); 17 | int ConvertToGraphicalCaretColumn(int logicalCaretColumn, ITextViewLine line, List tabSizes); 18 | int ConvertToLogicalCaretColumn(int graphicalCaretColumn, ITextViewLine line); 19 | int ConvertToLogicalCaretColumn(int graphicalCaretColumn, ITextViewLine line, List tabSizes); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/ITextViewWhitespaceProvider.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Text.UI.Unity.Engine 2 | { 3 | interface ITextViewWhitespaceProvider 4 | { 5 | ITextViewWhitespace GetWhitespace(ISettings settings); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/Implementation/DefaultTextViewMarginsProvider.cs: -------------------------------------------------------------------------------- 1 | using System.Linq; 2 | using CodeEditor.Composition; 3 | 4 | namespace CodeEditor.Text.UI.Unity.Engine.Implementation 5 | { 6 | [Export(typeof(IDefaultTextViewMarginsProvider))] 7 | class DefaultTextViewMarginsProvider : IDefaultTextViewMarginsProvider 8 | { 9 | [ImportMany] 10 | public ITextViewMarginProvider[] MarginProviders { get; set; } 11 | 12 | public ITextViewMargins MarginsFor(ITextView textView) 13 | { 14 | return new TextViewMargins(MarginProviders.Select(p => p.MarginFor(textView)).Where(m => m!=null)); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/Implementation/LineNumberMarginProvider.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Composition; 2 | 3 | namespace CodeEditor.Text.UI.Unity.Engine.Implementation 4 | { 5 | [Export(typeof(ITextViewMarginProvider))] 6 | class LineNumberMarginProvider : ITextViewMarginProvider 7 | { 8 | public ITextViewMargin MarginFor(ITextView textView) 9 | { 10 | var visibilitySetting = new BoolSetting ("LineNumberVisiblitySetting", true, textView.Settings); 11 | return new LineNumberMargin(textView, visibilitySetting); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/Implementation/SettingsProvider.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Composition; 2 | 3 | namespace CodeEditor.Text.UI.Unity.Engine.Implementation 4 | { 5 | [Export(typeof(ISettingsProvider))] 6 | class SettingsProvider : ISettingsProvider 7 | { 8 | public ISettings GetSettings(IPreferences preferences) 9 | { 10 | return new Settings(preferences); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/Implementation/TextViewAdornments.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Composition; 2 | using UnityEngine; 3 | 4 | namespace CodeEditor.Text.UI.Unity.Engine.Implementation 5 | { 6 | [Export(typeof(ITextViewAdornments))] 7 | class TextViewAdornments : ITextViewAdornments 8 | { 9 | [ImportMany] 10 | public ITextViewAdornment[] Adornments { get; set; } 11 | 12 | public void Draw(ITextViewLine line, Rect lineRect) 13 | { 14 | foreach (var adornment in Adornments) 15 | adornment.Draw(line, lineRect); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/Implementation/TextViewWhitespaceProvider.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Composition; 2 | 3 | namespace CodeEditor.Text.UI.Unity.Engine.Implementation 4 | { 5 | [Export(typeof(ITextViewWhitespaceProvider))] 6 | class TextViewWhitespaceProvider : ITextViewWhitespaceProvider 7 | { 8 | public ITextViewWhitespace GetWhitespace(ISettings settings) 9 | { 10 | var visibleWhitespace = new BoolSetting("VisibleWhitespace", false, settings); 11 | var numSpacesPerTab = new IntSetting("NumSpacesPerTab", 4, settings); 12 | return new TextViewWhitespace(visibleWhitespace, numSpacesPerTab); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI.Unity.Engine/TextViewExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CodeEditor.Text.UI.Unity.Engine 4 | { 5 | public static class TextViewExtensions 6 | { 7 | public static int VisibleLines(this ITextView view) 8 | { 9 | return (int) Math.Floor(view.ViewPort.height / view.LineHeight); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI/CodeEditor.Text.UI.gradle: -------------------------------------------------------------------------------- 1 | 2 | version = '0.2.0' 3 | 4 | dependencies { 5 | def projectReferences = [ 6 | 'CodeEditor.Composition', 7 | 'CodeEditor.Logging', 8 | 'CodeEditor.Text.Data', 9 | 'CodeEditor.Reactive' 10 | ] 11 | projectReferences.each { 12 | 'default' project(":$it") 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI/Completion/ICompletionProvider.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using CodeEditor.Text.Data; 3 | 4 | namespace CodeEditor.Text.UI.Completion 5 | { 6 | public interface ICompletionProvider 7 | { 8 | ICompletionSet CompletionsFor(TextSpan contextForCompletion); 9 | } 10 | 11 | public interface ICompletionSet 12 | { 13 | IEnumerable Completions { get; } 14 | bool IsEmpty { get; } 15 | } 16 | 17 | public interface ICompletion 18 | { 19 | string DisplayText { get; } 20 | string Tooltip { get; } 21 | } 22 | } -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI/Completion/ICompletionTrigger.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Text.Data; 2 | 3 | namespace CodeEditor.Text.UI.Completion 4 | { 5 | public interface ICompletionTrigger 6 | { 7 | } 8 | 9 | public interface ICompletionSessionProvider 10 | { 11 | void StartCompletionSession(TextSpan completionSpan, ICompletionSet completions); 12 | } 13 | } -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI/Completion/Implementation/Completion.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Text.UI.Completion.Implementation 2 | { 3 | public class Completion : ICompletion 4 | { 5 | public Completion(string text) 6 | { 7 | Tooltip = DisplayText = text; 8 | } 9 | 10 | public Completion() {} 11 | 12 | public string DisplayText { get; set; } 13 | 14 | public string Tooltip { get; set; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI/Completion/Implementation/CompletionSet.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | 4 | namespace CodeEditor.Text.UI.Completion.Implementation 5 | { 6 | public class CompletionSet : ICompletionSet 7 | { 8 | private readonly ICompletion[] _completions; 9 | 10 | public CompletionSet(IEnumerable completions) 11 | { 12 | _completions = completions.ToArray(); 13 | } 14 | 15 | public IEnumerable Completions 16 | { 17 | get { return _completions; } 18 | } 19 | 20 | public bool IsEmpty 21 | { 22 | get { return _completions.Length == 0; } 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI/ICaret.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CodeEditor.Text.UI 4 | { 5 | /// 6 | /// Maintains the zero based coordinates of the input caret. 7 | /// 8 | public interface ICaret 9 | { 10 | int Row { get; } 11 | int Column { get; } 12 | void SetPosition(int row, int column); 13 | void MoveLeft(); 14 | void MoveRight(); 15 | void MoveUp(int rows); 16 | void MoveDown(int rows); 17 | void MoveToRowStart(); 18 | void MoveToRowEnd(); 19 | void MoveToStart(); 20 | void MoveToEnd(); 21 | event Action Moved; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI/ICaretBounds.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Text.UI 2 | { 3 | public interface ICaretBounds 4 | { 5 | int Rows { get; } 6 | int ColumnsForRow(int row); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI/ICaretFactory.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Text.Data; 2 | 3 | namespace CodeEditor.Text.UI 4 | { 5 | public interface ICaretFactory 6 | { 7 | ICaret CaretForBuffer(ITextBuffer buffer); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI/IFileNavigationService.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Text.UI 2 | { 3 | /// 4 | /// Provides a way to open files at specific locations denoted by anchors. 5 | /// 6 | /// Host interface. 7 | /// 8 | public interface IFileNavigationService 9 | { 10 | /// 11 | /// Opens the specified file at the optional location denoted by . 12 | /// 13 | void NavigateTo(string fileName, IAnchor anchor = null); 14 | } 15 | 16 | /// 17 | /// Represents a position in a document. 18 | /// 19 | /// The actual semantics depend on the type of anchor. 20 | /// 21 | public interface IAnchor 22 | { 23 | } 24 | 25 | /// 26 | /// An anchor to a specific line and column of a text file. 27 | /// 28 | public class PositionAnchor : IAnchor 29 | { 30 | public PositionAnchor(int line, int column) 31 | { 32 | Position = new Position(line, column); 33 | } 34 | 35 | public Position Position { get; private set; } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI/ITextStructureNavigator.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Text.Data; 2 | 3 | namespace CodeEditor.Text.UI 4 | { 5 | public interface ITextStructureNavigator 6 | { 7 | TextSpan GetSpanFor(int position, ITextSnapshot snapshot); 8 | TextSpan GetNextSpanFor(TextSpan span); 9 | TextSpan GetPreviousSpanFor(TextSpan span); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI/Implementation/CaretFactory.cs: -------------------------------------------------------------------------------- 1 | using CodeEditor.Composition; 2 | using CodeEditor.Text.Data; 3 | 4 | namespace CodeEditor.Text.UI.Implementation 5 | { 6 | [Export(typeof(ICaretFactory))] 7 | class CaretFactory : ICaretFactory 8 | { 9 | public ICaret CaretForBuffer(ITextBuffer buffer) 10 | { 11 | return new Caret(new BufferBounds(buffer)); 12 | } 13 | 14 | class BufferBounds : ICaretBounds 15 | { 16 | private readonly ITextBuffer _buffer; 17 | 18 | public BufferBounds(ITextBuffer buffer) 19 | { 20 | _buffer = buffer; 21 | } 22 | 23 | public int Rows 24 | { 25 | get { return CurrentSnapshotLines.Count; } 26 | } 27 | 28 | public int ColumnsForRow(int row) 29 | { 30 | return CurrentSnapshotLines[row].Length; 31 | } 32 | 33 | private ITextSnapshotLines CurrentSnapshotLines 34 | { 35 | get { return CurrentSnapshot.Lines; } 36 | } 37 | 38 | private ITextSnapshot CurrentSnapshot 39 | { 40 | get { return _buffer.CurrentSnapshot; } 41 | } 42 | } 43 | } 44 | } -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI/Position.cs: -------------------------------------------------------------------------------- 1 | namespace CodeEditor.Text.UI 2 | { 3 | public struct Position 4 | { 5 | public Position(int row, int column) : this() 6 | { 7 | Column = column; 8 | Row = row; 9 | } 10 | 11 | public int Column { get; set; } 12 | 13 | public int Row { get; set; } 14 | 15 | public static bool operator ==(Position lhs, Position rhs) 16 | { 17 | return lhs.Equals(rhs); 18 | } 19 | 20 | public static bool operator !=(Position lhs, Position rhs) 21 | { 22 | return !lhs.Equals(rhs); 23 | } 24 | 25 | public bool Equals(Position other) 26 | { 27 | return Column == other.Column && Row == other.Row; 28 | } 29 | 30 | public override string ToString() 31 | { 32 | return string.Format("(row {0}, column {1})", Row, Column); 33 | } 34 | 35 | public override bool Equals(object obj) 36 | { 37 | if (ReferenceEquals(null, obj)) return false; 38 | return obj is Position && Equals((Position)obj); 39 | } 40 | 41 | public override int GetHashCode() 42 | { 43 | unchecked 44 | { 45 | return (Column * 397) ^ Row; 46 | } 47 | } 48 | } 49 | } -------------------------------------------------------------------------------- /src/CodeEditor.Text.UI/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | [assembly: AssemblyTitle("CodeEditor.Text.UI")] 5 | [assembly: AssemblyDescription("")] 6 | [assembly: AssemblyConfiguration("")] 7 | [assembly: AssemblyCompany("")] 8 | [assembly: AssemblyProduct("CodeEditor.Text.UI")] 9 | [assembly: AssemblyCopyright("Copyright © 2012")] 10 | [assembly: AssemblyTrademark("")] 11 | [assembly: AssemblyCulture("")] 12 | [assembly: ComVisible(false)] 13 | [assembly: AssemblyVersion("1.0.0.0")] 14 | [assembly: AssemblyFileVersion("1.0.0.0")] 15 | -------------------------------------------------------------------------------- /todo.org: -------------------------------------------------------------------------------- 1 | * kaizen Clr.exec should set MONO_EXECUTABLE 2 | * move File search also to the server (using the client search only as a fallback) 3 | * rename all Implementation folders to Internal 4 | * multi level undo 5 | * fix dead keys on osx 6 | * register MonoScript inspector 7 | 8 | --------------------------------------------------------------------------------