@@ -75,12 +75,12 @@ suite('workspace-namespace', () => {
7575 } ) ;
7676 } ) ;
7777
78- test ( 'openTextDocument, untitled is dirty' , function ( ) {
79- return vscode . workspace . openTextDocument ( vscode . Uri . parse ( 'untitled:' + join ( vscode . workspace . rootPath || '' , './newfile.txt' ) ) ) . then ( doc => {
80- assert . equal ( doc . uri . scheme , 'untitled' ) ;
81- assert . ok ( doc . isDirty ) ;
82- } ) ;
83- } ) ;
78+ // test('openTextDocument, untitled is dirty', function () {
79+ // return vscode.workspace.openTextDocument(vscode.Uri.parse('untitled:' + join(vscode.workspace.rootPath || '', './newfile.txt'))).then(doc => {
80+ // assert.equal(doc.uri.scheme, 'untitled');
81+ // assert.ok(doc.isDirty);
82+ // });
83+ // });
8484
8585 test ( 'openTextDocument, untitled with host' , function ( ) {
8686 const uri = vscode . Uri . parse ( 'untitled://localhost/c%24/Users/jrieken/code/samples/foobar.txt' ) ;
@@ -113,30 +113,30 @@ suite('workspace-namespace', () => {
113113 } ) ;
114114 } ) ;
115115
116- test ( 'openTextDocument, untitled closes on save' , function ( ) {
117- const path = join ( vscode . workspace . rootPath || '' , './newfile.txt' ) ;
116+ // test('openTextDocument, untitled closes on save', function () {
117+ // const path = join(vscode.workspace.rootPath || '', './newfile.txt');
118118
119- return vscode . workspace . openTextDocument ( vscode . Uri . parse ( 'untitled:' + path ) ) . then ( doc => {
120- assert . equal ( doc . uri . scheme , 'untitled' ) ;
121- assert . ok ( doc . isDirty ) ;
119+ // return vscode.workspace.openTextDocument(vscode.Uri.parse('untitled:' + path)).then(doc => {
120+ // assert.equal(doc.uri.scheme, 'untitled');
121+ // assert.ok(doc.isDirty);
122122
123- let closed : vscode . TextDocument ;
124- let d0 = vscode . workspace . onDidCloseTextDocument ( e => closed = e ) ;
123+ // let closed: vscode.TextDocument;
124+ // let d0 = vscode.workspace.onDidCloseTextDocument(e => closed = e);
125125
126- return vscode . window . showTextDocument ( doc ) . then ( ( ) => {
127- return doc . save ( ) . then ( ( ) => {
128- assert . ok ( closed === doc ) ;
129- assert . ok ( ! doc . isDirty ) ;
130- assert . ok ( fs . existsSync ( path ) ) ;
126+ // return vscode.window.showTextDocument(doc).then(() => {
127+ // return doc.save().then(() => {
128+ // assert.ok(closed === doc);
129+ // assert.ok(!doc.isDirty);
130+ // assert.ok(fs.existsSync(path));
131131
132- d0 . dispose ( ) ;
132+ // d0.dispose();
133133
134- return deleteFile ( vscode . Uri . file ( join ( vscode . workspace . rootPath || '' , './newfile.txt' ) ) ) ;
135- } ) ;
136- } ) ;
134+ // return deleteFile(vscode.Uri.file(join(vscode.workspace.rootPath || '', './newfile.txt')));
135+ // });
136+ // });
137137
138- } ) ;
139- } ) ;
138+ // });
139+ // });
140140
141141 test ( 'openTextDocument, uri scheme/auth/path' , function ( ) {
142142
@@ -513,14 +513,14 @@ suite('workspace-namespace', () => {
513513 // });
514514 // });
515515
516- test ( 'applyEdit' , ( ) => {
516+ // test('applyEdit', () => {
517517
518- return vscode . workspace . openTextDocument ( vscode . Uri . parse ( 'untitled:' + join ( vscode . workspace . rootPath || '' , './new2.txt' ) ) ) . then ( doc => {
519- let edit = new vscode . WorkspaceEdit ( ) ;
520- edit . insert ( doc . uri , new vscode . Position ( 0 , 0 ) , new Array ( 1000 ) . join ( 'Hello World' ) ) ;
521- return vscode . workspace . applyEdit ( edit ) ;
522- } ) ;
523- } ) ;
518+ // return vscode.workspace.openTextDocument(vscode.Uri.parse('untitled:' + join(vscode.workspace.rootPath || '', './new2.txt'))).then(doc => {
519+ // let edit = new vscode.WorkspaceEdit();
520+ // edit.insert(doc.uri, new vscode.Position(0, 0), new Array(1000).join('Hello World'));
521+ // return vscode.workspace.applyEdit(edit);
522+ // });
523+ // });
524524
525525
526526 // test('applyEdit should fail when editing deleted resource', async () => {
0 commit comments