File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3021,11 +3021,6 @@ declare namespace vscode {
30213021 */
30223022 export function openTextDocument ( fileName : string ) : Thenable < TextDocument > ;
30233023
3024- /**
3025- *
3026- */
3027- export function closeTextDocument ( document : TextDocument ) : Thenable < boolean > ;
3028-
30293024 /**
30303025 *
30313026 */
Original file line number Diff line number Diff line change @@ -255,9 +255,6 @@ export class ExtHostAPIImplementation {
255255 openTextDocument ( uriOrFileName :vscode . Uri | string ) {
256256 return pluginHostDocuments . openDocument ( uriOrFileName ) ;
257257 } ,
258- closeTextDocument ( document : vscode . TextDocument ) {
259- return pluginHostDocuments . closeDocument ( document ) ;
260- } ,
261258 registerTextDocumentContentProvider ( scheme : string , provider : vscode . TextDocumentContentProvider ) {
262259 return pluginHostDocuments . registerTextDocumentContentProvider ( scheme , provider ) ;
263260 } ,
Original file line number Diff line number Diff line change @@ -136,10 +136,6 @@ export class ExtHostModelService {
136136 } ) ;
137137 }
138138
139- public closeDocument ( document : vscode . TextDocument ) : TPromise < boolean > {
140- return this . _proxy . _tryCloseDocument ( < URI > document . uri ) ;
141- }
142-
143139 public registerTextDocumentContentProvider ( scheme : string , provider : vscode . TextDocumentContentProvider ) : vscode . Disposable {
144140 if ( scheme === 'file' || scheme === 'untitled' || this . _documentContentProviders [ scheme ] ) {
145141 throw new Error ( `scheme '${ scheme } ' already registered` ) ;
@@ -752,9 +748,4 @@ export class MainThreadDocuments {
752748 return true ;
753749 } ) ;
754750 }
755-
756- _tryCloseDocument ( uri : URI ) : TPromise < boolean > {
757- this . _modelService . destroyModel ( uri ) ;
758- return TPromise . as ( true ) ;
759- }
760751}
You can’t perform that action at this time.
0 commit comments