提交 00a44d37 编写于 作者: M Martin Aeschlimann

[html] remove document settings on buffer close

上级 964028f9
......@@ -47,6 +47,10 @@ let scopedSettingsSupport = false;
var globalSettings: Settings = {};
let documentSettings: { [key: string]: Thenable<Settings> } = {};
// remove document settings on close
documents.onDidClose(e => {
delete documentSettings[e.document.uri];
});
function getDocumentSettings(textDocument: TextDocument, needsDocumentSettings: () => boolean): Thenable<Settings> {
if (scopedSettingsSupport && needsDocumentSettings()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册