Преглед на файлове

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

main
Eric Amodio преди 6 години
родител
ревизия
62a7eaf368
променени са 3 файла, в които са добавени 17 реда и са изтрити 2 реда
  1. +1
    -0
      CHANGELOG.md
  2. +8
    -2
      package.json
  3. +8
    -0
      src/gitCodeLensProvider.ts

+ 1
- 0
CHANGELOG.md Целия файл

@ -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 Целия файл

@ -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 Целия файл

@ -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())

Зареждане…
Отказ
Запис