Procházet zdrojové kódy

Fixes #331 - Code lens shows on every import in Python

main
Eric Amodio před 6 roky
rodič
revize
62a7eaf368
3 změnil soubory, kde provedl 17 přidání a 2 odebrání
  1. +1
    -0
      CHANGELOG.md
  2. +8
    -2
      package.json
  3. +8
    -0
      src/gitCodeLensProvider.ts

+ 1
- 0
CHANGELOG.md Zobrazit soubor

@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Marks temporary files (used when showing comparisions with previous revisions) as read-only to help avoid accidental edits/saving
### Fixed
- Fixes [#331](https://github.com/eamodio/vscode-gitlens/issues/331) - Code lens shows on every import in Python
- Fixes issues where quick pick menu progress indicators will get stuck in some cases because of a vscode api change in [Microsoft/vscode#46102](https://github.com/Microsoft/vscode/pull/46102)
## [8.2.0] - 2018-03-31

+ 8
- 2
package.json Zobrazit soubor

@ -239,19 +239,25 @@
]
},
{
"language": "python",
"symbolScopes": [
"!Module"
]
},
{
"language": "scss",
"scopes": [
"document"
]
},
{
"language": "vue",
"language": "stylus",
"scopes": [
"document"
]
},
{
"language": "stylus",
"language": "vue",
"scopes": [
"document"
]

+ 8
- 0
src/gitCodeLensProvider.ts Zobrazit soubor

@ -95,6 +95,14 @@ export class GitCodeLensProvider implements CodeLensProvider {
symbolScopes: cfg.symbolScopes
} as CodeLensLanguageScope;
}
else {
if (languageScope.scopes === undefined) {
languageScope.scopes = cfg.scopes;
}
if (languageScope.symbolScopes === undefined) {
languageScope.symbolScopes = cfg.symbolScopes;
}
}
languageScope.symbolScopes = languageScope.symbolScopes != null
? languageScope.symbolScopes = languageScope.symbolScopes.map(s => s.toLowerCase())

Načítá se…
Zrušit
Uložit