vscode#Event TypeScript Examples
The following examples show how to use
vscode#Event.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TextDocumentService.ts From dendron with GNU Affero General Public License v3.0 | 6 votes |
/**
*
* @param ext Instance of IDendronExtension
* @param textDocumentEvent - Event returning TextDocument, such as
* vscode.workspace.OnDidSaveTextDocument. This call is not debounced
*/
constructor(ext: IDendronExtension, textDocumentEvent: Event<TextDocument>) {
this.L = Logger;
this._extension = ext;
this._textDocumentEventHandle = textDocumentEvent(this.onDidSave, this);
}
Example #2
Source File: targetWatchers.ts From vscode-dbt-power-user with MIT License | 6 votes |
constructor(
_onManifestChanged: EventEmitter<ManifestCacheChangedEvent>,
onProjectConfigChanged: Event<ProjectConfigChangedEvent>,
private manifestParser: ManifestParser
) {
this._onManifestChanged = _onManifestChanged;
this.disposables.push(
onProjectConfigChanged((event) => this.onProjectConfigChanged(event))
);
}
Example #3
Source File: sourceFileWatchers.ts From vscode-dbt-power-user with MIT License | 5 votes |
createSourceFileWatchers(onProjectConfigChanged: Event<ProjectConfigChangedEvent>) {
return new SourceFileWatchers(onProjectConfigChanged);
}
Example #4
Source File: connectionProvider.ts From vscode-ssh with MIT License | 5 votes |
readonly onDidChangeTreeData: Event<AbstractNode> = this._onDidChangeTreeData.event;
Example #5
Source File: taskProvider.ts From vscode-todo-md with MIT License | 5 votes |
readonly onDidChangeTreeData: Event<TaskTreeItem | undefined> = this._onDidChangeTreeData.event;
Example #6
Source File: tagProvider.ts From vscode-todo-md with MIT License | 5 votes |
readonly onDidChangeTreeData: Event<TagTreeItem | undefined> = this._onDidChangeTreeData.event;
Example #7
Source File: projectProvider.ts From vscode-todo-md with MIT License | 5 votes |
readonly onDidChangeTreeData: Event<ProjectTreeItem | undefined> = this._onDidChangeTreeData.event;
Example #8
Source File: contextProvider.ts From vscode-todo-md with MIT License | 5 votes |
readonly onDidChangeTreeData: Event<ContextTreeItem | undefined> = this._onDidChangeTreeData.event;
Example #9
Source File: stripeTreeViewDataProvider.ts From vscode-stripe with MIT License | 5 votes |
readonly onDidChangeTreeData: Event<TreeItem | null> = this._onDidChangeTreeData.event;
Example #10
Source File: fileDecorator.ts From vscode-swissknife with MIT License | 5 votes |
public onDidChangeFileDecorations: Event<Uri | Uri[] | undefined>
Example #11
Source File: q-server-tree.ts From vscode-q with MIT License | 5 votes |
readonly onDidChangeTreeData: Event<QConn | undefined> = this._onDidChangeTreeData.event;
Example #12
Source File: q-dict.ts From vscode-q with MIT License | 5 votes |
readonly onDidChangeTextDocument: Event<TextDocumentContentChangeEvent> = this._onDidChangeTextDocument.event;
Example #13
Source File: q-dict.ts From vscode-q with MIT License | 5 votes |
readonly onDidChangeTreeData: Event<QDictTreeItem | undefined> = this._onDidChangeTreeData.event;
Example #14
Source File: history.ts From vscode-q with MIT License | 5 votes |
readonly onDidChangeTreeData: Event<HistoryTreeItem | undefined> = this._onDidChangeTreeData.event;
Example #15
Source File: ModelTreeviewProvider.ts From vscode-dbt-power-user with MIT License | 5 votes |
readonly onDidChangeTreeData: Event<ModelTreeItem | undefined | void> = this
._onDidChangeTreeData.event;
Example #16
Source File: targetWatchers.ts From vscode-dbt-power-user with MIT License | 5 votes |
createTargetWatchers(
_onManifestChanged: EventEmitter<ManifestCacheChangedEvent>,
onProjectConfigChanged: Event<ProjectConfigChangedEvent>
) {
return new TargetWatchers(_onManifestChanged, onProjectConfigChanged, this.manifestParser);
}
Example #17
Source File: sourceFileWatchers.ts From vscode-dbt-power-user with MIT License | 5 votes |
constructor(onProjectConfigChanged: Event<ProjectConfigChangedEvent>) {
this.disposables.push(
onProjectConfigChanged((event) => this.onProjectConfigChanged(event))
);
}
Example #18
Source File: driveFileSystemProvider.ts From google-drive-vscode with MIT License | 5 votes |
readonly onDidChangeFile: Event<FileChangeEvent[]> = this._emitter.event;
Example #19
Source File: dbtProjectLog.ts From vscode-dbt-power-user with MIT License | 5 votes |
constructor(
onProjectConfigChanged: Event<ProjectConfigChangedEvent>
) {
this.disposables.push(
onProjectConfigChanged((event) => this.onProjectConfigChanged(event))
);
}
Example #20
Source File: dbtProjectLog.ts From vscode-dbt-power-user with MIT License | 5 votes |
createDBTProjectLog(
onProjectConfigChanged: Event<ProjectConfigChangedEvent>
) {
return new DBTProjectLog(onProjectConfigChanged);
}
Example #21
Source File: dbtProject.ts From vscode-dbt-power-user with MIT License | 5 votes |
public onSourceFileChanged: Event<void>;
Example #22
Source File: EngineNoteProvider.ts From dendron with GNU Affero General Public License v3.0 | 5 votes |
/**
* Signals to vscode UI engine that the tree view needs to be refreshed.
*/
readonly onDidChangeTreeData: Event<NoteProps | undefined | void>;
Example #23
Source File: HelpFeedbackTreeview.ts From dendron with GNU Affero General Public License v3.0 | 5 votes |
onDidChangeTreeData?: Event<void | MenuItem | null | undefined> | undefined;
Example #24
Source File: BacklinksTreeDataProvider.ts From dendron with GNU Affero General Public License v3.0 | 5 votes |
/**
* Signals to vscode UI engine that the backlinks view needs to be refreshed.
*/
readonly onDidChangeTreeData: Event<Backlink | undefined | void>;
Example #25
Source File: comment-view.ts From vscode-code-review with MIT License | 5 votes |
readonly onDidChangeTreeData: Event<CommentListEntry | undefined> = this._onDidChangeTreeData.event;
Example #26
Source File: utopia-fs.ts From utopia with MIT License | 5 votes |
readonly onUtopiaDidChangeUnsavedContent: Event<Uri[]> =
this.utopiaUnsavedChangeEventQueue.emitter.event
Example #27
Source File: utopia-fs.ts From utopia with MIT License | 5 votes |
readonly onUtopiaDidChangeSavedContent: Event<Uri[]> =
this.utopiaSavedChangeEventQueue.emitter.event
Example #28
Source File: utopia-fs.ts From utopia with MIT License | 5 votes |
// FileSystemProvider
readonly onDidChangeFile: Event<FileChangeEvent[]> = this.fileChangeEventQueue.emitter.event
Example #29
Source File: tree-data-provider.ts From plugin-vscode with Apache License 2.0 | 5 votes |
readonly onDidChangeTreeData: Event<PackageTreeItem | undefined> = this._onDidChangeTreeData.event;