为什么在 VSCodium Python 中每个代码块的末尾都有“虚拟注释”closureLables?以及如何禁用它?

问题描述

每个代码块的末尾都有“注释”或“标签”。但它们并不存在于真正的纯文本文件中——只存在于 VSCodium GUI 中。 它们对我来说毫无用处,而且经常“错误”。

以下是一些示例,您可以在最后一行中看到以 // 开头的“注释”。

@classmethod
def tearDownClass(cls):
    """
    """
    helper.clear_profile()
    FeedybusApplication.me = None
    FeedsData.me = None// @classmethod

def tearDown(self):
    """Called after each test deleting all Feeds.
    """
    # This will re-read the Feed-data from harddisk.
    # The data is empty and was created in setUpClass().
    FeedsData.me._load_Feedsfile()// def tearDown(self)

一个 similiar question related to the "Dart" language。但解决方案对我没有帮助。设置 python.closingLables 不存在。我尝试将它直接写入 settings.json 并在设置对话框中搜索它。

我不确定这是否也与 Python 扩展有关。

VSCodium on Debian 10
Version: 1.52.1
Commit: ea3859d4ba2f3e577a159bc91e3074c5d85c0523
Date: 2020-12-17T00:37:39.556Z
Electron: 9.3.5
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Linux x64 4.19.0-13-amd64

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)