File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
2424- Removes ` gitlens.theme.* ` settings - now using built-in theme support
2525
2626### Fixed
27+ - Fixes [ #211 ] ( https://github.com/eamodio/vscode-gitlens/issues/211 ) - Unsaved code lens appears on untracked files
2728- Fixes issue where ` Open * in Remote ` commands are sometimes missing
2829
2930## [ 6.1.2] - 2017-11-21
Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ export class GitCodeLensProvider implements CodeLensProvider {
6767 }
6868
6969 async provideCodeLenses ( document : TextDocument , token : CancellationToken ) : Promise < CodeLens [ ] > {
70+ if ( ! await this . git . isTracked ( document . uri . fsPath ) ) return [ ] ;
71+
7072 const dirty = document . isDirty ;
7173
7274 const cfg = configuration . get < ICodeLensConfig > ( configuration . name ( 'codeLens' ) . value , document . uri ) ;
You can’t perform that action at this time.
0 commit comments