Skip to content

Commit 6e4f070

Browse files
committed
Fixes #245 - code lens is jumpy
1 parent 4a5217d commit 6e4f070

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [Unreleased]
8+
### Fixed
9+
- Fixes [#245](https://github.com/eamodio/vscode-gitlens/issues/245) - CodeLens disappears/and reappears when auto-saving
10+
711
## [7.5.2] - 2018-01-15
812
### Fixed
913
- Fixes [#242](https://github.com/eamodio/vscode-gitlens/issues/242) - Broken "gitlens.blame.line.enabled" setting

src/configuration.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,9 @@ export interface IConfig {
321321
advanced: IAdvancedConfig;
322322
}
323323

324-
const emptyObj = {};
325-
const emptyConfig = new Proxy<IConfig>(emptyObj as IConfig, {
324+
const emptyConfig: any = new Proxy<any>({} as IConfig, {
326325
get(target, propKey, receiver) {
327-
return emptyObj;
326+
return emptyConfig;
328327
}
329328
});
330329

@@ -379,7 +378,7 @@ export class Configuration {
379378
}
380379

381380
name<K extends keyof IConfig>(name: K) {
382-
return Functions.propOf(emptyConfig, name);
381+
return Functions.propOf(emptyConfig as IConfig, name);
383382
}
384383

385384
update(section: string, value: any, target: ConfigurationTarget) {

0 commit comments

Comments
 (0)