Skip to content

Commit a93c582

Browse files
committed
Rename check definition and references commands to clarify their context-checking purpose
1 parent 7b5e4a4 commit a93c582

5 files changed

Lines changed: 20 additions & 20 deletions

File tree

‎apps/editor/package.json‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -325,13 +325,13 @@
325325
"category": "Code Web Chat"
326326
},
327327
{
328-
"command": "codeWebChat.checkReferences",
329-
"title": "Check References",
328+
"command": "codeWebChat.checkReferencingFilesForContext",
329+
"title": "Check Referencing Files for Context",
330330
"category": "Code Web Chat"
331331
},
332332
{
333-
"command": "codeWebChat.checkDefinition",
334-
"title": "Check Definition",
333+
"command": "codeWebChat.checkDefinitionFileForContext",
334+
"title": "Check Definition File for Context",
335335
"category": "Code Web Chat"
336336
},
337337
{
@@ -372,11 +372,11 @@
372372
"group": "1_action@4"
373373
},
374374
{
375-
"command": "codeWebChat.checkDefinition",
375+
"command": "codeWebChat.checkDefinitionFileForContext",
376376
"group": "1_action@6"
377377
},
378378
{
379-
"command": "codeWebChat.checkReferences",
379+
"command": "codeWebChat.checkReferencingFilesForContext",
380380
"group": "1_action@5"
381381
}
382382
],
@@ -498,11 +498,11 @@
498498
"when": "false"
499499
},
500500
{
501-
"command": "codeWebChat.checkDefinition",
501+
"command": "codeWebChat.checkDefinitionFileForContext",
502502
"when": "false"
503503
},
504504
{
505-
"command": "codeWebChat.checkReferences",
505+
"command": "codeWebChat.checkReferencingFilesForContext",
506506
"when": "false"
507507
}
508508
],

apps/editor/src/commands/check-definition-command.ts renamed to apps/editor/src/commands/check-definition-file-for-context-command.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import * as vscode from 'vscode'
22
import { WorkspaceProvider } from '../context/providers/workspace/workspace-provider'
33
import { Logger } from '@shared/utils/logger'
44

5-
export const check_definition_command = (
5+
export const check_definition_file_for_context_command = (
66
workspace_provider: WorkspaceProvider
77
) => {
88
return vscode.commands.registerCommand(
9-
'codeWebChat.checkDefinition',
9+
'codeWebChat.checkDefinitionFileForContext',
1010
async () => {
1111
const editor = vscode.window.activeTextEditor
1212
if (!editor) {
@@ -93,7 +93,7 @@ export const check_definition_command = (
9393
}`
9494
)
9595
Logger.error({
96-
function_name: 'check_definition_command',
96+
function_name: 'check_definition_file_for_context_command',
9797
message: 'Error resolving definition',
9898
data: error
9999
})

apps/editor/src/commands/check-references-command.ts renamed to apps/editor/src/commands/check-referencing-files-for-context-command.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import * as path from 'path'
33
import { WorkspaceProvider } from '../context/providers/workspace/workspace-provider'
44
import { Logger } from '@shared/utils/logger'
55

6-
export const check_references_command = (
6+
export const check_referencing_files_for_context_command = (
77
workspace_provider: WorkspaceProvider
88
) => {
99
return vscode.commands.registerCommand(
10-
'codeWebChat.checkReferences',
10+
'codeWebChat.checkReferencingFilesForContext',
1111
async () => {
1212
const editor = vscode.window.activeTextEditor
1313
if (!editor) {
@@ -165,7 +165,7 @@ export const check_references_command = (
165165
}`
166166
)
167167
Logger.error({
168-
function_name: 'check_references_command',
168+
function_name: 'check_referencing_files_for_context_command',
169169
message: 'Error searching references',
170170
data: error
171171
})

‎apps/editor/src/commands/index.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ export * from './set-ranges-command'
2020
export * from './check-parent-folder-command'
2121
export * from './uncheck-parent-folder-command'
2222
export * from './check-all-with-keywords'
23-
export * from './check-references-command'
24-
export * from './check-definition-command'
23+
export * from './check-referencing-files-for-context-command'
24+
export * from './check-definition-file-for-context-command'

‎apps/editor/src/extension.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ import {
3434
check_parent_folder_command,
3535
uncheck_parent_folder_command,
3636
check_all_with_keywords_command,
37-
check_references_command,
38-
check_definition_command
37+
check_referencing_files_for_context_command,
38+
check_definition_file_for_context_command
3939
} from './commands'
4040
import {
4141
get_checkpoints,
@@ -137,9 +137,9 @@ export async function activate(context: vscode.ExtensionContext) {
137137
check_parent_folder_command(workspace_provider),
138138
uncheck_parent_folder_command(workspace_provider),
139139
duplicate_workspace_command(workspace_provider, context),
140-
check_references_command(workspace_provider),
140+
check_referencing_files_for_context_command(workspace_provider),
141141
check_all_with_keywords_command(workspace_provider, context),
142-
check_definition_command(workspace_provider),
142+
check_definition_file_for_context_command(workspace_provider),
143143
open_url_command({
144144
command: 'codeWebChat.openRepository',
145145
url: 'https://github.com/robertpiosik/CodeWebChat'

0 commit comments

Comments
 (0)