mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Add synapse repo to dropdown option (#13536)
* Add synapse repo * fix typo
This commit is contained in:
@@ -9,7 +9,7 @@ import { RemoteBookController, IAsset } from '../book/remoteBookController';
|
|||||||
import * as utils from '../common/utils';
|
import * as utils from '../common/utils';
|
||||||
import * as vscode from 'vscode';
|
import * as vscode from 'vscode';
|
||||||
|
|
||||||
const tigerToolboxRepo = 'repos/microsoft/tigertoolbox';
|
const defaultRepos = ['repos/microsoft/tigertoolbox', 'repos/azure-samples/synapse'];
|
||||||
const urlGithubRE = /^(?:https:\/\/(?:github\.com|api\.github\.com\/repos)|(?:\/)?(?:\/)?repos)([\w-.?!=&%*+:@\/]*)/g;
|
const urlGithubRE = /^(?:https:\/\/(?:github\.com|api\.github\.com\/repos)|(?:\/)?(?:\/)?repos)([\w-.?!=&%*+:@\/]*)/g;
|
||||||
|
|
||||||
function apiGitHub(url: string): string {
|
function apiGitHub(url: string): string {
|
||||||
@@ -54,7 +54,7 @@ export class RemoteBookDialog {
|
|||||||
this.remoteLocationDropdown.onValueChanged(e => this.onRemoteLocationChanged());
|
this.remoteLocationDropdown.onValueChanged(e => this.onRemoteLocationChanged());
|
||||||
|
|
||||||
this.githubRepoDropdown = this.view.modelBuilder.dropDown().withProperties({
|
this.githubRepoDropdown = this.view.modelBuilder.dropDown().withProperties({
|
||||||
values: [tigerToolboxRepo],
|
values: defaultRepos,
|
||||||
value: '',
|
value: '',
|
||||||
editable: true,
|
editable: true,
|
||||||
fireOnTextChange: true,
|
fireOnTextChange: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user