This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct Task: Codable, Identifiable, Hashable { | |
var id: Int | |
var name: String | |
} | |
struct ContentView: View { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as vscode from 'vscode'; | |
class PSNB implements vscode.NotebookProvider { | |
constructor() {} | |
async resolveNotebook(editor: vscode.NotebookEditor): Promise<void> { | |
editor.document.languages = ['powershell']; | |
const uri = editor.document.uri; | |
const data = (await vscode.workspace.fs.readFile(uri)).toString(); | |
const lines = data.split(/\r|\n|\r\n/g); |
OlderNewer