mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-10 18:22:34 -05:00
Replaced db project readme file with opening a doc in browser after project is created (#19543)
This commit is contained in:
@@ -56,6 +56,7 @@ export const No = localize('dataworkspace.no', "No");
|
||||
export const SdkLearnMorePlaceholder = localize('dataworkspace.sdkLearnMorePlaceholder', "Click \"Learn More\" button for more information about SDK-style projects");
|
||||
export const Default = localize('dataworkspace.default', "Default");
|
||||
export const SelectTargetPlatform = localize('dataworkspace.selectTargetPlatform', "Select Target Platform");
|
||||
export const LocalDevInfo = (target: string) => localize('LocalDevInfo', "Click \"Learn more\" button for more information about local development experience to {0}", target);
|
||||
|
||||
//Open Existing Dialog
|
||||
export const OpenExistingDialogTitle = localize('dataworkspace.openExistingDialogTitle', "Open Existing Project");
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
|
||||
import * as fs from 'fs';
|
||||
import type * as azdataType from 'azdata';
|
||||
import * as vscode from 'vscode';
|
||||
import * as constants from './constants';
|
||||
|
||||
export async function directoryExist(directoryPath: string): Promise<boolean> {
|
||||
const stats = await getFileStatus(directoryPath);
|
||||
@@ -69,3 +71,15 @@ try {
|
||||
export function getAzdataApi(): typeof azdataType | undefined {
|
||||
return azdataApi;
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows a message with a "Learn More" button
|
||||
* @param message Info message
|
||||
* @param link Link to open when "Learn Button" is clicked
|
||||
*/
|
||||
export async function showInfoMessageWithLearnMoreLink(message: string, link: string): Promise<void> {
|
||||
const result = await vscode.window.showInformationMessage(message, constants.LearnMore);
|
||||
if (result === constants.LearnMore) {
|
||||
void vscode.env.openExternal(vscode.Uri.parse(link));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user