Skip to content

Commit

Permalink
WIP - simplifying the stub
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Dumais <marc.dumais@ericsson.com>
  • Loading branch information
marcdumais-work committed May 16, 2023
1 parent ce3eb8f commit f6cb9db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
4 changes: 1 addition & 3 deletions packages/plugin-ext/src/plugin/plugin-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -729,9 +729,7 @@ export function createAPIFactory(
* event should never fire. This should minimally satisfy vscode built-in extensions that decide
* to use this proposed API.
*/
get onWillCreateEditSessionIdentity(): theia.Event<theia.EditSessionIdentityWillCreateEvent> {
return workspaceExt.onWillCreateEditSessionIdentityEvent;
}
onWillCreateEditSessionIdentity: () => Disposable.create(() => {} ),
};

const onDidChangeLogLevel = new Emitter<theia.LogLevel>();
Expand Down
8 changes: 0 additions & 8 deletions packages/plugin-ext/src/plugin/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,6 @@ export class WorkspaceExtImpl implements WorkspaceExt {
private didGrantWorkspaceTrustEmitter = new Emitter<void>();
public readonly onDidGrantWorkspaceTrust: Event<void> = this.didGrantWorkspaceTrustEmitter.event;

private willCreateEditSessionIdentityEmitter = new Emitter<theia.EditSessionIdentityWillCreateEvent>();
/**
* @stubbed
* This is a stub implementation, lacking a Session Identity server/service, and so the event
* should never fire
*/
public readonly onWillCreateEditSessionIdentityEvent: Event<theia.EditSessionIdentityWillCreateEvent> = this.willCreateEditSessionIdentityEmitter.event;

constructor(rpc: RPCProtocol,
private editorsAndDocuments: EditorsAndDocumentsExtImpl,
private messageService: MessageRegistryExt) {
Expand Down

0 comments on commit f6cb9db

Please sign in to comment.