## 1.111.1

This commit is contained in:
2025-01-29 20:12:29 -07:00
parent 4ad075088a
commit 8ca13ac88a
3 changed files with 21 additions and 23 deletions

View File

@ -30,30 +30,21 @@ async function openInNewWindowLogic(): Promise<any> {
const textDocument: vscode.TextDocument = await vscode.workspace.openTextDocument(fileUris[i]);
for (let j = 0; j < textDocument.lineCount; ++j) {
const text = textDocument.lineAt(j).text;
if (text.endsWith('"')) {
if (text.startsWith("code \"")) {
const lastText = textDocument.lineAt(j - 1).text;
if (lastText.startsWith("```")) {
const uri = vscode.Uri.parse("file:" + text.substring(6, text.length - 1));
await vscode.commands.executeCommand('vscode.openFolder', uri, true);
break;
}
if (text.endsWith(')')) {
if (text.startsWith("- [code](")) {
const uri = vscode.Uri.parse("file:" + text.substring(9, text.length - 1));
await vscode.commands.executeCommand('vscode.openFolder', uri, true);
break;
}
if (text.startsWith("codium \"")) {
const lastText = textDocument.lineAt(j - 1).text;
if (lastText.startsWith("```")) {
const uri = vscode.Uri.parse("file:" + text.substring(8, text.length - 1));
await vscode.commands.executeCommand('vscode.openFolder', uri, true);
break;
}
if (text.startsWith("- [codium](")) {
const uri = vscode.Uri.parse("file:" + text.substring(11, text.length - 1));
await vscode.commands.executeCommand('vscode.openFolder', uri, true);
break;
}
if (text.startsWith("code-insiders \"")) {
const lastText = textDocument.lineAt(j - 1).text;
if (lastText.startsWith("```")) {
const uri = vscode.Uri.parse("file:" + text.substring(15, text.length - 1));
await vscode.commands.executeCommand('vscode.openFolder', uri, true);
break;
}
if (text.startsWith("- [code-insiders](")) {
const uri = vscode.Uri.parse("file:" + text.substring(18, text.length - 1));
await vscode.commands.executeCommand('vscode.openFolder', uri, true);
break;
}
}
}