提交 964028f9 编写于 作者: M Martin Aeschlimann

[css] remove document settings on buffer close

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