Skip to content

Commit

Permalink
[1.2.1] new release
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrnperl committed Oct 14, 2023
1 parent db45351 commit 71719c4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,10 @@ typo
- Region and tag support #43
- Region and tag symbols
- Syntax highlight
- Region folding
- Region folding

### [1.2.1] - 2023-10-14

#### Fix

- search field size
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "outline-map",
"displayName": "Outline Map",
"description": "A visual, interactive outline map that combinesAlternative Minimap. the clarity of the outline with the intuitive overview of the minimap. Enhanced version of vscode built-in outline.",
"version": "1.2.0",
"version": "1.2.1",
"repository": {
"url": "https://github.com/Gerrnperl/outline-map.git"
},
Expand Down
4 changes: 2 additions & 2 deletions src/extension/outline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,10 @@ class OutlineTree {
else if (this.attempts < this.MAX_ATTEMPTS) {
this.attempts++;
// Try again in 300ms
setTimeout(() => this.updateSymbols(), 300);
setTimeout(() => this.updateSymbols(), 300 * this.attempts);
config.debug() && console.log(`Outline-map: Failed to get symbols of ${this.textDocument.uri.toString()}. Attempt ${this.attempts} of ${this.MAX_ATTEMPTS}.`);
}
else {
else if (config.debug()){
throw new Error(`Outline-map: Failed to get symbols of ${this.textDocument.uri.toString()}.`);
}
}
Expand Down
8 changes: 8 additions & 0 deletions src/extension/region.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ export class RegionProvider implements DocumentSymbolProvider, FoldingRangeProvi
this.semanticTokens = tokensBuilder.build();
}

//#region providers

provideFoldingRanges(document: TextDocument, context: FoldingContext, token: CancellationToken): ProviderResult<FoldingRange[]> {
this.update(document);
return this.folding;
Expand All @@ -263,6 +265,10 @@ export class RegionProvider implements DocumentSymbolProvider, FoldingRangeProvi
return this.semanticTokens;
}

//#endregion providers

//#region syntax syntax parsing

/**
* Match a line against the region and tag patterns
* @param line the line to match
Expand Down Expand Up @@ -358,4 +364,6 @@ export class RegionProvider implements DocumentSymbolProvider, FoldingRangeProvi
return result;
}

//#endregion syntax

}

0 comments on commit 71719c4

Please sign in to comment.