@@ -77,8 +77,9 @@ export class CompletionLibraryDcl {
7777
7878 private generateDynamics ( ) : void {
7979 const localDialogStruct = localize ( "autolispext.commands.dclcompletion.primitive.dialog" , "Generates a dialog structure" ) ;
80+ const localTile = localize ( "autolispext.commands.dclcompletion.primitive.Tile" , "Tile" ) ;
8081 this . dclSnippets . set ( SnippetKeys . DIALOG ,
81- this . makeSnippet ( 'dialog' , localDialogStruct , 'Tile' , `\${1:NAME} : dialog {\n\t$0\n}` , Kinds . TILE )
82+ this . makeSnippet ( 'dialog' , localDialogStruct , localTile , `\${1:NAME} : dialog {\n\t$0\n}` , Kinds . TILE )
8283 ) ;
8384
8485 const localPrimitive = localize ( "autolispext.commands.dclcompletion.primitive" , "Primitive" ) ;
@@ -113,6 +114,8 @@ export class CompletionLibraryDcl {
113114 }
114115
115116 private generateTiles ( ) : void {
117+ const localTile = localize ( "autolispext.commands.dclcompletion.primitive.Tile" , "Tile" ) ;
118+
116119 for ( const key of AutoLispExt . WebHelpLibrary . dclTiles . keys ( ) ) {
117120 const lowerKey = key . toLowerCase ( ) ;
118121 if ( lowerKey === 'dialog' ) {
@@ -122,7 +125,7 @@ export class CompletionLibraryDcl {
122125 const def = AutoLispExt . WebHelpLibrary . dclTiles . get ( key ) ;
123126 const item = new CompletionItemDcl ( def . id ) ;
124127 item . kind = Kinds . TILE ;
125- item . detail = 'Tile' ;
128+ item . detail = localTile ;
126129 item . sortText = `!${ lowerKey } ` ; // The '!' helps elevate suggestions
127130 item . documentation = Annotation . asMarkdown ( def ) ;
128131 item . insertText = def . id ;
@@ -140,12 +143,14 @@ export class CompletionLibraryDcl {
140143 // TODO: OS Filtering Technical debt
141144 // After the Lisp AutoComplete gets updated, then we can turn on the new setting for both document types.
142145
146+ const localAttr = localize ( "autolispext.commands.dclcompletion.primitive.Attribute" , "Attribute" ) ;
147+
143148 for ( const key of AutoLispExt . WebHelpLibrary . dclAttributes . keys ( ) ) {
144149 const def = AutoLispExt . WebHelpLibrary . dclAttributes . get ( key ) ;
145150 const lowerKey = key . toLowerCase ( ) ;
146151 const item = new CompletionItemDcl ( def . id ) ;
147152 item . kind = Kinds . ATTRIBUTE ;
148- item . detail = 'Attribute' ;
153+ item . detail = localAttr ;
149154 item . sortText = `!!${ lowerKey } ` ; // The '!!' helps elevate Attribute suggestions above Tile suggestions
150155 item . documentation = Annotation . asMarkdown ( def ) ;
151156 item . insertText = def . id ;
@@ -154,6 +159,8 @@ export class CompletionLibraryDcl {
154159 }
155160
156161 private generateEnums ( ) : void {
162+ const localEnum = localize ( "autolispext.commands.dclcompletion.primitive.Enum" , "Enum" ) ;
163+
157164 for ( const key of AutoLispExt . WebHelpLibrary . dclAttributes . keys ( ) ) {
158165 const def = AutoLispExt . WebHelpLibrary . dclAttributes . get ( key ) ;
159166 const lowerKey = key . toLowerCase ( ) ;
@@ -173,7 +180,7 @@ export class CompletionLibraryDcl {
173180 def . valueType . enums . forEach ( name => {
174181 const item = new CompletionItemDcl ( name ) ;
175182 item . kind = Kinds . ENUM ;
176- item . detail = 'Enum' ;
183+ item . detail = localEnum ;
177184 item . sortText = name ;
178185 item . insertText = name ;
179186 types . push ( item ) ;
0 commit comments