mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-06-17 01:26:32 +00:00

From now on, sketches are created in the temp folder, and will be moved to the `directories.user` location when the user performs a manual `Save`. A new sketch can be created with the `CtrlCmd+N` binding. Closes: arduino/arduino-pro-ide#260 Closes: arduino/arduino-pro-ide#261 Signed-off-by: Akos Kitta <kittaakos@typefox.io>
13 lines
348 B
TypeScript
13 lines
348 B
TypeScript
import { injectable } from 'inversify';
|
|
import { FileUri } from '@theia/core/lib/node/file-uri';
|
|
import { FileSystemExt } from '../common/protocol/filesystem-ext';
|
|
|
|
@injectable()
|
|
export class NodeFileSystemExt implements FileSystemExt {
|
|
|
|
async getUri(fsPath: string): Promise<string> {
|
|
return FileUri.create(fsPath).toString()
|
|
}
|
|
|
|
}
|