ソースを参照

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

読み込み中…
キャンセル
保存