## 1.111.1
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user