arduino-ide/arduino-ide-extension/src/node/node-filesystem-ext.ts
Akos Kitta 2bd9eef146 Aligned the New and Save As... with the Java IDE.
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>
2020-07-15 16:26:42 +02:00

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()
}
}