mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-19 03:21:36 -04:00
fix find object dialog type display name issue (#23232)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
import * as nls from 'vscode-nls';
|
||||
import { ObjectManagement } from 'mssql';
|
||||
import { ObjectTypeInfo } from './ui/findObjectDialog';
|
||||
const localize = nls.loadMessageBundle();
|
||||
|
||||
// Object Types
|
||||
@@ -273,3 +274,12 @@ export function getUserTypeByDisplayName(displayName: string): ObjectManagement.
|
||||
}
|
||||
throw new Error(`Unknown user type display name: ${displayName}`);
|
||||
}
|
||||
|
||||
export function getObjectTypeInfo(typeNames: string[]): ObjectTypeInfo[] {
|
||||
return typeNames.map(typeName => {
|
||||
return {
|
||||
name: typeName,
|
||||
displayName: getNodeTypeDisplayName(typeName, true)
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user