src/vs/workbench/browser/parts/editor/textEditor.ts/BaseTextEditor/getActiveResource
class BaseTextEditor:	private getActiveResource(): URI | undefined {
		const codeEditor = getCodeEditor(this.editorControl);
		if (codeEditor) {
			const model = codeEditor.getModel();
			if (model) {
				return model.uri;
			}
		}

		if (this.input) {
			return this.input.resource;
		}

		return undefined;
	}