Skip to content

Commit

Permalink
Remove duplicated code
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Nikitenko <[email protected]>
  • Loading branch information
RomanNikitenko committed Dec 11, 2018
1 parent bd40231 commit eb586cd
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions packages/plugin/src/theia.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1765,36 +1765,6 @@ declare module '@theia/plugin' {
onDidDelete: Event<Uri>;
}

/**
* A text document content provider allows to add readonly documents
* to the editor, such as source from a dll or generated html from md.
*
* Content providers are [registered](#workspace.registerTextDocumentContentProvider)
* for a [uri-scheme](#Uri.scheme). When a uri with that scheme is to
* be [loaded](#workspace.openTextDocument) the content provider is
* asked.
*/
export interface TextDocumentContentProvider {

/**
* An event to signal a resource has changed.
*/
onDidChange?: Event<Uri>;

/**
* Provide textual content for a given uri.
*
* The editor will use the returned string-content to create a readonly
* [document](#TextDocument). Resources allocated should be released when
* the corresponding document has been [closed](#workspace.onDidCloseTextDocument).
*
* @param uri An uri which scheme matches the scheme this provider was [registered](#workspace.registerTextDocumentContentProvider) for.
* @param token A cancellation token.
* @return A string or a thenable that resolves to such.
*/
provideTextDocumentContent(uri: Uri, token: CancellationToken): ProviderResult<string>;
}

/**
* A cancellation token used to request cancellation on long running
* or asynchronous task.
Expand Down Expand Up @@ -3783,17 +3753,6 @@ declare module '@theia/plugin' {
*/
export function openTextDocument(options?: { language?: string; content?: string; }): Promise<TextDocument | undefined>;

/**
* Register a text document content provider.
*
* Only one provider can be registered per scheme.
*
* @param scheme The uri-scheme to register for.
* @param provider A content provider.
* @return A [disposable](#Disposable) that unregisters this provider when being disposed.
*/
export function registerTextDocumentContentProvider(scheme: string, provider: TextDocumentContentProvider): Disposable;

/**
* Get a workspace configuration object.
*
Expand Down

0 comments on commit eb586cd

Please sign in to comment.