Skip to content

Commit 1d77236

Browse files
Merge pull request #358 from pravinb1/master
Added warning message to Jump to Tag and Offset
2 parents 4e545c6 + 0df4e60 commit 1d77236

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@
203203
{
204204
"command": "vscode-objectscript.showExplorerForWorkspace",
205205
"when": "!config.objectscript.showExplorer"
206+
},
207+
{
208+
"command": "vscode-objectscript.jumpToTagAndOffset",
209+
"when": "editorLangId == objectscript"
206210
}
207211
],
208212
"view/title": [

src/commands/jumpToTagAndOffset.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export async function jumpToTagAndOffset(): Promise<void> {
88
}
99
const nameMatch = file.name.match(/(.*)\.(int|mac)$/i);
1010
if (!nameMatch) {
11+
vscode.window.showWarningMessage("Jump to Tag and Offset only supports .int and .mac routines.");
1112
return;
1213
}
1314
const document = vscode.window.activeTextEditor?.document;

0 commit comments

Comments
 (0)