@rohal12/spindle-lsp 0.12.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin.js CHANGED
@@ -63249,6 +63249,10 @@ function computeRename(uri, position, newName, workspace) {
63249
63249
  }
63250
63250
  switch (symbol2.kind) {
63251
63251
  case "passage": {
63252
+ if (newName === symbol2.name) return /* @__PURE__ */ new Map();
63253
+ if (workspace.passages.getPassage(newName)) {
63254
+ throw new RenameError(`Cannot rename to ${JSON.stringify(newName)}: a passage with that name already exists.`).at(uri, symbol2.range);
63255
+ }
63252
63256
  const refEdits = [];
63253
63257
  for (const { uri: refUri, ref } of findPassageRefs(symbol2.name, workspace)) {
63254
63258
  try {
@@ -64828,7 +64832,7 @@ var init_server4 = __esm({
64828
64832
 
64829
64833
  // src/bin.ts
64830
64834
  var args = process.argv.slice(2);
64831
- var VERSION = "0.12.0";
64835
+ var VERSION = "0.12.1";
64832
64836
  var HELP = `spindle-lsp v${VERSION}
64833
64837
  Language Server Protocol server for Spindle story format
64834
64838