5
5
6
6
import * as os from 'os' ;
7
7
import * as nls from 'vscode-nls' ;
8
+ import { CppSourceStrPrefix } from '../LanguageServer/extension' ;
8
9
9
10
nls . config ( { messageFormat : nls . MessageFormat . bundle , bundleFormat : nls . BundleFormat . standalone } ) ( ) ;
10
11
const localize : nls . LocalizeFunc = nls . loadMessageBundle ( ) ;
@@ -95,7 +96,6 @@ export interface IConfiguration {
95
96
}
96
97
97
98
abstract class Configuration implements IConfiguration {
98
- public snippetPrefix = "C/C++: " ;
99
99
100
100
public executable : string ;
101
101
public pipeProgram : string ;
@@ -128,7 +128,7 @@ export class MIConfigurations extends Configuration {
128
128
this . additionalProperties ? `,${ os . EOL } \t${ indentJsonString ( this . additionalProperties ) } ` : "" ] ) ;
129
129
130
130
return {
131
- "label" : this . snippetPrefix + name ,
131
+ "label" : CppSourceStrPrefix + name ,
132
132
"description" : localize ( "launch.with" , "Launch with {0}." , this . MIMode ) . replace ( / \" / g, "\\\"" ) ,
133
133
"bodyText" : body . trim ( ) ,
134
134
"isInitialConfiguration" : true ,
@@ -146,7 +146,7 @@ export class MIConfigurations extends Configuration {
146
146
this . additionalProperties ? `,${ os . EOL } \t${ indentJsonString ( this . additionalProperties ) } ` : "" ] ) ;
147
147
148
148
return {
149
- "label" : this . snippetPrefix + name ,
149
+ "label" : CppSourceStrPrefix + name ,
150
150
"description" : localize ( "attach.with" , "Attach with {0}." , this . MIMode ) . replace ( / \" / g, "\\\"" ) ,
151
151
"bodyText" : body . trim ( ) ,
152
152
"debuggerType" : DebuggerType . cppdbg
@@ -168,7 +168,7 @@ export class PipeTransportConfigurations extends Configuration {
168
168
}` , [ this . additionalProperties ? `,${ os . EOL } \t${ indentJsonString ( this . additionalProperties ) } ` : "" ] ) ;
169
169
170
170
return {
171
- "label" : this . snippetPrefix + name ,
171
+ "label" : CppSourceStrPrefix + name ,
172
172
"description" : localize ( "pipe.launch.with" , "Pipe Launch with {0}." , this . MIMode ) . replace ( / \" / g, "\\\"" ) ,
173
173
"bodyText" : body . trim ( ) ,
174
174
"debuggerType" : DebuggerType . cppdbg
@@ -186,7 +186,7 @@ export class PipeTransportConfigurations extends Configuration {
186
186
\t"MIMode": "${ this . MIMode } "{0}
187
187
}` , [ this . additionalProperties ? `,${ os . EOL } \t${ indentJsonString ( this . additionalProperties ) } ` : "" ] ) ;
188
188
return {
189
- "label" : this . snippetPrefix + name ,
189
+ "label" : CppSourceStrPrefix + name ,
190
190
"description" : localize ( "pipe.attach.with" , "Pipe Attach with {0}." , this . MIMode ) . replace ( / \" / g, "\\\"" ) ,
191
191
"bodyText" : body . trim ( ) ,
192
192
"debuggerType" : DebuggerType . cppdbg
@@ -206,7 +206,7 @@ export class WindowsConfigurations extends Configuration {
206
206
}` ;
207
207
208
208
return {
209
- "label" : this . snippetPrefix + name ,
209
+ "label" : CppSourceStrPrefix + name ,
210
210
"description" : localize ( "launch.with.vs.debugger" , "Launch with the Visual Studio C/C++ debugger." ) . replace ( / \" / g, "\\\"" ) ,
211
211
"bodyText" : body . trim ( ) ,
212
212
"isInitialConfiguration" : true ,
@@ -224,7 +224,7 @@ export class WindowsConfigurations extends Configuration {
224
224
}` ;
225
225
226
226
return {
227
- "label" : this . snippetPrefix + name ,
227
+ "label" : CppSourceStrPrefix + name ,
228
228
"description" : localize ( "attach.with.vs.debugger" , "Attach to a process with the Visual Studio C/C++ debugger." ) . replace ( / \" / g, "\\\"" ) ,
229
229
"bodyText" : body . trim ( ) ,
230
230
"debuggerType" : DebuggerType . cppvsdbg
@@ -247,7 +247,7 @@ export class WSLConfigurations extends Configuration {
247
247
}` , [ this . additionalProperties ? `,${ os . EOL } \t${ indentJsonString ( this . additionalProperties ) } ` : "" ] ) ;
248
248
249
249
return {
250
- "label" : this . snippetPrefix + name ,
250
+ "label" : CppSourceStrPrefix + name ,
251
251
"description" : localize ( "launch.bash.windows" , "Launch in Bash on Windows using {0}." , this . MIMode ) . replace ( / \" / g, "\\\"" ) ,
252
252
"bodyText" : body . trim ( ) ,
253
253
"debuggerType" : DebuggerType . cppdbg
@@ -264,7 +264,7 @@ export class WSLConfigurations extends Configuration {
264
264
}` , [ this . additionalProperties ? `,${ os . EOL } \t${ indentJsonString ( this . additionalProperties ) } ` : "" ] ) ;
265
265
266
266
return {
267
- "label" : this . snippetPrefix + name ,
267
+ "label" : CppSourceStrPrefix + name ,
268
268
"description" : localize ( "remote.attach.bash.windows" , "Attach to a remote process running in Bash on Windows using {0}." , this . MIMode ) . replace ( / \" / g, "\\\"" ) ,
269
269
"bodyText" : body . trim ( ) ,
270
270
"debuggerType" : DebuggerType . cppdbg
0 commit comments