Giter Club home page Giter Club logo

yamldotnet.editor's People

Contributors

aaubry avatar madskristensen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

yamldotnet.editor's Issues

System.ArgumentOutOfRangeException

Just installed 1.6.1 today.
Was editing a new YAML document in Visual Studio 2013 with Update 4.
Entered about 42 lines. Cannot include lines, but can say it had one key containing 6 list items each having six normal keys with string values. Nothing looked complicated or edge-case like.
Went to end of document to add new line.
Got popup error (below) that suggested I look in this:
C:\Users\ME\AppData\Roaming\Microsoft\VisualStudio\12.0\ActivityLog.xml

Found this error at bottom of activity log:

System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: span at Microsoft.VisualStudio.Text.SnapshotSpan..ctor(ITextSnapshot snapshot, Span span) at YamlDotNetEditor.ErrorTagger.CreateErrorTag(SnapshotSpan span, Token token, String type, String message) at YamlDotNetEditor.ErrorTagger.d__2.MoveNext() at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.d__5.MoveNext()

I could ignore the error and continue.

Format Document chokes on comments

It happens when there are comments in the .yml file. The issue happens on this line:

emitter.Emit(parser.Current);

...in this file https://github.com/aaubry/YamlDotNet.Editor/blob/master/YamlDotNetEditor/CommandHandlers/FormatDocumentCommandHandler.cs#L55

So the error happens in the YamlDotNet NuGet package somewhere that can't be fixed from the extension itself.

Repro steps

In a YAML file containing this:

# version format
version: 1.0.{build}

Now invoke the Format Document command (Ctrl+K+D) and you get the error.

Should it register the 'New YAML file' template?

At the moment I can create e.g. a new XML File via the Visual Studio 2012 menu, but YAML doesn't seem to be available. Not sure if it's not implemented or not working.

FILE -> New File -> YAML File

I guess it's not the biggest deal, but just wanted to make you aware.

PS: thanks for supporting every modern version of Visual Studio.

Visual Studio 2019 support

Same as #19, but for VS 2019.

Unfortunately, the workaround there of downloading and running the install manually doesn't work for VS2019, so we won't have a way to install it until the package is updated.

Sub-string highlight

Not sure if this is YAML syntax thing or not.

Hope there will be syntax highlight for sub-string like

Name: !Sub "${AnotherParameter}-sub-string"

How can we configure how much we want to indent?

Indent with 2 spaces looks better to me than 4. So I really would like a configuration to alter that based on personal interest.

One good place to put it the configuration under Options > Text Editor > YAML, which seems to be standard place for indent config. But sadly, YAML doesn't have an entry there.

Better name and description

I would suggest renaming the extension to YAML Editor. The name is a little cryptic right now and doesn't reflect very well what it is. Also, the description could be more flashy and say something like Provides a complete YAML editing experience in Visual Studio or something to that effect.

Have high quality images (see PR #8), naming and descriptions makes a huge difference for your download count.

Also, perhaps update the Gallery page with more screenshots and a list of features that your extension provides, including links to create issues and/or suggest features etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.