Skip to content

Commit

Permalink
maint: Run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
famoser committed Nov 28, 2024
1 parent a0fbb8f commit 6ab41d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions server/src/document_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class DocumentManager implements DocumentManagerInterface {
}

return undefined;
}
};

public getProverifDocument = async (identifier: TextDocumentIdentifier): Promise<ProverifDocument | undefined> => {
if (this.proverifDocumentManager.supports(identifier)) {
Expand All @@ -131,8 +131,8 @@ export class DocumentManager implements DocumentManagerInterface {
return this.proverifLogDocumentManager.getProverifLogDocument(cache.document);
}

return undefined
}
return undefined;
};

private getDocumentText = async (identifier: TextDocumentIdentifier) => {
const cache = this.documentCache.get(identifier.uri) ?? {identifier};
Expand Down
10 changes: 5 additions & 5 deletions server/src/proverif_log/get_reference_location_link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export const getReferenceLocationLink = async (identifier: TextDocumentIdentifie
}

// find origin selection range
const matchStart: Position = { line: safePositionStart.line, character: safePositionStart.character + processReferenceMatch.index }
const matchEnd: Position = { line: matchStart.line, character: matchStart.character + processReferenceMatch[1].length }
const matchStart: Position = { line: safePositionStart.line, character: safePositionStart.character + processReferenceMatch.index };
const matchEnd: Position = { line: matchStart.line, character: matchStart.character + processReferenceMatch[1].length };
const originSelectionRange = Range.create(matchStart, matchEnd);
if (matchStart > position || position > matchEnd) {
return undefined;
Expand All @@ -38,8 +38,8 @@ export const getReferenceLocationLink = async (identifier: TextDocumentIdentifie

const targetMatch = text.indexOf(processReferenceMatch[1]);
if (targetMatch >= 0) {
const startOffset = document.document.offsetAt(currentStart)
targetStart = document.document.positionAt(startOffset + targetMatch)
const startOffset = document.document.offsetAt(currentStart);
targetStart = document.document.positionAt(startOffset + targetMatch);

break;
}
Expand All @@ -53,4 +53,4 @@ export const getReferenceLocationLink = async (identifier: TextDocumentIdentifie

const targetRange = Range.create(targetStart, {line: targetStart.line, character: targetStart.character + processReferenceMatch[1].length});
return LocationLink.create(identifier.uri, targetRange, targetRange, originSelectionRange);
}
};

0 comments on commit 6ab41d7

Please sign in to comment.