瀏覽代碼

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

Loading…
取消
儲存