Skip to content

Commit

Permalink
Update calls from the plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
bugarela committed Aug 16, 2023
1 parent a37f9b0 commit b0c0897
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions vscode/quint-vscode/server/src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ export function findDefinition(

// Find definition of name
const def = table.get(id)
if (!def || !def.reference) {
if (!def) {
return { nameId: id, name }
}

return {
nameId: id,
name,
definitionId: def?.reference,
definitionId: def.id,
}
}
2 changes: 1 addition & 1 deletion vscode/quint-vscode/server/src/documentSymbols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function symbolKind(def: QuintOpDef | QuintConst | QuintVar): SymbolKind {
* Return the def symbols defined in a module
*/
function getDefs(module: QuintModule, sourceMap: Map<bigint, Loc>): DocumentSymbol[] {
return module.defs.reduce((symbols, def) => {
return module.declarations.reduce((symbols, def) => {
// skip certain kinds of defs
if (
def.kind === 'assume' ||
Expand Down
4 changes: 2 additions & 2 deletions vscode/quint-vscode/server/src/hover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
findDefinitionWithId,
findExpressionWithId,
format,
prettyQuintDef,
prettyQuintDeclaration,
prettyTypeScheme,
qualifierToString,
} from '@informalsystems/quint'
Expand Down Expand Up @@ -92,7 +92,7 @@ function inferredDataHover(
}

const text = def
? format(lineLength, 0, prettyQuintDef(def, false, result))
? format(lineLength, 0, prettyQuintDeclaration(def, false, result))
: expressionToShow(expr!, parsedData.modules, link, document, loc, result)

if (!text) {
Expand Down

0 comments on commit b0c0897

Please sign in to comment.