Skip to content

Commit

Permalink
extension fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ladeak committed Oct 8, 2023
1 parent c10e3ea commit 8922fa5
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/VSCodeExt/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Change Log

All notable changes to the "LaDeakCHttpVSCodeExt" extension will be documented in this file.
All notable changes to the "LaDeak-CHttp" extension will be documented in this file.

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

Expand Down
10 changes: 5 additions & 5 deletions src/VSCodeExt/dist/extension.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/VSCodeExt/dist/extension.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/VSCodeExt/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/VSCodeExt/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "LaDeak.CHttpVSCodeExt",
"name": "LaDeak-CHttp",
"displayName": "CHttp",
"description": "Performance Test HTTP client.",
"version": "0.0.1",
Expand Down Expand Up @@ -38,11 +38,11 @@
],
"commands": [
{
"command": "LaDeakCHttpVSCodeExt.sendRequest",
"command": "LaDeak-CHttp.sendRequest",
"title": "Send Request"
},
{
"command": "LaDeakCHttpVSCodeExt.cancelRequest",
"command": "LaDeak-CHttp.cancelRequest",
"title": "Cancel Request"
}
]
Expand Down
2 changes: 1 addition & 1 deletion src/VSCodeExt/src/controllers/requestController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class RequestController {
performanceHttpRequest.content,
performanceHttpRequest.requestCount,
performanceHttpRequest.clientsCount,
(data:string) => this._requestStatusEntry.update(data, 'LaDeakCHttpVSCodeExt.cancelRequest'));
(data:string) => this._requestStatusEntry.update(data, 'LaDeak-CHttp.cancelRequest'));

try {
const activeColumn = window.activeTextEditor!.viewColumn;
Expand Down
6 changes: 3 additions & 3 deletions src/VSCodeExt/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { HttpCodeLensProvider } from './providers/httpCodeLensProvider'
export function activate(context: vscode.ExtensionContext) {

const requestController = new RequestController(context);
let sendRequest = vscode.commands.registerCommand('LaDeakCHttpVSCodeExt.sendRequest', ((document: TextDocument, range: Range) => requestController.run(range)));
let cancelRequest = vscode.commands.registerCommand('LaDeakCHttpVSCodeExt.cancelRequest', ((document: TextDocument, range: Range) =>
let sendRequest = vscode.commands.registerCommand('LaDeak-CHttp.sendRequest', ((document: TextDocument, range: Range) => requestController.run(range)));
let cancelRequest = vscode.commands.registerCommand('LaDeak-CHttp.cancelRequest', ((document: TextDocument, range: Range) =>
{
requestController._requestStatusEntry.update("Canceling...");
const CHttpModule = require('../bin/CHttpExtension.node');
const CHttpModule = require('./bin/CHttpExtension.node');
CHttpModule.CHttpExt.cancel();
}));

Expand Down
2 changes: 1 addition & 1 deletion src/VSCodeExt/src/providers/httpCodeLensProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class HttpCodeLensProvider implements CodeLensProvider {
const cmd: Command = {
arguments: [document, range],
title: 'Send Request',
command: 'LaDeakCHttpVSCodeExt.sendRequest'
command: 'LaDeak-CHttp.sendRequest'
};
blocks.push(new CodeLens(range, cmd));
}
Expand Down

0 comments on commit 8922fa5

Please sign in to comment.