-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SendFeedback menu item for NTVS (#1253)
* Add SendFeedback menu item for NTVS Adds a simple menu item to send feedback about ntvs. See #1252 for details Closes #1252 * Move send feedback to NTVS menu. Add documentaiton link * Add documentation command
- Loading branch information
Showing
6 changed files
with
98 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
//*********************************************************// | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// | ||
// Apache 2.0 License | ||
// | ||
// You may obtain a copy of the License at | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
// implied. See the License for the specific language governing | ||
// permissions and limitations under the License. | ||
// | ||
//*********************************************************// | ||
|
||
using System; | ||
using System.Diagnostics; | ||
using Microsoft.VisualStudioTools; | ||
|
||
namespace Microsoft.NodejsTools.Commands { | ||
internal sealed class SendFeedbackCommand : Command { | ||
public override void DoCommand(object sender, EventArgs args) { | ||
Process.Start(@"https://aka.ms/ntvs-feedback"); | ||
} | ||
|
||
public override int CommandId { | ||
get { return (int)PkgCmdId.cmdidSendFeedback; } | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
Nodejs/Product/Nodejs/Commands/ShowDocumentationCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
//*********************************************************// | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// | ||
// Apache 2.0 License | ||
// | ||
// You may obtain a copy of the License at | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
// implied. See the License for the specific language governing | ||
// permissions and limitations under the License. | ||
// | ||
//*********************************************************// | ||
|
||
using System; | ||
using System.Diagnostics; | ||
using Microsoft.VisualStudioTools; | ||
|
||
namespace Microsoft.NodejsTools.Commands { | ||
internal sealed class ShowDocumentationCommand : Command { | ||
public override void DoCommand(object sender, EventArgs args) { | ||
Process.Start(@"https://go.microsoft.com/fwlink/?linkid=785972"); | ||
} | ||
|
||
public override int CommandId { | ||
get { return (int)PkgCmdId.cmdidShowDocumentation; } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters