ATProto Browser

ATProto Browser

Experimental browser for the Atmosphere

Post

In LSP, a position is represented as a line number and a column offset (in Unicode code units): microsoft.github.io/language-ser... This is pretty elegant. You'll get the correct line regardless of encoding bugs, and the editor already knows the line number so it's cheap to compute.

Feb 15, 2025, 11:13 PM

Record data

{
  "uri": "at://did:plc:h4lbtnpgirwzkvb73rphzljy/app.bsky.feed.post/3liatrfpopc24",
  "cid": "bafyreibch25ljuhttxlbbua6firvnrjnvoci7q3gqh22pfawwnbsfgwsmi",
  "value": {
    "text": "In LSP, a position is represented as a line number and a column offset (in Unicode code units): microsoft.github.io/language-ser...\n\nThis is pretty elegant. You'll get the correct line regardless of encoding bugs, and the editor already knows the line number so it's cheap to compute.",
    "$type": "app.bsky.feed.post",
    "embed": {
      "$type": "app.bsky.embed.external",
      "external": {
        "uri": "https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#position",
        "title": "Specification",
        "description": "This document describes the 3.17.x version of the language server protocol. An implementation for node of the 3.17.x version of the protocol can be found here."
      }
    },
    "langs": [
      "en"
    ],
    "facets": [
      {
        "index": {
          "byteEnd": 131,
          "byteStart": 96
        },
        "features": [
          {
            "uri": "https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#position",
            "$type": "app.bsky.richtext.facet#link"
          }
        ]
      }
    ],
    "createdAt": "2025-02-15T23:13:01.113Z"
  }
}