提交 3518467d 编写于 作者: J Johannes Rieken

Merge pull request #1408 from Microsoft/ben/issue/723

document.isDirty appears to report false for dirty untitled document (fixes #723)
......@@ -65,6 +65,7 @@ suite('workspace-namespace', () => {
return doc.save().then(() => {
assert.ok(closed === doc);
assert.ok(!doc.isDirty);
assert.ok(fs.existsSync(path));
d0.dispose();
......
......@@ -203,6 +203,7 @@ export class BaseTextDocument implements vscode.TextDocument {
dispose(): void {
this._lines.length = 0;
this._textLines.length = 0;
this._isDirty = false;
}
get uri(): URI {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册