File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 ],
3434 "icon" : " media/flutter.png" ,
3535 "activationEvents" : [
36- " onCommand:flutter.createSampleProject" ,
3736 " onUri"
3837 ],
3938 "extensionDependencies" : [
4241 "main" : " ./out/src/extension" ,
4342 "contributes" : {
4443 "commands" : [
45- {
46- "command" : " flutter.createSampleProject" ,
47- "title" : " Open Widget Sample" ,
48- "category" : " Flutter"
49- }
5044 ]
5145 },
5246 "menus" : {
5347 "commandPalette" : [
54- {
55- "command" : " flutter.createSampleProject"
56- }
5748 ]
5849 },
5950 "scripts" : {
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ export class SdkCommands {
44 // TODO: Find an easy way to share the API signature class.
55 constructor ( context : vs . ExtensionContext , private dartExtensionApi : any ) {
66
7- context . subscriptions . push ( vs . commands . registerCommand ( "flutter.createSampleProject" ,
8- ( _ ) => this . runFunctionIfSupported ( dartExtensionApi . flutterCreateSampleProject ) ) ) ;
7+ // context.subscriptions.push(vs.commands.registerCommand("flutter.createSampleProject",
8+ // (_) => this.runFunctionIfSupported(dartExtensionApi.flutterCreateSampleProject)));
99 }
1010
1111 private async runFunctionIfSupported < T > ( f : ( ) => Promise < T > ) : Promise < T > {
@@ -18,6 +18,6 @@ export class SdkCommands {
1818 }
1919
2020 private showApiMismatchError ( ) : void {
21- vs . window . showErrorMessage ( "The installed version of the Dart extension does not support this feature. Please update the Dart extension. " ) ;
21+ vs . window . showErrorMessage ( "The installed version of the Dart extension does not support this feature." ) ;
2222 }
2323}
You can’t perform that action at this time.
0 commit comments